I'm writing code on a GPU enabled machine, but my code needs to be portable to computers without a GPU. So I wrote 2 functions, one that uses only the CPU and one that uses CPU+GPU.
I'm for a conditional compliance code, for example:
if (COMPUTER_HAS_GPU)
//Run CPU+GPU code
else
//Run CPU only code
Is there anything like this?