Page 1 of 1

magma_dcsrset_gpu missing declaration

PostPosted: Mon Jun 05, 2017 8:21 pm
by honkeydonkey
Greetings,
I am evaluating MAGMA sparse (v 2.2.0) for an application where data (A, b, x) already exist on the device. I would like to use the magma_dcsrset_gpu(...) function but when compiling my app I find that this function can't be found. Looking in the install directory I see that the magmasparse_d.h has magma_dcsrset(...) declared but NOT magma_dcsrset_gpu(...). Looking in the downloaded version of the code I find that this problem is also in magma-2.2.0/sparse/include/magmasparse_d.h. If I add the correct signature for magma_dcrset_gpu(...) all is good --- application compiles and runs properly. The actual code is in magma-2.2.0/sparse/control/magma_dmcsrpass_gpu.cpp.

Is this missing declaration in magmasparse_d.h a bug or did I possibly make a mistake during install?
Thanks,
Tom

Re: magma_dcsrset_gpu missing declaration

PostPosted: Tue Jun 06, 2017 2:55 am
by hartwig anzt
Thanks, Tom, for pointing this out!
I will make sure to fix it in the next release.
Thanks, Hartwig

Re: magma_dcsrset_gpu missing declaration

PostPosted: Tue Jun 06, 2017 9:42 am
by honkeydonkey
Great. Thanks Hartwig.
Tom