Page 1 of 1

call magma function from device (NOT host)

Posted: Mon Mar 09, 2015 3:27 pm
by wtan
Hi when I tried to call a magma function from a cuda kernel I got an error like this:

error: calling a __host__ function("magma_sposv_batched") from a __global__ function("invokeDeviceMagma") is not allowed

Does magma functions have a device version, like cublas has? I really want to invoke magma from device (i.e., inside a kernel) using dynamic parallelism.

Thanks!
Wei

Re: call magma function from device (NOT host)

Posted: Tue Mar 10, 2015 10:16 am
by mgates3
No, we don't provide device versions. You have to call magma functions from CPU code.
-mark