I’ve looked through many of the forum responses regarding this issue but haven’t been able to find a solution.
I downloaded JCuda-All-0.4.1RC2b-bin-windows-x86a and jcudaUtils-0.0.4.jar. Put jars and dll’s in my project directory and end up with the following ;
Error while loading native library „JCudaRuntime-windows-x86“ with base name „JCudaRuntime“
Operating system name: Windows XP
Architecture : x86
Architecture bit size: 32
Stack trace from the attempt to load the library as a resource:
java.lang.NullPointerException: No resource found with name ‚/lib/JCudaRuntime-windows-x86.dll‘
at jcuda.LibUtils.loadLibraryResource(LibUtils.java:151)
at jcuda.LibUtils.loadLibrary(LibUtils.java:83)
at jcuda.runtime.JCuda.initialize(JCuda.java:303)
at jcuda.runtime.JCuda.(JCuda.java:290)
at cudaCheck.ConfirmCuda.setup(ConfirmCuda.java:19)
at cudaCheck.ConfirmCuda.main(ConfirmCuda.java:13)
Stack trace from the attempt to load the library as a file:
java.lang.UnsatisfiedLinkError: E:\eclipseWorkplace\com.codeexp.lex.runtimePlatform\JCudaRuntime-windows-x86.dll: Can’t find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at jcuda.LibUtils.loadLibrary(LibUtils.java:94)
at jcuda.runtime.JCuda.initialize(JCuda.java:303)
at jcuda.runtime.JCuda.(JCuda.java:290)
at cudaCheck.ConfirmCuda.setup(ConfirmCuda.java:19)
at cudaCheck.ConfirmCuda.main(ConfirmCuda.java:13)
Exception in thread „main“ java.lang.UnsatisfiedLinkError: Could not load the native library
at jcuda.LibUtils.loadLibrary(LibUtils.java:129)
at jcuda.runtime.JCuda.initialize(JCuda.java:303)
at jcuda.runtime.JCuda.(JCuda.java:290)
at cudaCheck.ConfirmCuda.setup(ConfirmCuda.java:19)
at cudaCheck.ConfirmCuda.main(ConfirmCuda.java:13)
The message “Can’t find dependent libraries” indicates that it does not find the CUDA library that is required for this JCuda version. Which version of the CUDA Toolkit do you have installed? If it is the latest one (CUDA 4.1 final) note that the JCuda libraries have not yet been updated for this - they are still for CUDA 4.1 RC2. I planned to start the update tomorrow, but the exact date of the upload also depends on how much has changed between CUDA 4.1 RC2 and CUDA 4.1 final (but it should be doable this week, so won’t take too long)
Hello Marco, OS Windows 7 (64bit) GeForce GT 230M (driver 285.62), i have installed CUDA Toolkit 4.1RC2 and JCuda Version 0.4.1RC2b but it is error
No resource found with name ‘/lib/JCudaRuntime-windows-x86.dll’
when i create folder lib and put into two dll files then this error:
…\JCudaRuntime-windows-x86_647305155776431504676.dll: Can’t find dependent libraries.
Sorry for my english. Can you help me?
“Can’t find dependent libraries” means that it does not find the correct CUDA DLL. Have you installed ONLY the Toolkit 4.1RC2, or may there be an older version?
Can you have a look in your
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\bin
directory? Is there a file called
cudart64_41_21.dll
?
“Can’t find dependent libraries” means that it does not find the correct CUDA DLL. Have you installed ONLY the Toolkit 4.1RC2, or may there be an older version?
Can you have a look in your
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\bin
directory? Is there a file called
cudart64_41_21.dll
?
bye
Marco[/QUOTE]
At first i’ve install Toolkit 4.1, then i read this topic unistall 4.1, download 4.1RC2 and install it. Yes this this folder contain this dll
It is important to make sure that the CUDA Version and the JCuda version match. (And by the way, JCuda 0.4.1 has been released, so it should be possible to use CUDA 4.1 as well).
When you have installed
either CUDA 4.1 and JCuda 0.4.1
OR CUDA 4.1RC2 and JCuda 0.4.1RC2
it should work. Could it be that you have other, old DLLs from other CUDA/JCuda versions in your PATH?
If you have Visual Studio installed, you can also check with
dumpbin /DEPENDENTS JCuda-windows-x86_64.dll
which CUDA DLL is required.
[QUOTE=Marco13]It is important to make sure that the CUDA Version and the JCuda version match. (And by the way, JCuda 0.4.1 has been released, so it should be possible to use CUDA 4.1 as well).
When you have installed
either CUDA 4.1 and JCuda 0.4.1
OR CUDA 4.1RC2 and JCuda 0.4.1RC2
it should work. Could it be that you have other, old DLLs from other CUDA/JCuda versions in your PATH?
If you have Visual Studio installed, you can also check with
dumpbin /DEPENDENTS JCuda-windows-x86_64.dll
which CUDA DLL is required.[/QUOTE]
I unistall Cuda Toolkit v4.1RC2 and JCuda 0.4.1RC2 clear path, classpath
install Cuda Toolkit v4.1 and JCuda 0.4.1 both 64 bit. JCuda: D:\JCuda-All-0.4.1-bin-windows-x86_64 contains all files from zip except dll files JCuda dll’s: D:\JCuda-All-0.4.1-bin-windows-x86_64\lib contains all dll files from zip Cuda Toolkit v4.1: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\bin path: **C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\libnvvp**;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Borland\Delphi7\Bin;C:\Borland\Delphi7\Projects\Bpl;C:\oraclexe\app\oracle\product\10.2.0\server\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\WIDCOMM\Bluetooth Software;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\QuickTime\QTSystem;C:\Dev-Cpp\bin;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn;C:\Program Files\Java\jdk1.6.0_15\bin;D:\pcms2-v2\lib;C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.1\C\common\bin classpath: D:\JCuda-All-0.4.1-bin-windows-x86_64
Error: C:\Users\1\AppData\Local\Temp\JCudaRuntime-windows-x86_641841244353972500560.dll: Can’t find dependent libraries
OK, I just noticed that I should switch off the attempt to load the DLL from the JAR, because it still creates this temporary file when the DLLs are located in a ‘lib’ subdirectory. But this should not be related to your problem.
I just tested again the example as described in the Basic Test from the tutorial, on Win64, and it worked as expected. At the moment, I have no idea what might be wrong there.
Just to be sure: Can you go into your Windows/system32 directory and look for a file called ‘nvcuda.dll’, right-click the file, and select “Properties”: Does it have a size of 7.598.400 Bytes? (Note: Do not modify anithing in this directory!)
Can you run the examples from the NVIDIA CUDA SDK?
At the moment, it looks like a wrong version, but I’m not 100% sure. Did you also install the latest driver from the CUDA download page (version 286.19) ?
from nvidia page:
NVIDIA GeForce GT 230M
285.62
Your PC currently has the latest driver installed for your GPU. No driver update is necessary at this time.
I was talking about the developer drivers, available at http://developer.nvidia.com/cuda-toolkit-41 - Admittedly, I’m not sure what’s the exact difference between the “usual” drivers and the developer drivers, but I’m always using the developer drivers for the respective CUDA version. Hopefully, this helps in the case, otherwise I’m running out of ideas…
Admittedly, I’m also not sure what’s the difference between the Notebook and the Desktop version (NVIDIA does not give so much information about the exact differences of the driver versions -_- ) but in general, the Notebook versions are probably intended for the M (mobile) chipsets - so since you have an “230M”, you should take the Notebook version.