I am revising a program that originally used pthread to CUDA. I’ve removed all the pthreads but is getting this error when I ‘make’
In file included from template.cu:409:
/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:96: error: âint __gthrw_pthread_cancel(pthread_t)â used but never defined
What I’ve done so far is copying main.cpp to template.cu, extern all the C++ functions, and removing usage of pthread.
I think there is something of pthreads still there!! And probably the header file that the compiler shows is suspicious! Since it says “used but never defined” there must be something that you use but haven’t defined!! Check your code again for leftovers!