D and GPGPU

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 20 05:23:19 PST 2015


On 2015-02-18 18:56, ponce wrote:

> - the Runtime API abstract over multi-GPU and is the basis for
> high-level libraries NVIDIA churns out in trendy domains.
> (request to Linux/Mac readers: still searching for the correct library
> names for linux :) ).

For OS X:

CUDA Driver: This will install /Library/Frameworks/CUDA.framework and 
the UNIX-compatibility stub /usr/local/cuda/lib/libcuda.dylib that 
refers to it

I would recommend the framework. Make sure the correct path is added, 
take a look at SDL for example [1]. You need something like 
"../Frameworks/CUDA.framework/CUDA" to make sure it's possible to bundle 
the cuda framework in an application bundle.

[1] 
https://github.com/DerelictOrg/DerelictSDL2/blob/master/source/derelict/sdl2/sdl.d#L42

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list