call magma function from device (NOT host)

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
wtan
Posts: 6
Joined: Mon Mar 09, 2015 1:58 pm

call magma function from device (NOT host)

Post by wtan » Mon Mar 09, 2015 3:27 pm

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

mgates3
Posts: 918
Joined: Fri Jan 06, 2012 2:13 pm

Re: call magma function from device (NOT host)

Post by mgates3 » Tue Mar 10, 2015 10:16 am

No, we don't provide device versions. You have to call magma functions from CPU code.
-mark

Post Reply