3 ms·
Hi, If you want to target GPU in some form to increase performance (open source standards that currently fill this niche are OpenCL for compute, OpenGL/Vulkan
by flumpcakes 7y ago
Hi,
If you want to target GPU in some form to increase performance (open source standards that currently fill this niche are OpenCL for compute, OpenGL/Vulkan for graphics) but you want to use the same code for CPU and GPU there is a solution!
There's a new standard called SYCL.
Currently it is based on C++11 and there are implementations that target OpenGL and CUDA.
- VHRanger 7y agoOpenCL can target the CPU
- raphlinus 7y agoIndeed. I think it's fair to say that OpenCL is excellent for targeting a very wide range of devices, with the exception of most high performance GPUs.
- pjmlp 7y agoExcept that one needs to rely on tooling from CodePlay or Intel. NVidia isn't that keen in supporting OpenCL beyond 1.2 and is pushing for OpenACC in what concerns GPGPU outside CUDA on their hardware.