Getting verbose message for cmake

NCCL_INCLUDE_DIRS and NCCL_LIBRARIES are result variables of calling find_package(nccl REQUIRED) :


They are not inputs, and setting them as environment variables doesn’t change how Findnccl.cmake works.

The only environment variable that Findnccl.cmake reads is NCCL_ROOT_DIR:


So I guess, you should set the environment variable NCCL_ROOT_DIR to /opt/nccl-2.4.8 to get it working.

I hope this helps!

1 Like