Compiling the latest pytorch source code with CUDA10.0 + NCCL2.3.7
python setup.py install
Error Output
[1861/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorSortHalf.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorSortHalf.cu.o 
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorSortHalf.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorSortHalf.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorSortHalf.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(136): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.h(137): error: identifier "THDescBuff" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(118): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(119): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(120): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/THTensor.hpp(123): warning: parsing restarts here after previous syntax error

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(11): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(13): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: variable "TH_CPP_API" is not a type name

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: declaration is incompatible with class "at::TensorImpl"
/home/zand/Developers/pytorch/aten/src/ATen/core/TensorImpl.h(282): here

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(15): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: this declaration has no storage class or type specifier

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: variable "TH_CPP_API" has already been defined

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(18): error: expected a ";"

/home/zand/Developers/pytorch/aten/src/TH/generic/THTensor.hpp(19): error: variable "TH_CPP_API" is not a type name

Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_00003604_00000000-6_THCTensorSortHalf.cpp1.ii".
Compilation terminated.
CMake Error at caffe2_gpu_generated_THCTensorSortHalf.cu.o.Release.cmake:279 (message):
  Error generating file
  /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorSortHalf.cu.o


[1862/2737] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCStorage.cu.o
FAILED: caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCStorage.cu.o 
cd /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC && /home/zand/anaconda3/bin/cmake -E make_directory /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/. && /home/zand/anaconda3/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCStorage.cu.o -D generated_cubin_file:STRING=/home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCStorage.cu.o.cubin.txt -P /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCStorage.cu.o.Release.cmake
/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: identifier "TH_CPP_API" is undefined

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: namespace "at" has no actual member "StorageImpl"

/home/zand/Developers/pytorch/aten/src/TH/THStorageFunctions.hpp(33): error: expected a ";"

3 errors detected in the compilation of "/tmp/tmpxft_00003654_00000000-6_THCStorage.cpp1.ii".
CMake Error at caffe2_gpu_generated_THCStorage.cu.o.Release.cmake:279 (message):
  Error generating file
  /home/zand/Developers/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/./caffe2_gpu_generated_THCStorage.cu.o


[1864/2737] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/data_channels/DataChannelGloo.cpp.o
ninja: build stopped: subcommand failed.
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-cuda --use-nnpack --use-mkldnn --use-qnnpack caffe2'

Summary
-- General:
--   CMake version         : 3.12.2
--   CMake command         : /home/zand/anaconda3/bin/cmake
--   System                : Linux
--   C++ compiler          : /usr/bin/c++
--   C++ compiler version  : 7.3.0
--   BLAS                  : MKL
--   CXX flags             :  -fvisibility-inlines-hidden -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-stringop-overflow
--   Build type            : Release
--   Compile definitions   : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;MAGMA_V2;USE_C11_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1
--   CMAKE_PREFIX_PATH     : /home/zand/anaconda3/lib/python3.6/site-packages
--   CMAKE_INSTALL_PREFIX  : /home/zand/Developers/pytorch/torch/lib/tmp_install
-- 
--   TORCH_VERSION         : 1.0.0
--   CAFFE2_VERSION        : 1.0.0
--   BUILD_ATEN_MOBILE     : OFF
--   BUILD_ATEN_ONLY       : OFF
--   BUILD_BINARY          : OFF
--   BUILD_CUSTOM_PROTOBUF : ON
--     Link local protobuf : ON
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : ON
--     Python version      : 3.6.4
--     Python executable   : /home/zand/anaconda3/bin/python
--     Pythonlibs version  : 3.6.4
--     Python library      : /home/zand/anaconda3/lib/libpython3.6m.so.1.0
--     Python includes     : /home/zand/anaconda3/include/python3.6m
--     Python site-packages: lib/python3.6/site-packages
--   BUILD_CAFFE2_OPS      : ON
--   BUILD_SHARED_LIBS     : ON
--   BUILD_TEST            : ON
--   USE_ASAN              : OFF
--   USE_CUDA              : 1
--     CUDA static link    : 0
--     USE_CUDNN           : ON
--     CUDA version        : 10.0
--     cuDNN version       : 7.3.1
--     CUDA root directory : /usr/local/cuda
--     CUDA library        : /usr/lib/x86_64-linux-gnu/libcuda.so
--     cudart library      : /usr/local/cuda/lib64/libcudart_static.a;-pthread;dl;/usr/lib/x86_64-linux-gnu/librt.so
--     cublas library      : /usr/local/cuda/lib64/libcublas.so
--     cufft library       : /usr/local/cuda/lib64/libcufft.so
--     curand library      : /usr/local/cuda/lib64/libcurand.so
--     cuDNN library       : /usr/local/cuda/lib64/libcudnn.so.7
--     nvrtc               : /usr/local/cuda/lib64/libnvrtc.so
--     CUDA include path   : /usr/local/cuda/include
--     NVCC executable     : /usr/local/cuda/bin/nvcc
--     CUDA host compiler  : /usr/bin/cc
--     USE_TENSORRT        : OFF
--   USE_ROCM              : OFF
--   USE_EIGEN_FOR_BLAS    : 
--   USE_FBGEMM            : 0
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : OFF
--   USE_GLOG              : OFF
--   USE_LEVELDB           : OFF
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : OFF
--   USE_METAL             : OFF
--   USE_MKL               : ON
--   USE_MKLDNN            : ON
--   USE_MOBILE_OPENGL     : OFF
--   USE_NCCL              : ON
--     USE_SYSTEM_NCCL     : OFF
--   USE_NNPACK            : 1
--   USE_NUMPY             : ON
--   USE_OBSERVERS         : ON
--   USE_OPENCL            : OFF
--   USE_OPENCV            : OFF
--   USE_OPENMP            : OFF
--   USE_PROF              : OFF
--   USE_QNNPACK           : 1
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_ZMQ               : OFF
--   USE_DISTRIBUTED       : ON
--     USE_MPI             : ON
--     USE_GLOO            : ON
--     USE_GLOO_IBVERBS    : OFF
--   Public Dependencies  : Threads::Threads;caffe2::mkl;caffe2::mkldnn
--   Private Dependencies : qnnpack;nnpack;cpuinfo;/usr/lib/x86_64-linux-gnu/libnuma.so;fp16;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so;gloo;aten_op_header_gen;onnxifi_loader;rt;gcc_s;gcc;dl
-- Configuring done
CMake Warning (dev) at cmake/Dependencies.cmake:846 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "nccl_external" of target "gloo_cuda" does not exist.
Call Stack (most recent call first):
  CMakeLists.txt:201 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CUDNN_LIB_DIR
    THD_SO_VERSION

How to solve this problem?