Skip to content

Add MATX_EN_NVTIFF option#1101

Merged
cliffburdick merged 1 commit intoNVIDIA:mainfrom
tmartin-gh:tjm/nvtiff_option
Dec 10, 2025
Merged

Add MATX_EN_NVTIFF option#1101
cliffburdick merged 1 commit intoNVIDIA:mainfrom
tmartin-gh:tjm/nvtiff_option

Conversation

@tmartin-gh
Copy link
Collaborator

No description provided.

@tmartin-gh tmartin-gh self-assigned this Dec 8, 2025
@copy-pr-bot
Copy link

copy-pr-bot bot commented Dec 8, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@tmartin-gh
Copy link
Collaborator Author

/build

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 8, 2025

Greptile Overview

Greptile Summary

Added MATX_EN_NVTIFF CMake option to make nvTiff support opt-in rather than automatically detected. Previously, CMake would always search for the nvtiff library; now it only searches when MATX_EN_NVTIFF is explicitly enabled.

Key Changes:

  • Added MATX_EN_NVTIFF OFF option definition (defaults to OFF)
  • Wrapped existing nvtiff detection logic in if (MATX_EN_NVTIFF) block
  • Behavior now consistent with other optional libraries like MATX_EN_CUTENSOR, MATX_EN_FILEIO, etc.

Note: The found NVTIFF_LIBRARY variable is still not linked to the matx target (pre-existing issue). The nvtiff library appears to be header-only or linked elsewhere.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The change is straightforward and follows established patterns for optional library support. It simply adds an option gate around existing nvtiff detection logic without modifying any functionality. The implementation is consistent with other optional features in the codebase (MATX_EN_CUTENSOR, MATX_EN_CUDSS, etc.). No logical errors or breaking changes introduced.
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
CMakeLists.txt 5/5 Added MATX_EN_NVTIFF option to gate nvTiff library detection, making it opt-in rather than automatic

Sequence Diagram

sequenceDiagram
    participant User as Build User
    participant CMake as CMake
    participant OptionCheck as Option Check
    participant Find as find_library
    participant MatX as MatX Target
    participant Code as TIFF Header
    
    User->>CMake: "Run CMake"
    CMake->>OptionCheck: "Check MATX_EN_NVTIFF"
    
    alt MATX_EN_NVTIFF is ON
        OptionCheck->>Find: "Search for nvtiff"
        alt library found
            Find-->>MatX: "Define MATX_ENABLE_NVTIFF"
            MatX->>Code: "Enable Tiff class"
        else library not found
            Find-->>CMake: "Log error message"
        end
    else MATX_EN_NVTIFF is OFF
        OptionCheck-->>CMake: "Skip nvtiff detection"
    end
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@cliffburdick
Copy link
Collaborator

/build

@cliffburdick cliffburdick merged commit 02c4f47 into NVIDIA:main Dec 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants