ldc/dcompute atomics for nvptx?
Nicholas Wilson
iamthewilsonator at hotmail.com
Sun Apr 25 00:13:43 UTC 2021
On Tuesday, 6 April 2021 at 02:23:59 UTC, Bruce Carneal wrote:
> I'd like to use atomic (rmw) operations from within ldc while
> targeting nvptx (via dcompute).
>
> [...]
Sorry or the late reply. These should all be doable with
pragma(LDC_intrinsic, "llvm.nvvm.atomic.*") where * is any of
"add", "load.add", etc, I'll try to get a full list. but there is
no real difference between this say std.cuda.index
I never implemented them because I didn't need them and my card
didn't support them.
More information about the digitalmars-d-ldc
mailing list