Run-time GPU or CPU execution?
问题 I feel like there has to be a way to write code such that it can run either in CPU or GPU. That is, I want to write something that has (for example), a CPU FFT implementation that can be executed if there is no GPU, but defaults to a GPU FFT when the GPU is present. I haven't been able to craft the right question to get the interwebs to offer up a solution. My application target has GPUs available. We want to write certain functions to use the GPUs. However, our development VMs are a