OpenCL CPU Device vs GPU Device
问题 Consider a simple example: vector addition. If I build a program for CL_DEVICE_TYPE_GPU, and I build the same program for CL_DEVICE_TYPE_CPU, what is the difference between them(except that "CPU program" is running on CPU, and "GPU program" is running on GPU)? Thanks for your help. 回答1: There are a few differences between the device types. The simple answer to your vector question is: Use a gpu for large vectors, and cpu for smaller workloads. 1) Memory copying. GPUs rely on the data you are