Test cases don't compile: help!

Hi guys,

I am trying to compile master from source, but the test cases do not compile. It looks as if the cudnn functions being tested were not found, but both CUDA and CUDNN were found by cmake. It would be great if someone with more experience could have a look at the log below.

Thanks,
David

$ python setup.py install
running install
running build_deps
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CUDA: /usr/local/cuda (found suitable version "8.0", minimum required is "7.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/permanent/Tool/pytorch/torch/lib/build/nccl
make: Warning: File 'Makefile' has modification time 527 s in the future
make[1]: Warning: File 'CMakeFiles/Makefile2' has modification time 527 s in the future
make[2]: Warning: File 'CMakeFiles/nccl.dir/progress.make' has modification time 527 s in the future
Scanning dependencies of target nccl
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'CMakeFiles/nccl.dir/progress.make' has modification time 527 s in the future
[100%] Generating lib/libnccl.so
Grabbing  src/nccl.h                          > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/include/nccl.h
Compiling src/libwrap.cu                      > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/obj/libwrap.o
Compiling src/core.cu                         > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/obj/core.o
Compiling src/all_gather.cu                   > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/obj/all_gather.o
Compiling src/all_reduce.cu                   > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/obj/all_reduce.o
Compiling src/broadcast.cu                    > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/obj/broadcast.o
Compiling src/reduce.cu                       > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/obj/reduce.o
Compiling src/reduce_scatter.cu               > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/obj/reduce_scatter.o
ptxas warning : Too big maxrregcount value specified 96, will be ignored
ptxas warning : Too big maxrregcount value specified 96, will be ignored
ptxas warning : Too big maxrregcount value specified 96, will be ignored
ptxas warning : Too big maxrregcount value specified 96, will be ignored
ptxas warning : Too big maxrregcount value specified 96, will be ignored
ptxas warning : Too big maxrregcount value specified 96, will be ignored
ptxas warning : Too big maxrregcount value specified 96, will be ignored
Linking   libnccl.so.1.3.5                    > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/lib/libnccl.so.1.3.5
Archiving libnccl_static.a                    > /mnt/permanent/Tool/pytorch/torch/lib/build/nccl/lib/libnccl_static.a
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[100%] Built target nccl
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File 'CMakeFiles/Makefile2' has modification time 463 s in the future
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
Install the project...
-- Install configuration: "Release"
-- Installing: /mnt/permanent/Tool/pytorch/torch/lib/tmp_install/include/nccl.h
make: warning:  Clock skew detected.  Your build may be incomplete.
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CUDA: /usr/local/cuda (found suitable version "8.0", minimum required is "5.5") 
-- Autodetected CUDA architecture(s): 5.2
-- Found CUDA with FP16 support, compiling with torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
CMake Warning (dev) at /home/ndavid/anaconda3/envs/pytorch/share/cmake-3.9/Modules/FindOpenMP.cmake:200 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "c" will no longer be dereferenced when the policy is
  set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  /home/ndavid/anaconda3/envs/pytorch/share/cmake-3.9/Modules/FindOpenMP.cmake:324 (_OPENMP_GET_FLAGS)
  CMakeLists.txt:128 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_C: -fopenmp (found version "4.0") 
-- Found OpenMP_CXX: -fopenmp (found version "4.0") 
-- Compiling with OpenMP support
-- Checking prototype magma_get_sgeqrf_nb for MAGMA_V2 - True
-- Compiling with MAGMA support
-- MAGMA INCLUDE DIRECTORIES: /home/ndavid/anaconda3/envs/pytorch/include
-- MAGMA LIBRARIES: /home/ndavid/anaconda3/envs/pytorch/lib/libmagma.a
-- MAGMA V2 check: 1
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking for cpuid.h
-- Looking for cpuid.h - found
-- Performing Test HAVE_GCC_GET_CPUID
-- Performing Test HAVE_GCC_GET_CPUID - Success
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Success
-- Performing Test C_HAS_SSE1_1
-- Performing Test C_HAS_SSE1_1 - Success
-- Performing Test C_HAS_SSE2_1
-- Performing Test C_HAS_SSE2_1 - Success
-- Performing Test C_HAS_SSE3_1
-- Performing Test C_HAS_SSE3_1 - Failed
-- Performing Test C_HAS_SSE3_2
-- Performing Test C_HAS_SSE3_2 - Success
-- Performing Test C_HAS_SSE4_1_1
-- Performing Test C_HAS_SSE4_1_1 - Failed
-- Performing Test C_HAS_SSE4_1_2
-- Performing Test C_HAS_SSE4_1_2 - Success
-- Performing Test C_HAS_SSE4_2_1
-- Performing Test C_HAS_SSE4_2_1 - Failed
-- Performing Test C_HAS_SSE4_2_2
-- Performing Test C_HAS_SSE4_2_2 - Success
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Failed
-- Performing Test C_HAS_AVX_2
-- Performing Test C_HAS_AVX_2 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Success
-- Performing Test CXX_HAS_SSE1_1
-- Performing Test CXX_HAS_SSE1_1 - Success
-- Performing Test CXX_HAS_SSE2_1
-- Performing Test CXX_HAS_SSE2_1 - Success
-- Performing Test CXX_HAS_SSE3_1
-- Performing Test CXX_HAS_SSE3_1 - Failed
-- Performing Test CXX_HAS_SSE3_2
-- Performing Test CXX_HAS_SSE3_2 - Success
-- Performing Test CXX_HAS_SSE4_1_1
-- Performing Test CXX_HAS_SSE4_1_1 - Failed
-- Performing Test CXX_HAS_SSE4_1_2
-- Performing Test CXX_HAS_SSE4_1_2 - Success
-- Performing Test CXX_HAS_SSE4_2_1
-- Performing Test CXX_HAS_SSE4_2_1 - Failed
-- Performing Test CXX_HAS_SSE4_2_2
-- Performing Test CXX_HAS_SSE4_2_2 - Success
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Failed
-- Performing Test CXX_HAS_AVX_2
-- Performing Test CXX_HAS_AVX_2 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Success
-- SSE2 Found
-- SSE3 Found
-- AVX Found
-- AVX2 Found
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Failed
-- Performing Test HAS_MSC_ATOMICS
-- Performing Test HAS_MSC_ATOMICS - Failed
-- Performing Test HAS_GCC_ATOMICS
-- Performing Test HAS_GCC_ATOMICS - Success
-- Atomics: using GCC intrinsics
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
--   Library mkl_gf_lp64: /home/ndavid/anaconda3/lib/libmkl_gf_lp64.so
--   Library mkl_gnu_thread: /home/ndavid/anaconda3/lib/libmkl_gnu_thread.so
--   Library mkl_core: /home/ndavid/anaconda3/lib/libmkl_core.so
-- Found OpenMP_C: -fopenmp (found version "4.0") 
-- Found OpenMP_CXX: -fopenmp (found version "4.0") 
--   Library gomp: -fopenmp
--   Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so
--   Library m: /usr/lib/x86_64-linux-gnu/libm.so
--   Library dl: /usr/lib/x86_64-linux-gnu/libdl.so
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- MKL library found
-- Performing Test BLAS_F2C_DOUBLE_WORKS
-- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed
-- Performing Test BLAS_F2C_FLOAT_WORKS
-- Performing Test BLAS_F2C_FLOAT_WORKS - Success
-- Performing Test BLAS_USE_CBLAS_DOT
-- Performing Test BLAS_USE_CBLAS_DOT - Success
-- Found a library with BLAS API (mkl).
-- Found a library with LAPACK API. (mkl)
-- Found CUDNN: /usr/local/cuda/include  
-- Found cuDNN: v6.0.21  (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
-- Could NOT find NNPACK (missing: NNPACK_INCLUDE_DIR NNPACK_LIBRARY CPUINFO_LIBRARY PTHREADPOOL_LIBRARY) 
-- NNPACK not found. Compiling without nNPACK support
CMake Deprecation Warning at src/ATen/CMakeLists.txt:7 (CMAKE_POLICY):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Using python found in /home/ndavid/anaconda3/envs/pytorch/bin/python
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for shm_open
-- Looking for shm_open - found
-- Looking for shm_unlink
-- Looking for shm_unlink - found
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - found
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
disable contrib because ATEN_NO_CONTRIB is set
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/permanent/Tool/pytorch/torch/lib/build/aten
make: Warning: File 'Makefile' has modification time 527 s in the future
make[1]: Warning: File 'CMakeFiles/Makefile2' has modification time 527 s in the future
make[2]: Warning: File 'src/ATen/CMakeFiles/aten_files_are_generated.dir/progress.make' has modification time 527 s in the future
Scanning dependencies of target aten_files_are_generated
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'src/ATen/CMakeFiles/aten_files_are_generated.dir/progress.make' has modification time 527 s in the future
[  0%] Generating ATen/CPUByteStorage.cpp, ATen/CPUByteStorage.h, ATen/CPUByteTensor.cpp, ATen/CPUByteTensor.h, ATen/CPUByteType.cpp, ATen/CPUByteType.h, ATen/CPUCharStorage.cpp, ATen/CPUCharStorage.h, ATen/CPUCharTensor.cpp, ATen/CPUCharTensor.h, ATen/CPUCharType.cpp, ATen/CPUCharType.h, ATen/CPUDoubleStorage.cpp, ATen/CPUDoubleStorage.h, ATen/CPUDoubleTensor.cpp, ATen/CPUDoubleTensor.h, ATen/CPUDoubleType.cpp, ATen/CPUDoubleType.h, ATen/CPUFloatStorage.cpp, ATen/CPUFloatStorage.h, ATen/CPUFloatTensor.cpp, ATen/CPUFloatTensor.h, ATen/CPUFloatType.cpp, ATen/CPUFloatType.h, ATen/CPUGenerator.h, ATen/CPUHalfStorage.cpp, ATen/CPUHalfStorage.h, ATen/CPUHalfTensor.cpp, ATen/CPUHalfTensor.h, ATen/CPUHalfType.cpp, ATen/CPUHalfType.h, ATen/CPUIntStorage.cpp, ATen/CPUIntStorage.h, ATen/CPUIntTensor.cpp, ATen/CPUIntTensor.h, ATen/CPUIntType.cpp, ATen/CPUIntType.h, ATen/CPULongStorage.cpp, ATen/CPULongStorage.h, ATen/CPULongTensor.cpp, ATen/CPULongTensor.h, ATen/CPULongType.cpp, ATen/CPULongType.h, ATen/CPUShortStorage.cpp, ATen/CPUShortStorage.h, ATen/CPUShortTensor.cpp, ATen/CPUShortTensor.h, ATen/CPUShortType.cpp, ATen/CPUShortType.h, ATen/CUDAByteStorage.cpp, ATen/CUDAByteStorage.h, ATen/CUDAByteTensor.cpp, ATen/CUDAByteTensor.h, ATen/CUDAByteType.cpp, ATen/CUDAByteType.h, ATen/CUDACharStorage.cpp, ATen/CUDACharStorage.h, ATen/CUDACharTensor.cpp, ATen/CUDACharTensor.h, ATen/CUDACharType.cpp, ATen/CUDACharType.h, ATen/CUDADoubleStorage.cpp, ATen/CUDADoubleStorage.h, ATen/CUDADoubleTensor.cpp, ATen/CUDADoubleTensor.h, ATen/CUDADoubleType.cpp, ATen/CUDADoubleType.h, ATen/CUDAFloatStorage.cpp, ATen/CUDAFloatStorage.h, ATen/CUDAFloatTensor.cpp, ATen/CUDAFloatTensor.h, ATen/CUDAFloatType.cpp, ATen/CUDAFloatType.h, ATen/CUDAGenerator.h, ATen/CUDAHalfStorage.cpp, ATen/CUDAHalfStorage.h, ATen/CUDAHalfTensor.cpp, ATen/CUDAHalfTensor.h, ATen/CUDAHalfType.cpp, ATen/CUDAHalfType.h, ATen/CUDAIntStorage.cpp, ATen/CUDAIntStorage.h, ATen/CUDAIntTensor.cpp, ATen/CUDAIntTensor.h, ATen/CUDAIntType.cpp, ATen/CUDAIntType.h, ATen/CUDALongStorage.cpp, ATen/CUDALongStorage.h, ATen/CUDALongTensor.cpp, ATen/CUDALongTensor.h, ATen/CUDALongType.cpp, ATen/CUDALongType.h, ATen/CUDAShortStorage.cpp, ATen/CUDAShortStorage.h, ATen/CUDAShortTensor.cpp, ATen/CUDAShortTensor.h, ATen/CUDAShortType.cpp, ATen/CUDAShortType.h, ATen/Copy.cpp, ATen/Declarations.yaml, ATen/Functions.h, ATen/NativeFunctions.h, ATen/SparseCPUByteTensor.cpp, ATen/SparseCPUByteTensor.h, ATen/SparseCPUByteType.cpp, ATen/SparseCPUByteType.h, ATen/SparseCPUCharTensor.cpp, ATen/SparseCPUCharTensor.h, ATen/SparseCPUCharType.cpp, ATen/SparseCPUCharType.h, ATen/SparseCPUDoubleTensor.cpp, ATen/SparseCPUDoubleTensor.h, ATen/SparseCPUDoubleType.cpp, ATen/SparseCPUDoubleType.h, ATen/SparseCPUFloatTensor.cpp, ATen/SparseCPUFloatTensor.h, ATen/SparseCPUFloatType.cpp, ATen/SparseCPUFloatType.h, ATen/SparseCPUIntTensor.cpp, ATen/SparseCPUIntTensor.h, ATen/SparseCPUIntType.cpp, ATen/SparseCPUIntType.h, ATen/SparseCPULongTensor.cpp, ATen/SparseCPULongTensor.h, ATen/SparseCPULongType.cpp, ATen/SparseCPULongType.h, ATen/SparseCPUShortTensor.cpp, ATen/SparseCPUShortTensor.h, ATen/SparseCPUShortType.cpp, ATen/SparseCPUShortType.h, ATen/SparseCUDAByteTensor.cpp, ATen/SparseCUDAByteTensor.h, ATen/SparseCUDAByteType.cpp, ATen/SparseCUDAByteType.h, ATen/SparseCUDACharTensor.cpp, ATen/SparseCUDACharTensor.h, ATen/SparseCUDACharType.cpp, ATen/SparseCUDACharType.h, ATen/SparseCUDADoubleTensor.cpp, ATen/SparseCUDADoubleTensor.h, ATen/SparseCUDADoubleType.cpp, ATen/SparseCUDADoubleType.h, ATen/SparseCUDAFloatTensor.cpp, ATen/SparseCUDAFloatTensor.h, ATen/SparseCUDAFloatType.cpp, ATen/SparseCUDAFloatType.h, ATen/SparseCUDAIntTensor.cpp, ATen/SparseCUDAIntTensor.h, ATen/SparseCUDAIntType.cpp, ATen/SparseCUDAIntType.h, ATen/SparseCUDALongTensor.cpp, ATen/SparseCUDALongTensor.h, ATen/SparseCUDALongType.cpp, ATen/SparseCUDALongType.h, ATen/SparseCUDAShortTensor.cpp, ATen/SparseCUDAShortTensor.h, ATen/SparseCUDAShortType.cpp, ATen/SparseCUDAShortType.h, ATen/Tensor.h, ATen/TensorMethods.h, ATen/Type.cpp, ATen/Type.h
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[  0%] Built target aten_files_are_generated
make[2]: Warning: File 'src/ATen/CMakeFiles/ATen.dir/flags.make' has modification time 525 s in the future
[  1%] Building NVCC (Device) object src/ATen/CMakeFiles/ATen.dir/__/THC/ATen_generated_THCReduceApplyUtils.cu.o

... (etcetcetc)

[ 92%] Building C object src/ATen/CMakeFiles/ATen.dir/__/THCS/THCSTensor.c.o
[ 93%] Building CXX object src/ATen/CMakeFiles/ATen.dir/cudnn/Descriptors.cpp.o
[ 93%] Building CXX object src/ATen/CMakeFiles/ATen.dir/cudnn/Handles.cpp.o
[ 93%] Building CXX object src/ATen/CMakeFiles/ATen.dir/cudnn/Types.cpp.o
[ 94%] Linking CXX shared library libATen.so
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
[ 94%] Built target ATen
make[2]: Warning: File 'src/ATen/test/CMakeFiles/scalar_tensor_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/undefined_tensor_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/scalar_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/basic.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/wrapdim_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/broadcast_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/atest.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/native_test.dir/flags.make' has modification time 6.5 s in the future
Scanning dependencies of target scalar_tensor_test
Scanning dependencies of target basic
Scanning dependencies of target undefined_tensor_test
Scanning dependencies of target broadcast_test
Scanning dependencies of target scalar_test
Scanning dependencies of target atest
Scanning dependencies of target wrapdim_test
Scanning dependencies of target native_test
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'src/ATen/test/CMakeFiles/basic.dir/flags.make' has modification time 6.4 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/scalar_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'src/ATen/test/CMakeFiles/broadcast_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/atest.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/undefined_tensor_test.dir/flags.make' has modification time 6.4 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/wrapdim_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: Warning: File 'src/ATen/test/CMakeFiles/native_test.dir/flags.make' has modification time 6.5 s in the future
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Warning: File 'src/ATen/test/CMakeFiles/scalar_tensor_test.dir/flags.make' has modification time 6.4 s in the future
[ 94%] Building CXX object src/ATen/test/CMakeFiles/wrapdim_test.dir/wrapdim_test.cpp.o
[ 96%] Building CXX object src/ATen/test/CMakeFiles/broadcast_test.dir/broadcast_test.cpp.o
[ 96%] Building CXX object src/ATen/test/CMakeFiles/scalar_test.dir/scalar_test.cpp.o
[ 96%] Building CXX object src/ATen/test/CMakeFiles/undefined_tensor_test.dir/undefined_tensor_test.cpp.o
[ 96%] Building CXX object src/ATen/test/CMakeFiles/basic.dir/basic.cpp.o
[ 97%] Building CXX object src/ATen/test/CMakeFiles/native_test.dir/native_test.cpp.o
[ 97%] Building CXX object src/ATen/test/CMakeFiles/scalar_tensor_test.dir/scalar_tensor_test.cpp.o
[ 97%] Building CXX object src/ATen/test/CMakeFiles/atest.dir/atest.cpp.o
[ 98%] Linking CXX executable wrapdim_test
[ 98%] Linking CXX executable undefined_tensor_test
../libATen.so.1: undefined reference to `cudnnSetConvolutionGroupCount'
../libATen.so.1: undefined reference to `cudnnSetConvolutionMathType'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/wrapdim_test.dir/build.make:115: recipe for target 'src/ATen/test/wrapdim_test' failed
make[2]: *** [src/ATen/test/wrapdim_test] Error 1
CMakeFiles/Makefile2:556: recipe for target 'src/ATen/test/CMakeFiles/wrapdim_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/wrapdim_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 99%] Linking CXX executable atest
[ 99%] Linking CXX executable broadcast_test
../libATen.so.1: undefined reference to `cudnnSetConvolutionGroupCount'
../libATen.so.1: undefined reference to `cudnnSetConvolutionMathType'
collect2: error: ld returned 1 exit status
../libATen.so.1: undefined reference to `cudnnSetConvolutionGroupCount'
../libATen.so.1: undefined reference to `cudnnSetConvolutionMathType'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/undefined_tensor_test.dir/build.make:115: recipe for target 'src/ATen/test/undefined_tensor_test' failed
make[2]: *** [src/ATen/test/undefined_tensor_test] Error 1
src/ATen/test/CMakeFiles/atest.dir/build.make:115: recipe for target 'src/ATen/test/atest' failed
make[2]: *** [src/ATen/test/atest] Error 1
CMakeFiles/Makefile2:297: recipe for target 'src/ATen/test/CMakeFiles/undefined_tensor_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/undefined_tensor_test.dir/all] Error 2
CMakeFiles/Makefile2:482: recipe for target 'src/ATen/test/CMakeFiles/atest.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/atest.dir/all] Error 2
../libATen.so.1: undefined reference to `cudnnSetConvolutionGroupCount'
../libATen.so.1: undefined reference to `cudnnSetConvolutionMathType'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/broadcast_test.dir/build.make:115: recipe for target 'src/ATen/test/broadcast_test' failed
make[2]: *** [src/ATen/test/broadcast_test] Error 1
CMakeFiles/Makefile2:445: recipe for target 'src/ATen/test/CMakeFiles/broadcast_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/broadcast_test.dir/all] Error 2
[ 99%] Linking CXX executable scalar_test
[100%] Linking CXX executable scalar_tensor_test
[100%] Linking CXX executable basic
[100%] Linking CXX executable native_test
../libATen.so.1: undefined reference to `cudnnSetConvolutionGroupCount'
../libATen.so.1: undefined reference to `cudnnSetConvolutionMathType'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/scalar_test.dir/build.make:115: recipe for target 'src/ATen/test/scalar_test' failed
make[2]: *** [src/ATen/test/scalar_test] Error 1
CMakeFiles/Makefile2:408: recipe for target 'src/ATen/test/CMakeFiles/scalar_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/scalar_test.dir/all] Error 2
../libATen.so.1: undefined reference to `cudnnSetConvolutionGroupCount'
../libATen.so.1: undefined reference to `cudnnSetConvolutionMathType'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/scalar_tensor_test.dir/build.make:115: recipe for target 'src/ATen/test/scalar_tensor_test' failed
make[2]: *** [src/ATen/test/scalar_tensor_test] Error 1
CMakeFiles/Makefile2:334: recipe for target 'src/ATen/test/CMakeFiles/scalar_tensor_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/scalar_tensor_test.dir/all] Error 2
../libATen.so.1: undefined reference to `cudnnSetConvolutionGroupCount'
../libATen.so.1: undefined reference to `cudnnSetConvolutionMathType'
../libATen.so.1: undefined reference to `cudnnSetConvolutionGroupCount'
.collect2: error: ld returned 1 exit status
./libATen.so.1: undefined reference to `cudnnSetConvolutionMathType'
collect2: error: ld returned 1 exit status
src/ATen/test/CMakeFiles/native_test.dir/build.make:115: recipe for target 'src/ATen/test/native_test' failed
make[2]: *** [src/ATen/test/native_test] Error 1
src/ATen/test/CMakeFiles/basic.dir/build.make:115: recipe for target 'src/ATen/test/basic' failed
make[2]: *** [src/ATen/test/basic] Error 1
CMakeFiles/Makefile2:519: recipe for target 'src/ATen/test/CMakeFiles/native_test.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/native_test.dir/all] Error 2
CMakeFiles/Makefile2:371: recipe for target 'src/ATen/test/CMakeFiles/basic.dir/all' failed
make[1]: *** [src/ATen/test/CMakeFiles/basic.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Could you check your cudnn install at --that Found cuDNN: v6.0.21 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)? I had a similar issue but it turned out my header file was missing.

Simon W: thanks for the tip. I have the header in include/ for the “Found cuDNN” version, but you were still right about the cause of the error. As it turns out, I had cudnn v7 installed in the anaconda environment, and cmake tried to link against that. Thanks for VladislavZavadskyy for pointing this out. I am going to report it as an issue, though, because there is no way to identify the issue from the output.