Library and headers to make CUDA codes run seamlessly on CPUs