Compile cuda code for CPU

前端 未结 3 527
长情又很酷
长情又很酷 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条回答
  •  Happy的楠姐
    2020-12-11 02:54

    In current versions of CUDA, programs are debugged directly while they are running on the GPU. This is far superior to older versions of CUDA, which used an emulator for debugging. The debugging facilities are also much more powerful in current versions of CUDA.

    So, if wish to write any CUDA code, a CUDA capable GPU card will give you immediate return on investment when you need to debug.

    You can pick up an older used card for very little. Examine the features of each of the compute capabilities to determine how far back you are willing to go.

    There are also some sites online that will let you test out CUDA code. NVIDIA has the CUDA test drive program. The Intro to Parallel Programming course at Udacity includes an online CUDA compiler for the coding assignments.

提交回复
热议问题