Runtime Error (17) in Win7 (64-bit)

Support for issues specific to the Windows operating systems.

Runtime Error (17) in Win7 (64-bit)

Postby zhangft » Thu May 06, 2010 7:29 pm

When I use culaDeviceSgesv and culaDeviceSgetrf in Windows (32-bit), everything's ok. But when I change the platform and culatools to 64-bit,
Runtime Error (17) occurs with the same code. I don't know why.
zhangft
 
Posts: 17
Joined: Thu Mar 25, 2010 4:23 am

Re:Runtime Error (17) in Win7 (64-bit)

Postby zhangft » Thu May 06, 2010 7:46 pm

part of the code is as below:

Code: Select all
float *d_A;
   cutilSafeCall(cudaMalloc((void**) &d_A, sizeof(float)*size*size ));   
    cutilSafeCall(cudaMemcpy(d_A, matrixA, sizeof(float)*size*size,
                              cudaMemcpyHostToDevice));
   int* d_ipiv;
   cutilSafeCall(cudaMalloc((void**) &d_ipiv, sizeof(int)*size ));   
   cutilSafeCall(cudaMemset ((void *)d_ipiv, 0, sizeof(int)*size));

   float *d_B;
   cutilSafeCall(cudaMalloc((void**) &d_B, sizeof(float)*size*size ));   
   cutilSafeCall(cudaMemset ((void *)d_B, 0, sizeof(int)*size*size ));
   initIdentityGPU_old <<< (size+255)/256, 256 >>> (d_B, size);

   culaStatus status;   
    status = culaInitialize();
    checkStatus(status);   
   // get inverse of d_A, and store in d_B   
   status = culaDeviceSgesv(size, size, d_A, size, d_ipiv, d_B, size);
    checkStatus(status);   
    culaShutdown();
zhangft
 
Posts: 17
Joined: Thu Mar 25, 2010 4:23 am

Re:Runtime Error (17) in Win7 (64-bit)

Postby zhangft » Thu May 06, 2010 8:36 pm

culaSgesv runs well, however culaDeviceSgesv desn't. culaGetDeviceCount and culaGetExecutingDevice are fine. I wonder wether there are some bugs in culapackdevice for x64.
zhangft
 
Posts: 17
Joined: Thu Mar 25, 2010 4:23 am

Re:Runtime Error (17) in Win7 (64-bit)

Postby zhangft » Thu May 06, 2010 9:05 pm

I tested your examples ---> device, the same error happened. The CUDA version I use is CUDA3.0 for x64.
zhangft
 
Posts: 17
Joined: Thu Mar 25, 2010 4:23 am

Re:Runtime Error (17) in Win7 (64-bit)

Postby zhangft » Thu May 06, 2010 11:45 pm

I found the reason! culaDevice doesn't support CUDA3.0 yet!
I changed back to CUDA2.3 and the issue was sovled!
Hope cula2.0 release soon!
zhangft
 
Posts: 17
Joined: Thu Mar 25, 2010 4:23 am

Re:Runtime Error (17) in Win7 (64-bit)

Postby john » Fri May 07, 2010 9:34 am

Indeed, soon. In the meantime you'll probably find that there is very little speed difference between using the host and device interfaces.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re:Runtime Error (17) in Win7 (64-bit)

Postby zhangft » Sun May 09, 2010 7:49 pm

Yes, I found it. But I would do some other caculations with the result of Sgesv in GPU. To reduce the I/O time I would not transfer the result out and in, so I choose the device interface.
zhangft
 
Posts: 17
Joined: Thu Mar 25, 2010 4:23 am

Re:Runtime Error (17) in Win7 (64-bit)

Postby john » Tue May 11, 2010 7:12 am

I would recommend always benchmarking the times to prove to yourself that the use of the Device interface will reduce your overall time. When you allow CULA to do the allocation and transfers, we have more flexibility. Often the performance between our Host and Device interfaces is negligible and occasionally the Host interface outperforms a poorly allocated Device call.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm


Return to Windows Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron