wells1632 / rc5-nano

rc5 Distributed.net changes for nvidia Jetson Nano
0 stars 0 forks source link

CPU/OS Detection #1

Open wells1632 opened 5 years ago

wells1632 commented 5 years ago

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.

wells1632 commented 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.

wells1632 commented 5 years ago

Kind of fixed. I will leave this open for now, as it is not a perfect fix and makes some assumptions about OS.