4 ms·
Doesn’t CUDA also let you execute on the CPU? I wonder how efficiently.
by Filligree 2y ago
Doesn’t CUDA also let you execute on the CPU? I wonder how efficiently.
- HarHarVeryFunny 2y agoNo - a CUDA program consists of parts that run on the CPU as well as on the GPU, but the CPU (aka host) code is just orchestrating the process - allocating memory, copying data to/from the GPU, and queuing CUDA kernels to run on the GPU. All the work (i.e. running kernels) is done on the GPU. There are other libraries (e.g. OpenMP, Intel's oneAPI) and languages (e.g. SYCL) that do let the same code be run on either CPU or GPU.