Scientific computing and parallel computing C++23/C++26
Guillaume Piolat
first.last at gmail.com
Fri Jan 14 09:39:58 UTC 2022
On Friday, 14 January 2022 at 00:56:32 UTC, Nicholas Wilson wrote:
> If you're thinking of "special compiler support" as what CUDA
> does with its <<<>>>, then no, dcompute does all of that, but
> not with special help from the compiler, only with what meta
> programming and reflection is available to any other D program.
> It's D all the way down to the API calls. Obviously there is
> special compiler support to turn D code into compute kernels.
>
> The main benefit of dcompute is turning kernel launches into
> type safe one-liners, as opposed to brittle, type unsafe,
> paragraphs of code.
Sound indeed less brittle than separate langage. In my time in
CUDA I never got to use <<<>>>.
In OpenCL you'd have to templatize the string kernels quite
quickly, and with CUDA you'd have to also make lots of entry
points. Plus all the import problems, so I can see how it's
better with LDC intrinsics.
More information about the Digitalmars-d
mailing list