magma_setmatrix API

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

magma_setmatrix API

Postby Volodimir » Tue Jul 03, 2018 12:09 am

Hello,
Documentation provides following description for macro:
Code: Select all
magma_setmatrix    (         m,
           n,
           elemSize,
           hA_src,
           lda,
           dB_dst,
           lddb,
           queue
   )       

When i try to use it (well, c-version of it), i am getting following error:
Code: Select all
macro "magma_csetmatrix_v1" passed 7 arguments, but takes just 6
  magma_csetmatrix( m, k, Rx, m, d_a, m, queue);    // copy a -> d_a
                                              ^
make: *** [test.o] Error 1

If i remove queue, then code compiles (and runs) without any problems.

Is this expected behaviour?
Volodimir
 
Posts: 10
Joined: Fri Jun 29, 2018 2:52 pm

Re: magma_setmatrix API

Postby mgates3 » Tue Jul 03, 2018 5:12 pm

Include <magma_v2.h> instead of <magma.h>.
The old version doesn't take a queue. The new version does take a queue.
-mark
mgates3
 
Posts: 824
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron