runtime error 10100

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

runtime error 10100

Postby jayanta » Wed Dec 01, 2010 10:50 am

Hello,
I am using CULA premium academic. My system details are:
NVDIA GPU-GTX-285,
driver version is 256.40
CUDA 3.2 toolkit installed.
CULA 2.1 installed.

when I try to run the following sample program I get these errors:
Allocating Matrices
Initializing CULA
Runtime error (10100)

Thanks in advance.
-Jayanta
*****************************************************************************************************************************Sample Program as follows*************************************************************


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <culapack.h>


void checkStatus(culaStatus status)
{
if(!status)
return;

if(status == culaArgumentError)
printf("Invalid value for parameter %d\n", culaGetErrorInfo());
else if(status == culaDataError)
printf("Data error (%d)\n", culaGetErrorInfo());
else if(status == culaBlasError)
printf("Blas error (%d)\n", culaGetErrorInfo());
else if(status == culaRuntimeError)
printf("Runtime error (%d)\n", culaGetErrorInfo());
else
printf("%s\n", culaGetStatusString(status));

culaShutdown();
exit(EXIT_FAILURE);
}


int main(int argc, char** argv)
{
/*#ifdef NDEBUG
int M = 8192;
#else
int M = 1024;
#endif
int N = M;
*/
int M=2, N=2, i;
culaStatus status;

float* A = NULL;
float* TAU = NULL;

printf("Allocating Matrices\n");
A = (float*)malloc(M*N*sizeof(float));
TAU = (float*)malloc(N*sizeof(float));
if(!A || !TAU)
exit(EXIT_FAILURE);

printf("Initializing CULA\n");
status = culaInitialize();
checkStatus(status);

// memset(A, 0, M*N*sizeof(float)); // initializing the matrix to zero...
A[0] = 3;
A[1] = -4;
A[2] = -4;
A[3] = 6;

printf("Calling culaSgeqrf\n");
status = culaSgeqrf(M, N, A, M, TAU);
checkStatus(status);
for (i=0;i<N*N;i++) printf("%f\t", *(A+i));
printf("\n\n");
printf("Shutting down CULA\n");
culaShutdown();

free(A);
free(TAU);

return EXIT_SUCCESS;
}

**********************************************************************************************************
jayanta
 
Posts: 3
Joined: Thu Jun 24, 2010 4:00 pm

Re: runtime error 10100

Postby kyle » Thu Dec 09, 2010 8:25 am

Make sure you are linking against the CUDA runtime included with CULA 2.1 as that version does not support CUDA 3.2.
kyle
Administrator
 
Posts: 301
Joined: Fri Jun 12, 2009 7:47 pm


Return to CULA Dense Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron