Hi,
I am writing a program that needs 2 cpu threads, and was wondering if I can use the flag -pthread with nvcc compiler. My initial testing tells me otherwise.
I ended up breaking the code into a .c file and a .cu file, compiling the .c file with “g++ -pthread …”, and the .cu file with “nvcc …” commands to obtain object files, then linking them with nvcc. This works ok, but I would like to know if there is an easier way.