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;
};
if ( stat != CUBLAS_STATUS_SUCCESS ){
printf(" could not init \n");
return EXIT_FAILURE;
};
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?
:unsure:
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.
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.