using DCompute

jmh530 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 27 18:52:40 PDT 2017


On Friday, 28 July 2017 at 01:30:58 UTC, Nicholas Wilson wrote:
>
> Yes, although I'll have to add an attribute shim layer for the 
> dcompute druntime symbols to be accessible for DMD. When you 
> compile LDC will produce .ptx and .spv files in the object file 
> directory which will be able to be used in any project. The 
> only thing that will be more fragile is lambda kernels as they 
> are mangled numerically (`__lambda1`, `__lambda1` and so on).

I imagine that using dcompute this way with DMD for development 
would be popular. For instance, the GPU part might be only a 
small part of a project so you wouldn't want to be forced to use 
LDC the moment the tiniest GPU code is in it.

Once you've ensured everything is working correctly, you might 
add something about this to the wiki, or whatever.


More information about the Digitalmars-d-learn mailing list