ldc icon indicating copy to clipboard operation
ldc copied to clipboard

Add test for NVPTX intrinsics

Open thewilsonator opened this issue 3 years ago • 1 comments

cc @JohanEngelen

https://github.com/ldc-developers/ldc/pull/2556/#issuecomment-1147265717

Whats the best way to do this for all targets that LDC supports?

thewilsonator avatar Jun 06 '22 10:06 thewilsonator

This test should include actual usage of an intrinsic (adding dcompute_ as prefix to the filename would be nice too). The idea is not to test the existence of the intrinsc file, but its correctness (for example, the test should catch what Kai forgot to add orginally: "The generated file will have to be marked @compute(CompileFor.deviceOnly), with the corresponding import of ldc.dcompute.").

Please make it part of #2556 (or add those changes to this PR).

JohanEngelen avatar Jun 06 '22 10:06 JohanEngelen