| Detecting the CUDA native architecture(s) failed with the following output: | |
| No CUDA devices found. | |
| Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: | |
| Change Dir: /content/TensorRT/build/CMakeFiles/CMakeTmp | |
| Run Build Command(s):/usr/bin/make -f Makefile cmTC_a5854/fast && /usr/bin/make -f CMakeFiles/cmTC_a5854.dir/build.make CMakeFiles/cmTC_a5854.dir/build | |
| make[1]: Entering directory '/content/TensorRT/build/CMakeFiles/CMakeTmp' | |
| Building CXX object CMakeFiles/cmTC_a5854.dir/src.cxx.o | |
| /usr/bin/g++ -DCMAKE_HAVE_LIBC_PTHREAD -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -std=c++14 -o CMakeFiles/cmTC_a5854.dir/src.cxx.o -c /content/TensorRT/build/CMakeFiles/CMakeTmp/src.cxx | |
| Linking CXX executable cmTC_a5854 | |
| /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a5854.dir/link.txt --verbose=1 | |
| /usr/bin/g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss CMakeFiles/cmTC_a5854.dir/src.cxx.o -o cmTC_a5854 | |
| /usr/bin/ld: CMakeFiles/cmTC_a5854.dir/src.cxx.o: in function `main': | |
| src.cxx:(.text+0x46): undefined reference to `pthread_create' | |
| /usr/bin/ld: src.cxx:(.text+0x52): undefined reference to `pthread_detach' | |
| /usr/bin/ld: src.cxx:(.text+0x5e): undefined reference to `pthread_cancel' | |
| /usr/bin/ld: src.cxx:(.text+0x6f): undefined reference to `pthread_join' | |
| collect2: error: ld returned 1 exit status | |
| make[1]: *** [CMakeFiles/cmTC_a5854.dir/build.make:99: cmTC_a5854] Error 1 | |
| make[1]: Leaving directory '/content/TensorRT/build/CMakeFiles/CMakeTmp' | |
| make: *** [Makefile:127: cmTC_a5854/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: /content/TensorRT/build/CMakeFiles/CMakeTmp | |
| Run Build Command(s):/usr/bin/make -f Makefile cmTC_d5ece/fast && /usr/bin/make -f CMakeFiles/cmTC_d5ece.dir/build.make CMakeFiles/cmTC_d5ece.dir/build | |
| make[1]: Entering directory '/content/TensorRT/build/CMakeFiles/CMakeTmp' | |
| Building CXX object CMakeFiles/cmTC_d5ece.dir/CheckFunctionExists.cxx.o | |
| /usr/bin/g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -DCHECK_FUNCTION_EXISTS=pthread_create -std=c++14 -o CMakeFiles/cmTC_d5ece.dir/CheckFunctionExists.cxx.o -c /content/TensorRT/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx | |
| Linking CXX executable cmTC_d5ece | |
| /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d5ece.dir/link.txt --verbose=1 | |
| /usr/bin/g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_d5ece.dir/CheckFunctionExists.cxx.o -o cmTC_d5ece -lpthreads | |
| /usr/bin/ld: cannot find -lpthreads | |
| collect2: error: ld returned 1 exit status | |
| make[1]: *** [CMakeFiles/cmTC_d5ece.dir/build.make:99: cmTC_d5ece] Error 1 | |
| make[1]: Leaving directory '/content/TensorRT/build/CMakeFiles/CMakeTmp' | |
| make: *** [Makefile:127: cmTC_d5ece/fast] Error 2 | |