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.
Have anyone encountered this error before?