Hi !
Sorry if another guy has previously asked about this problem, I try to found a solution in this forums, but I haven’t find any thread with solution.
So, this my problem.
I try to install CUDA 3.2 on my Linux Ubuntu 10.4. All is correctly installed (I suppose) and when I try to run any software with CUDA, I see a wonderful cudaGetDeviceCount FAILED CUDA Driver and Runtime version may be mismatched.
So, this is my process:
First, I’ve downloaded this packages:
cudatoolkit_3.1_linux_32_ubuntu9.10.run
devdriver_3.1_linux_32_256.40.run
gpucomputingsdk_3.1_linux.run
To be sure, I’ve removed all ubuntu packages with nvidia
$ dpkg -l | grep nvidia
$ _
After that, I’ve installed CUDA Tool Kit, and everything is ok.
I’ve installed devdriver 3.1: Ok too;
This is my system after reboot:
$ lsmod | grep nvidia
nvidia 10190272 28
agpgart 35408 1 nvidia
$ dmesg | tail -n2
[ 2819.693387] nvidia 0000:00:05.0: setting latency timer to 64
[ 2819.693699] NVRM: loading NVIDIA UNIX x86 Kernel Module 256.40 Wed Jul 7 12:54:34 PDT 2010
$ grep -i NVIDIA /var/log/Xorg.0.log
(--) PCI:*(0:0:5:0) 10de:0241:103c:2a54 nVidia Corporation C51 [GeForce 6150 LE] rev 162, Mem @ 0xfc000000/16777216, 0xe0000000/268435456, 0xfb000000/16777216, BIOS @ 0x????????/131072
(II) Module glx: vendor="NVIDIA Corporation"
(II) NVIDIA GLX Module 256.40 Wed Jul 7 13:18:54 PDT 2010
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
(II) NVIDIA dlloader X Driver 256.40 Wed Jul 7 12:56:35 PDT 2010
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) Aug 03 17:48:28 NVIDIA(0): Enabling RENDER acceleration
(II) Aug 03 17:48:28 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) Aug 03 17:48:28 NVIDIA(0): enabled.
(II) Aug 03 17:48:32 NVIDIA(0): NVIDIA GPU GeForce 6150 LE (C51) at PCI:0:5:0 (GPU-0)
(--) Aug 03 17:48:32 NVIDIA(0): Memory: 524288 kBytes
(--) Aug 03 17:48:32 NVIDIA(0): VideoBIOS: 05.51.28.54.21
(--) Aug 03 17:48:32 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) Aug 03 17:48:32 NVIDIA(0): Connected display device(s) on GeForce 6150 LE at PCI:0:5:0:
(--) Aug 03 17:48:32 NVIDIA(0): HSD Hanns.G HW191 (CRT-0)
(--) Aug 03 17:48:32 NVIDIA(0): HSD Hanns.G HW191 (CRT-0): 350.0 MHz maximum pixel clock
(II) Aug 03 17:48:32 NVIDIA(0): Assigned Display Device: CRT-0
(==) Aug 03 17:48:32 NVIDIA(0):
(==) Aug 03 17:48:32 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(==) Aug 03 17:48:32 NVIDIA(0): will be used as the requested mode.
(==) Aug 03 17:48:32 NVIDIA(0):
(II) Aug 03 17:48:32 NVIDIA(0): Validated modes:
(II) Aug 03 17:48:32 NVIDIA(0): "nvidia-auto-select"
(II) Aug 03 17:48:32 NVIDIA(0): Virtual screen size determined to be 1440 x 900
(--) Aug 03 17:48:32 NVIDIA(0): DPI set to (89, 87); computed from "UseEdidDpi" X config
(--) Aug 03 17:48:32 NVIDIA(0): option
(==) Aug 03 17:48:32 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(II) Aug 03 17:48:32 NVIDIA(0): Initialized GPU GART.
(II) Aug 03 17:48:32 NVIDIA(0): Setting mode "nvidia-auto-select"
(II) Aug 03 17:48:32 NVIDIA(0): Initialized OpenGL Acceleration
(==) NVIDIA(0): Disabling shared memory pixmaps
(II) Aug 03 17:48:32 NVIDIA(0): Initialized X Rendering Acceleration
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) NVIDIA(0): DPMS enabled
My ld.so.conf is OK:
$ cat /etc/ld.so.conf.d/cuda.conf
/usr/local/cuda/lib/
Library and headers are correctly installed :
$ tree -f /usr/local/cuda/ | grep -v "man\|doc\|computeprof"
/usr/local/cuda
├── /usr/local/cuda/bin
│ � ├── /usr/local/cuda/bin/bin2c
│ � ├── /usr/local/cuda/bin/cudafe
│ � ├── /usr/local/cuda/bin/cudafe++
│ � ├── /usr/local/cuda/bin/cuda-gdb
│ � ├── /usr/local/cuda/bin/cuda-memcheck
│ � ├── /usr/local/cuda/bin/fatbin
│ � ├── /usr/local/cuda/bin/filehash
│ � ├── /usr/local/cuda/bin/nvcc
│ � ├── /usr/local/cuda/bin/nvcc.profile
│ � └── /usr/local/cuda/bin/ptxas
├── /usr/local/cuda/include
│ � ├── /usr/local/cuda/include/builtin_types.h
│ � ├── /usr/local/cuda/include/channel_descriptor.h
│ � ├── /usr/local/cuda/include/CL
│ � │ � ├── /usr/local/cuda/include/CL/cl_ext.h
│ � │ � ├── /usr/local/cuda/include/CL/cl_gl_ext.h
│ � │ � ├── /usr/local/cuda/include/CL/cl_gl.h
│ � │ � ├── /usr/local/cuda/include/CL/cl.h
│ � │ � ├── /usr/local/cuda/include/CL/cl_platform.h
│ � │ � └── /usr/local/cuda/include/CL/opencl.h
│ � ├── /usr/local/cuda/include/common_functions.h
│ � ├── /usr/local/cuda/include/crt
│ � │ � ├── /usr/local/cuda/include/crt/device_runtime.h
│ � │ � ├── /usr/local/cuda/include/crt/func_macro.h
│ � │ � ├── /usr/local/cuda/include/crt/host_runtime.h
│ � │ � └── /usr/local/cuda/include/crt/storage_class.h
│ � ├── /usr/local/cuda/include/cublas.h
│ � ├── /usr/local/cuda/include/cuComplex.h
│ � ├── /usr/local/cuda/include/__cudaFatFormat.h
│ � ├── /usr/local/cuda/include/cudaGL.h
│ � ├── /usr/local/cuda/include/cuda_gl_interop.h
│ � ├── /usr/local/cuda/include/cuda.h
│ � ├── /usr/local/cuda/include/cuda_runtime_api.h
│ � ├── /usr/local/cuda/include/cuda_runtime.h
│ � ├── /usr/local/cuda/include/cuda_surface_types.h
│ � ├── /usr/local/cuda/include/cuda_texture_types.h
│ � ├── /usr/local/cuda/include/cudaVDPAU.h
│ � ├── /usr/local/cuda/include/cuda_vdpau_interop.h
│ � ├── /usr/local/cuda/include/cufft.h
│ � ├── /usr/local/cuda/include/device_functions.h
│ � ├── /usr/local/cuda/include/device_launch_parameters.h
│ � ├── /usr/local/cuda/include/device_types.h
│ � ├── /usr/local/cuda/include/driver_functions.h
│ � ├── /usr/local/cuda/include/driver_types.h
│ � ├── /usr/local/cuda/include/host_config.h
│ � ├── /usr/local/cuda/include/host_defines.h
│ � ├── /usr/local/cuda/include/math_constants.h
│ � ├── /usr/local/cuda/include/math_functions_dbl_ptx1.h
│ � ├── /usr/local/cuda/include/math_functions_dbl_ptx3.h
│ � ├── /usr/local/cuda/include/math_functions.h
│ � ├── /usr/local/cuda/include/sm_11_atomic_functions.h
│ � ├── /usr/local/cuda/include/sm_12_atomic_functions.h
│ � ├── /usr/local/cuda/include/sm_13_double_functions.h
│ � ├── /usr/local/cuda/include/sm_20_atomic_functions.h
│ � ├── /usr/local/cuda/include/sm_20_intrinsics.h
│ � ├── /usr/local/cuda/include/surface_functions.h
│ � ├── /usr/local/cuda/include/surface_types.h
│ � ├── /usr/local/cuda/include/texture_fetch_functions.h
│ � ├── /usr/local/cuda/include/texture_types.h
│ � ├── /usr/local/cuda/include/vector_functions.h
│ � └── /usr/local/cuda/include/vector_types.h
├── /usr/local/cuda/lib
│ � ├── /usr/local/cuda/lib/libcublas.so -> libcublas.so.3
│ � ├── /usr/local/cuda/lib/libcublas.so.3 -> libcublas.so.3.1.9
│ � ├── /usr/local/cuda/lib/libcublas.so.3.1.9
│ � ├── /usr/local/cuda/lib/libcudart.so -> libcudart.so.3
│ � ├── /usr/local/cuda/lib/libcudart.so.3 -> libcudart.so.3.1.9
│ � ├── /usr/local/cuda/lib/libcudart.so.3.1.9
│ � ├── /usr/local/cuda/lib/libcufft.so -> libcufft.so.3
│ � ├── /usr/local/cuda/lib/libcufft.so.3 -> libcufft.so.3.1.9
│ � └── /usr/local/cuda/lib/libcufft.so.3.1.9
├── /usr/local/cuda/open64
│ � ├── /usr/local/cuda/open64/bin
│ � │ � └── /usr/local/cuda/open64/bin/nvopencc
│ � └── /usr/local/cuda/open64/lib
│ � ├── /usr/local/cuda/open64/lib/be
│ � ├── /usr/local/cuda/open64/lib/bec
│ � ├── /usr/local/cuda/open64/lib/gfec
│ � └── /usr/local/cuda/open64/lib/inline
└── /usr/local/cuda/src
├── /usr/local/cuda/src/fortran.c
├── /usr/local/cuda/src/fortran_common.h
├── /usr/local/cuda/src/fortran.h
├── /usr/local/cuda/src/fortran_thunking.c
└── /usr/local/cuda/src/fortran_thunking.h
20 directories, 2260 files
So, I’m going to ~/NVIDIA_GPU_Computing_SDK.
All compilations in “C” directory are correctly done without any errors.
But, If I try to run deviceQuery, I have this:
~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount FAILED CUDA Driver and Runtime version may be mismatched.
FAILED
Press <Enter> to Quit...
-----------------------------------------------------------
I’ve tried differents installations, but none solution worked correctly.
I’ve read another threads in this forum and all propositions doesn’t works for me.
If you have any idea… :)
Note:
-
my Nvidia is GeForce 6150 LE (C51) and probably not supported CUDA ( http://www.nvidia.com/object/cuda_gpus.html ), but I read on the net that it’s possible to have an emulation with CPU
-
In source code, “FAILED CUDA Driver and Runtime version may be mismatched” is before the checking “supported card” message:
int deviceCount = 0;
if (cudaGetDeviceCount(&deviceCount) != cudaSuccess) {
shrLog("cudaGetDeviceCount FAILED CUDA Driver and Runtime version may be mismatched.\n");
shrLog("\nFAILED\n");
shrEXIT(argc, argv);
}
// This function call returns 0 if there are no CUDA capable devices.
if (deviceCount == 0)
shrLog("There is no device supporting CUDA\n");
So, If my system are correctly installed but my card isn’t supported, I should see “There is no device supporting CUDA” and not “Driver and Runtime version may be mismatched”
- My GCC is “gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)”