Hi,

Radu may have a better insight on this particular problem, but could you 
let us know your CUDA version? In the mean time, you can first make sure 
Chrono::FSI module is turned off, and then try building with gcc 11.2 or 
11.3 to see if it changes anything.

Thank you,
Ruochun

On Friday, November 4, 2022 at 7:58:00 AM UTC-5 [email protected] wrote:

> When the GPU module is enabled I get the error below when I try to make. I 
> am using ubuntu 20.04 and gcc 9.4 g++ 9.4.  It compiles without the GPU 
> module. 
>
>
>
> Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the 
> following output:
> Change Dir: /media/richard/My 
> Passport/workspace/chrono_build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/usr/bin/make cmTC_f7a74/fast && /usr/bin/make -f 
> CMakeFiles/cmTC_f7a74.dir/build.make CMakeFiles/cmTC_f7a74.dir/build
> make[1]: Entering directory '/media/richard/My 
> Passport/workspace/chrono_build/CMakeFiles/CMakeTmp'
> Building C object CMakeFiles/cmTC_f7a74.dir/src.c.o
> /usr/bin/cc   -DCMAKE_HAVE_LIBC_PTHREAD   -o 
> CMakeFiles/cmTC_f7a74.dir/src.c.o   -c "/media/richard/My 
> Passport/workspace/chrono_build/CMakeFiles/CMakeTmp/src.c"
> Linking C executable cmTC_f7a74
> /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f7a74.dir/link.txt 
> --verbose=1
> /usr/bin/cc  -DCMAKE_HAVE_LIBC_PTHREAD   
>  CMakeFiles/cmTC_f7a74.dir/src.c.o  -o cmTC_f7a74 
> /usr/bin/ld: CMakeFiles/cmTC_f7a74.dir/src.c.o: in function `main':
> src.c:(.text+0x46): undefined reference to `pthread_create'
> /usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
> /usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
> collect2: error: ld returned 1 exit status
> make[1]: *** [CMakeFiles/cmTC_f7a74.dir/build.make:87: cmTC_f7a74] Error 1
> make[1]: Leaving directory '/media/richard/My 
> Passport/workspace/chrono_build/CMakeFiles/CMakeTmp'
> make: *** [Makefile:121: cmTC_f7a74/fast] Error 2
>
>
> Source file was:
> #include <pthread.h>
>
> void* test_func(void* data)
> {
>   return data;
> }
>
> int main(void)
> {
>   pthread_t thread;
>   pthread_create(&thread, NULL, test_func, NULL);
>   pthread_detach(thread);
>   pthread_join(thread, NULL);
>   pthread_atfork(NULL, NULL, NULL);
>   pthread_exit(NULL);
>
>   return 0;
> }
>
> Performing C++ SOURCE FILE Test DETECTED_NEON failed with the following 
> output:
> Change Dir: /media/richard/My 
> Passport/workspace/chrono_build/CMakeFiles/CMakeTmp
>
> Run Build Command(s):/usr/bin/make cmTC_44c59/fast && /usr/bin/make -f 
> CMakeFiles/cmTC_44c59.dir/build.make CMakeFiles/cmTC_44c59.dir/build
> make[1]: Entering directory '/media/richard/My 
> Passport/workspace/chrono_build/CMakeFiles/CMakeTmp'
> Building CXX object CMakeFiles/cmTC_44c59.dir/src.cxx.o
> /usr/bin/c++    -pthread -fopenmp -DDETECTED_NEON -march=armv8-a   
> -std=gnu++14 -o CMakeFiles/cmTC_44c59.dir/src.cxx.o -c "/media/richard/My 
> Passport/workspace/chrono_build/CMakeFiles/CMakeTmp/src.cxx"
> cc1plus: error: bad value (‘armv8-a’) for ‘-march=’ switch
> cc1plus: note: valid arguments to ‘-march=’ switch are: nocona core2 
> nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell 
> core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client 
> icelake-server cascadelake tigerlake bonnell atom silvermont slm goldmont 
> goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 
> nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 
> athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 
> znver1 znver2 btver1 btver2 native
> make[1]: *** [CMakeFiles/cmTC_44c59.dir/build.make:66: 
> CMakeFiles/cmTC_44c59.dir/src.cxx.o] Error 1
> make[1]: Leaving directory '/media/richard/My 
> Passport/workspace/chrono_build/CMakeFiles/CMakeTmp'
> make: *** [Makefile:121: cmTC_44c59/fast] Error 2
>
>
> ...and run output:
>
> Return value: 1
> Source file was:
>
> #include <arm_neon.h>
>     int main()
>     {
>       float64_t a[2] = {  1., 2. };
>       float64_t b[2] = { -1., 3. };
>       float64_t c[2];
>
>       float64x2_t va = vld1q_f64(&a[0]);
>       float64x2_t vb = vld1q_f64(&b[0]);
>       float64x2_t vc = vaddq_f64(va, vb);
>       vst1q_f64(&c[0], vc);
>
>       if (c[0] == 0. && c[1] == 5.)
>         return 0;
>       else
>         return 0;
>     }
>     
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/5983d41a-1753-40da-b95b-2d6c35c6d514n%40googlegroups.com.

Reply via email to