Page 1 of 1

runtime error 10100

PostPosted: Wed Dec 01, 2010 10:50 am
by jayanta
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;
}

**********************************************************************************************************

Re: runtime error 10100

PostPosted: Thu Dec 09, 2010 8:25 am
by kyle
Make sure you are linking against the CUDA runtime included with CULA 2.1 as that version does not support CUDA 3.2.