On Friday, 7 September 2018 at 06:45:32 UTC, Sobaya wrote:
Sorry for being late for reply.
I'm using CUDA for back-end.
So you mean if required function is "cos",
pragma(LDC_intrinsic, "llvm.nvv.cos")
T cos(T a);
Is it right?
You're missing an "m" in "nvvm", dunno if that will fix it.
I tried this declaration, but I got an error diffrent from
previous one:
dcompute.driver.error.DComputeDriverException@../../.dub/packages/dcompute-master/dcompute/source/dcompute/driver/error.d(172):
cast(Status)218
----------------
??:? [0x48739e]
??:? [0x48f8aa]
??:? [0x47942d]
error.d:172 [0x42fe61]
error.d:167 [0x42fdb4]
error.d:187 [0x42feca]
program.d:30 [0x42fc00]
app.d:13 [0x417bea]
??:? [0x47908f]
??:? [0x478f85]
__entrypoint.d:8 [0x4289f4]
??:? __libc_start_main [0x2b85f455282f]
??:? [0x405c08]
Program exited with code 1
My declaration is wrong?
Or fixed LLVM(LDC?) is already released?
How can I use it ?
I'll be adding these to DCompute soon (probably Sunday), LLVM7.0
has just been released and I've been waiting on that to do
testing.