Device Complex Functions

General CULA Dense (LAPACK & BLAS) support and troubleshooting. Use this forum if you are having a general problem or have encountered a bug.

Device Complex Functions

Postby apardo » Wed Aug 03, 2011 1:23 pm

Hi! Functions like culaDeviceCgemm give me a zero output with non-zero inputs... why is this happening? I also have the same problem with all functions that include "DeviceC"... So, it happens with complex and device functions. Thanks for your help!
apardo
 
Posts: 11
Joined: Tue Jun 21, 2011 10:01 am

Re: Device Complex Functions

Postby kyle » Wed Aug 03, 2011 1:52 pm

Are you checking culaStatus for errors?
kyle
Administrator
 
Posts: 301
Joined: Fri Jun 12, 2009 7:47 pm

Re: Device Complex Functions

Postby apardo » Thu Aug 04, 2011 1:09 pm

I checked culastatus like this:

status = culaDeviceCgemm('N','N',DIMENSION1, DIMENSION2, DIMENSION1, alfa, mtx_aux2, DIMENSION1, mtx_aux1, DIMENSION1, beta, mtx_aux1, DIMENSION1);

printf("%s\n", culaGetStatusString(status));
if( status != culaNoError )
{
if( status == culaDataError )
printf("Data error with code %d, please see LAPACK documentation\n",
culaGetErrorInfo());
else
printf("%s\n", culaGetStatusString(status));
}

But this gave me no erros in the screen... If i do:

culaCgemm('N','N',DIMENSION1, DIMENSION2, DIMENSION1, alfa, mtx_aux2, DIMENSION1, mtx_aux1, DIMENSION1, beta, mtx_aux1, DIMENSION1);

it gives me a good result but i am using culaDeviceFloatComplex for mtx_aux2 and mtx_aux1... Maybe i am misunderstanding something but i guess culaDeviceCgemm should work with culaDeviceFloatComplex arguments!
apardo
 
Posts: 11
Joined: Tue Jun 21, 2011 10:01 am

Re: Device Complex Functions

Postby john » Fri Aug 05, 2011 7:52 am

That's correct, but the culaDevice data types must be allocated using a device allocator such as cudaMalloc, and then transferred to the card via cudaMemcpy. The examples/deviceInterface folder shows clearly how to do this.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: Device Complex Functions

Postby apardo » Mon Aug 08, 2011 11:14 am

Ohhh, thanks!
apardo
 
Posts: 11
Joined: Tue Jun 21, 2011 10:01 am


Return to CULA Dense Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron