Page 1 of 1

magma_setmatrix API

Posted: Tue Jul 03, 2018 12:09 am
by Volodimir
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?

Re: magma_setmatrix API

Posted: Tue Jul 03, 2018 5:12 pm
by mgates3
Include <magma_v2.h> instead of <magma.h>.
The old version doesn't take a queue. The new version does take a queue.
-mark