CUBLASinit fails on Ubuntu amd64 cannot init CUBLAS


my problem is that cublas refuses to init even for the simplest program. CUBLAS test in SDK compiles, but returns:
mycomp:~/NVIDIA_CUDA_SDK/bin/linux/release$ ./simpleCUBLAS
simpleCUBLAS test running…
!!! CUBLAS initialization error

A simple program of the form:

int main( void ){
int i,j;
cublasStatus stat;
stat = cublasInit();
switch (stat){
case CUBLAS_STATUS_NOT_INITIALIZED: printf(" not init \n"); break;
case CUBLAS_STATUS_ALLOC_FAILED: printf(" alloc \n"); break;
case CUBLAS_STATUS_INVALID_VALUE: printf(" not val \n"); break;
case CUBLAS_STATUS_ARCH_MISMATCH: printf(" not arch \n"); break;
case CUBLAS_STATUS_MAPPING_ERROR: printf(" not map \n"); break;
case CUBLAS_STATUS_EXECUTION_FAILED: printf(" not exec \n"); break;
case CUBLAS_STATUS_INTERNAL_ERROR: printf(" not internal \n"); break;
printf(" could not init \n");
return 0;
compiles with g+±4.2, nvcc and gcc, but all of them fail to init (CUBLAS_STATUS_NOT_INITIALIZED).

I have ASUS GF8600GT 512DDR3 (8600GT is listed as supporting CUBLAS). Runing on Ubuntu 8.04 with the latest nvidia-glx-new and nvidia-kernel-common packages (graphics acceleration works for 3d games).

Is there a log file anywhere to give me more information on why this is not working? Anyone have any idea? Anything I can try/do?

Specifically which driver, CUDA & SDK release are you using?

Also, please generate and attach an nvidia-bug-report.log.

Here is the log. The versions of CUDA and SDK are the latest 2.1 (beta I guess). Just downloaded them today:

The driver version should be the latest available from the ubuntu adept packages: files in the package end in 169.12

Does that help?
nvidia_bug_log.tar (130 KB)

NVIDIA driver page lists 177.82 (Nov 12) as the latest driver. I will see if I can figure my current driver version. I kind of assumed that ubuntu’s adep packages always use the latest available version of everything (give or take a day or two).

PS: there is no notice in the 177.82 version to have bug-fixes for CUDA.

For CUDA 2.1 beta, you need 180.06.

It works (compiles and runs, just not sure if it runs properly since I am not sure what the test code is supposed to do anyway). simpleCUBLAS test passes.

I guess the issue is with the fact that the ubuntu repositories do not contain everything needed for cuda.

Here is what I did:
remove the repository ubuntu driver (actually kubuntu but the there is no real difference)
download the NVIDIA driver 180 (from cuda’s download page)
shutdown the X server ( Ctr+Alt+F1 plus /etc/init.d/kdm stop /gdm for ubuntu/ )
run the file to install the driver (sux to install anything that way, but it at least has an automatic script for editing the xorg file)

Download the other packages from CUDA (toolkit and SDK). To install the libraries, I just copied them from /usr/local/cuda/lib to /usr/lib. This is probably stupid, but it works (uninstalling the libraries might be tricky). Then compile the code and link it to cublas.

Thanks for the help. :D

Yep, that’s pretty stupid. Don’t do that. (you’re going to install a new version and it won’t work and you won’t know what’s going on)

180.11 works also and has a memory leak fixed that caused my machine to reboot every night.