Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: -v
The output was:
No such file or directory
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: -v
The output was:
No such file or directory
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: -v
The output was:
No such file or directory
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: -v
The output was:
No such file or directory
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: -v
The output was:
No such file or directory
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: -v
The output was:
No such file or directory
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: -v
The output was:
No such file or directory
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: -v
The output was:
No such file or directory
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Checking whether the CUDA compiler is NVIDIA using "" did not match "nvcc: NVIDIA (R) Cuda compiler driver":
Checking whether the CUDA compiler is Clang using "" did not match "(clang version)":
Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /data/jupyter/cuda_learn/NN-CUDA-Example/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_6d839/fast && /usr/bin/make -f CMakeFiles/cmTC_6d839.dir/build.make CMakeFiles/cmTC_6d839.dir/build
make[1]: Entering directory '/data/jupyter/cuda_learn/NN-CUDA-Example/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_6d839.dir/src.cxx.o
/usr/bin/c++ -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_6d839.dir/src.cxx.o -c /data/jupyter/cuda_learn/NN-CUDA-Example/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_6d839
/home/huyang02/anaconda3/lib/python3.6/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6d839.dir/link.txt --verbose=1
/usr/bin/c++ -rdynamic CMakeFiles/cmTC_6d839.dir/src.cxx.o -o cmTC_6d839
CMakeFiles/cmTC_6d839.dir/src.cxx.o: In function main': src.cxx:(.text+0x3e): undefined reference to
pthread_create'
src.cxx:(.text+0x4a): undefined reference to pthread_detach' src.cxx:(.text+0x56): undefined reference to
pthread_cancel'
src.cxx:(.text+0x67): undefined reference to pthread_join' src.cxx:(.text+0x7b): undefined reference to
pthread_atfork'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_6d839.dir/build.make:98: recipe for target 'cmTC_6d839' failed
make[1]: *** [cmTC_6d839] Error 1
make[1]: Leaving directory '/data/jupyter/cuda_learn/NN-CUDA-Example/build/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_6d839/fast' failed
make: *** [cmTC_6d839/fast] Error 2
Source file was:
#include <pthread.h>
static void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_cancel(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /data/jupyter/cuda_learn/NN-CUDA-Example/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_308c5/fast && /usr/bin/make -f CMakeFiles/cmTC_308c5.dir/build.make CMakeFiles/cmTC_308c5.dir/build
make[1]: Entering directory '/data/jupyter/cuda_learn/NN-CUDA-Example/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_308c5.dir/CheckFunctionExists.cxx.o
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_308c5.dir/CheckFunctionExists.cxx.o -c /data/jupyter/cuda_learn/NN-CUDA-Example/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
Linking CXX executable cmTC_308c5
/home/huyang02/anaconda3/lib/python3.6/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/cmTC_308c5.dir/link.txt --verbose=1
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_308c5.dir/CheckFunctionExists.cxx.o -o cmTC_308c5 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_308c5.dir/build.make:98: recipe for target 'cmTC_308c5' failed
make[1]: *** [cmTC_308c5] Error 1
make[1]: Leaving directory '/data/jupyter/cuda_learn/NN-CUDA-Example/build/CMakeFiles/CMakeTmp'
Makefile:127: recipe for target 'cmTC_308c5/fast' failed
make: *** [cmTC_308c5/fast] Error 2