leezu commented on a change in pull request #17297: Fix NCCL Cmake autodetect 
issue
URL: https://github.com/apache/incubator-mxnet/pull/17297#discussion_r369899466
 
 

 ##########
 File path: cmake/Modules/FindNCCL.cmake
 ##########
 @@ -31,7 +31,13 @@
 # install NCCL in the same location as the CUDA toolkit.
 # See https://github.com/caffe2/caffe2/issues/1601
 
-set(NCCL_ROOT_DIR "" CACHE PATH "Folder contains NVIDIA NCCL")
+set(NCCL_ROOT $ENV{NCCL_ROOT} CACHE PATH "Folder contains NVIDIA NCCL")
 
 Review comment:
   Yes, I agree with the Stackoverflow answer. In your case, it would "assigns 
description" to the variable. But as these are deprecated variables I don't 
think we need to add description.
   The standard / supported variable is `NCCL_ROOT` as per 
https://cmake.org/cmake/help/latest/policy/CMP0074.html

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to