On 4/4/2015 2:35 AM, ponce wrote:
On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote:
http://www.nvidia.com/object/cuda_home_new.html
I wrote the Driver and Runtime API bindings for
https://github.com/DerelictOrg/DerelictCUDA
And the one thing I've done with them is loading the functions, create a
context and destroy it. So yeah I think using CUDA with D is possible.
Thank you. How far are you interested in going with it?
OpenCL 2.x is much more interesting though.
It's slower:
Furthermore, in studies of straightforward translation of CUDA programs to
OpenCL C programs, CUDA has been found to outperform OpenCL;[83][86] but the
performance differences can mostly be attributed to differences in the
programming model (especially the memory model) and in the optimizations that
OpenCL C compilers performed as compared to those in the CUDA compiler.
--
http://en.wikipedia.org/wiki/OpenCL#Portability.2C_performance_and_alternatives
No reason not to support both, however.