Skip to content

[Feature Request] CMake FindPackage support and version exposure #1417

@mdavis36

Description

@mdavis36

nvFuser is working to add support for NIXL. It would be helpful to us to have CMake find_package support or at the very least an easy way to parse or query for the installed version of NIXL and the Major CUDA version it was built with.

We can pull the version information with:

NIXL_LOG_LEVEL=INFO python -c "import nixl"
python -c "import nixl; print(nixl._pkg.__name__.split(\"_cu\")[-1])"

However evaluating / parsing these outputs is cumbersome / fragile for a dependency check.

Ideally we woudl like find_package to populate the versions so we can so something like:

find_package(nixl REQUIRED)
if (nixl_FOUND)
  message(nixl_VERSION) ....
  message(nixl_CUDAToolkit_VERSION) ....
endif()

target_link_libraries(my_lib ... nixl::nixl)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions