ChaiBapchya edited a comment on issue #17239: Cmake with NCCL flag does not work. URL: https://github.com/apache/incubator-mxnet/issues/17239#issuecomment-573875270 Ya. Even when I looked at different autodetection files for cmake used in various other open-source frameworks 1. Xgboost - https://github.com/dmlc/xgboost/blob/master/cmake/modules/FindNccl.cmake 2. Flashlight - https://github.com/facebookresearch/flashlight/blob/master/cmake/FindNCCL.cmake 3. Pytorch - https://github.com/pytorch/pytorch/blob/master/cmake/Modules/FindNCCL.cmake 4. Caffe - https://github.com/BVLC/caffe/blob/master/cmake/Modules/FindNCCL.cmake 5. Thunder - https://github.com/thuem/THUNDER/blob/master/cmake/FindNCCL.cmake They have similar approach. Either look for default path, env var (NCCL_ROOT) or /usr/local/cuda Agree with @leezu I haven't seen "dpkg-query" or equivalent "find" commands used in cmake. They are more of command line searches. In cmake, there's find_path, find_library which does similar job. Thanks @apeforest @leezu for chiming in!
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
