grain icon indicating copy to clipboard operation
grain copied to clipboard

DCompute backend

Open ShigekiKarita opened this issue 6 years ago • 2 comments

After https://github.com/ShigekiKarita/grain/tree/v0.0.6, I removed the dcompute library and CUDA kernels written in D from grain. If these issues are fixed, I wanna go back

  • call atomic ops in cuda kernel
  • call sync threads in cuda kernel
  • call fast math functions in cuda kernel
  • load nvptx module written in D with the other modules written in C++

ShigekiKarita avatar Jun 28 '18 07:06 ShigekiKarita

sync threads is dcompute.std.sync.barrier()

for fast math functions LDC's @fastmath should do the trick, if it doesn't let me know.

I'm waiting on the LLVM7 release and then I'll get LDC into shape and get the atomics working.

Could you please point me to an example of loading multiple module so I can have an idea of what thats supposed to look like?

thewilsonator avatar Aug 26 '18 11:08 thewilsonator

Thank you for your kindness! It really helps me. I'm trying to go back dcompute soon.

Could you please point me to an example of loading multiple module so I can have an idea of what thats supposed to look like?

OK but this might come from my wrong usage of CUDA driver API. Anyway I will make a minimal example.

ShigekiKarita avatar Aug 27 '18 11:08 ShigekiKarita