ShigekiKarita / grain

autograd mir and CUDA library for dynamic neural networks in D.
https://shigekikarita.github.io/grain
Boost Software License 1.0
66 stars 7 forks source link

DCompute backend #4

Open ShigekiKarita opened 6 years ago

ShigekiKarita commented 6 years ago

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

thewilsonator commented 5 years ago

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?

ShigekiKarita commented 5 years ago

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.