Compile cuda code for CPU

前端 未结 3 535
长情又很酷
长情又很酷 2020-12-11 02:39

I\'m study cuda 5.5 but i don\'t have any Nvidia GPU. In old version of nvcc have a flag --multicore to compile cuda code for CPU. In the new version of nvcc, what\'s is th

3条回答
  •  情书的邮戳
    2020-12-11 02:45

    CUDA toolkits since at least CUDA 4.0 have not supported an ability to run cuda code without a GPU.

    If you simply want to compile code, refer to this question.

    If you want to run CUDA codes compiled with CUDA 5.5, you will need a CUDA capable GPU.

    If you're willing to use older CUDA toolkits, you could install one of the various emulators, such as this one.

    Or you could install a very old (e.g. ~ CUDA 3.0) cuda toolkit that had the ability to run CUDA codes on the CPU.

提交回复
热议问题