concurrent kernel execution in Magma
Posted: Wed Jul 23, 2014 10:40 am
Hi, I am new to magma. I am wondering if I can run multiple magma gpu functions concurrently?
I know some of the magma functions are hybrid and some are working on just GPU. How can I check that?
I am using these functions:
magma_dgemm(MagmaNoTrans, MagmaNoTrans,n,n,n,scale1,d_a,n,d_b,n,scale2,d_c,n);
magma_dgemv(MagmaNoTrans,n,n,scale1,d_a,n,d_workvec1,inc,scale2,d_workvec2,inc);
magma_dpotrs_gpu(MagmaUpper,k,incx,d_a,k,d_workvec1,k,&info);
magma_dpotrf_gpu(MagmaUpper,blksize,d_a,blksize,&info);
magma_dnrm2(temp,d_a,incx);
Also, if they can be executed concurrently, how can I change my code to do so? Where can I add the stream? Thanks!
I know some of the magma functions are hybrid and some are working on just GPU. How can I check that?
I am using these functions:
magma_dgemm(MagmaNoTrans, MagmaNoTrans,n,n,n,scale1,d_a,n,d_b,n,scale2,d_c,n);
magma_dgemv(MagmaNoTrans,n,n,scale1,d_a,n,d_workvec1,inc,scale2,d_workvec2,inc);
magma_dpotrs_gpu(MagmaUpper,k,incx,d_a,k,d_workvec1,k,&info);
magma_dpotrf_gpu(MagmaUpper,blksize,d_a,blksize,&info);
magma_dnrm2(temp,d_a,incx);
Also, if they can be executed concurrently, how can I change my code to do so? Where can I add the stream? Thanks!