CULA R10 and pycuda

Support for issues specific to the Linux operating systems.

CULA R10 and pycuda

Postby levgivon » Wed Jan 12, 2011 3:59 pm

I have been successfully using the premium version of CULA 2.1 on Linux x86_64 via Python ctypes in conjunction with pycuda 0.94.2. When I recently upgraded to CULA R10, I observed that the final line of the following snippet returns 1, indicating a failed initialization of the cublas library:

Code: Select all
import pycuda.autoinit
import ctypes
libcublas = ctypes.cdll.LoadLibrary('libcublas.so')
libcublas.cublasInit()


Running this code with CUDA 2.1 installed results in successful cublas initialization. Does anyone have any idea as to what might have changed in the latest release of CULA that might be causing the above behavior?
levgivon
 
Posts: 6
Joined: Thu Sep 17, 2009 5:24 pm

Re: CULA R10 and pycuda

Postby psillymathhead » Wed Jan 12, 2011 6:24 pm

Hey Lev,

I could not reproduce your error. I replied to your post on the PyCUDA mailing list:

I have the following setup and cannot reproduce your error from the test snippet. I spent a few minutes changing my PATH and LD_LIBRARY_PATH to see if I could break it.

CUDAtoolkit 3.2.16
CUDA devdriver 260.19.26
PyCUDAv2011.1
CULA-R10

I had such failures with CUDA-RC, RC2 and some devel versions. Once the release versions of the various packages were all released I was able to get all the libraries to work simultaneously for my PyCULA project, including those from your scikit...

Can you give more detail as to what you are running?
psillymathhead
 
Posts: 29
Joined: Wed Mar 31, 2010 6:14 pm

Re: CULA R10 and pycuda

Postby levgivon » Thu Jan 13, 2011 7:03 am

My system is running

CUDA toolkit 3.2.16
NVIDIA driver 260.19.29
PyCUDA 0.94.2
Python 2.6.5
CULA premium R10 for x86_64
The latest development release of scikits.cuda (available on github).

The GPU is a GTX 260. The CUDA toolkit libraries are installed in
/usr/lib64; the CULA libraries are installed in
/usr/lib64/cula_premium (with a file in /etc/ld.so.conf.d containing
that path).
levgivon
 
Posts: 6
Joined: Thu Sep 17, 2009 5:24 pm

Re: CULA R10 and pycuda

Postby psillymathhead » Thu Jan 13, 2011 7:59 am

Is that devdriver an Nvidia Developer (or beta) version? It was not listed on their "Get CUDA" website. I had such issues with devel versions before (including the RC versions)... Can you try rolling back your driver to 260.19.26 to see if it resolves the issue? I will try to find your driver version after breakfast. At least we may narrow down something reproducible...
psillymathhead
 
Posts: 29
Joined: Wed Mar 31, 2010 6:14 pm

Re: CULA R10 and pycuda

Postby psillymathhead » Thu Jan 13, 2011 9:03 am

With 260.19.29 I still cannot reproduce. What are your $PATH and $LD_LIBRARY_PATH?... I noticed you are using a non-standard install location; perhaps you are catching the wrong libs from a different install version?
psillymathhead
 
Posts: 29
Joined: Wed Mar 31, 2010 6:14 pm

Re: CULA R10 and pycuda

Postby john » Thu Jan 13, 2011 9:47 am

Those appear to be the right drivers to match the installed toolkit (listed at www.nvidia.com/getcuda). It's probably worth running ldd to check what's being loaded.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: CULA R10 and pycuda

Postby psillymathhead » Thu Jan 13, 2011 10:01 am

Hi John,

I think Lev was able to resolve the issue by rebuilding the PyCUDA package against the newer CUDA install.
psillymathhead
 
Posts: 29
Joined: Wed Mar 31, 2010 6:14 pm

Re: CULA R10 and pycuda

Postby john » Thu Jan 13, 2011 10:30 am

Great news!
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm


Return to Linux Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron