Open wells1632 opened 5 years ago
I see that this is happening only when nvcc is being used to compile. What this means is that the built-ins that nvcc has for OS and CPU detection are not the same as gcc/g++.
It looks like we can detect for CUDA, however. If we do that, then we at least know we are compiling for a GPU. We can then try to figure out what the OS is after that.
Kind of fixed. I will leave this open for now, as it is not a perfect fix and makes some assumptions about OS.
CPU/OS detection is currently broken in the code in common/cputypes.h. Right now it is railroaded to state the CPU is CUDA, OS is LINUX. This needs to be fixed to detect properly.