It doesn’t work.
Still the same outputs.
The log error is:
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_3995b/fast"
/usr/bin/make -f CMakeFiles/cmTC_3995b.dir/build.make CMakeFiles/cmTC_3995b.dir/build
make[1]: Entering directory '/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3995b.dir/CheckSymbolExists.c.o
/usr/bin/cc -fPIC -o CMakeFiles/cmTC_3995b.dir/CheckSymbolExists.c.o -c /home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_3995b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3995b.dir/link.txt --verbose=1
/usr/bin/cc -fPIC CMakeFiles/cmTC_3995b.dir/CheckSymbolExists.c.o -o cmTC_3995b -rdynamic
CMakeFiles/cmTC_3995b.dir/CheckSymbolExists.c.o:在函数‘main’中:
CheckSymbolExists.c:(.text+0x1b):对‘pthread_create’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_3995b.dir/build.make:97: recipe for target 'cmTC_3995b' failed
make[1]: *** [cmTC_3995b] Error 1
make[1]: Leaving directory '/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_3995b/fast' failed
make: *** [cmTC_3995b/fast] Error 2
File /home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_e2117/fast"
/usr/bin/make -f CMakeFiles/cmTC_e2117.dir/build.make CMakeFiles/cmTC_e2117.dir/build
make[1]: Entering directory '/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e2117.dir/CheckFunctionExists.c.o
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_e2117.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_e2117
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e2117.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_e2117.dir/CheckFunctionExists.c.o -o cmTC_e2117 -rdynamic -lpthreads
/usr/bin/ld: 找不到 -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_e2117.dir/build.make:97: recipe for target 'cmTC_e2117' failed
make[1]: *** [cmTC_e2117] Error 1
make[1]: Leaving directory '/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_e2117/fast' failed
make: *** [cmTC_e2117/fast] Error 2
Determining if the CL_VERSION_2_0 exist failed with the following output:
Change Dir: /home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_8e520/fast"
/usr/bin/make -f CMakeFiles/cmTC_8e520.dir/build.make CMakeFiles/cmTC_8e520.dir/build
make[1]: Entering directory '/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8e520.dir/CheckSymbolExists.c.o
/usr/bin/cc -I/usr/local/cuda-10.0/include -O2 -Wall -fPIC -o CMakeFiles/cmTC_8e520.dir/CheckSymbolExists.c.o -c /home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘CL_VERSION_2_0’ undeclared (first use in this function)
return ((int*)(&CL_VERSION_2_0))[argc];
^
/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_8e520.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_8e520.dir/CheckSymbolExists.c.o' failed
make[1]: *** [CMakeFiles/cmTC_8e520.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory '/home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_8e520/fast' failed
make: *** [cmTC_8e520/fast] Error 2
File /home/lukuan/lk_git/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include </usr/local/cuda-10.0/include/CL/cl.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef CL_VERSION_2_0
return ((int*)(&CL_VERSION_2_0))[argc];
#else
(void)argc;
return 0;
#endif
}