ldc nvvm GPU intrinsics good news
kinke
noone at nowhere.com
Fri Mar 5 16:34:07 UTC 2021
On Friday, 5 March 2021 at 13:30:52 UTC, Bruce Carneal wrote:
> Unfortunately, the "obvious" pragma(LDC_intrinsic, ...) forms
> that I've tried for llvm_i1_ty gccbuiltin intrinsics have not
> worked, at least not for the vote/ballot test cases. I'll keep
> investigating.
For __nvvm_vote_ballot (no idea what it does), this seems to
suffice (bool for i1):
pragma(LDC_intrinsic, "llvm.nvvm.vote.ballot")
int __nvvm_vote_ballot(bool);
void foo(bool a) { __nvvm_vote_ballot(a); }
https://run.dlang.io/is/z0k6l9
More information about the digitalmars-d-ldc
mailing list