JCUDA Turkish Language Problem

Hello Marco;

I use windows XP operating system.
I installed NVidia cuda toolkit 3.2.16
cuda driver 3.2.16
sdk 3.2.16

I use Eclipse and I read instructures from "** JCuda FAQ - Please read before posting "** and tried to do your solitions. But When I tried to run your sample codes which named JCublasSample.java it gives errors. I think it causes " The method http://java.sun.com/javase/6/docs/api/java/lang/String.html#toLowerCase() caused a capital “I” to be converted to this special turkish character ‘i without a dot’ - that’s why it could not find the library. "

Can you Help me ?

java.lang.NoClassDefFoundError: jcuda/jcublas/cuComplex
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:55)
at jcuda.jcublas.JCublas.assertInit(JCublas.java:174)
at jcuda.jcublas.JCublas.cublasInit(JCublas.java:198)
at JCublasSample.sgemmJCublas(JCublasSample.java:64)
at JCublasSample.testSgemm(JCublasSample.java:49)
at JCublasSample.main(JCublasSample.java:25)
Caused by: java.lang.ClassNotFoundException: jcuda.jcublas.cuComplex
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 11 more

Hello,

I remember that issue, and the quote from my mail :wink: - This should have been resolved quite a while ago.

Which version of the JCuda/JCublas-libraries are you using? Note that the class
jcuda/jcublas/cuComplex
has been moved to
jcuda/cuComplex
in version 3.2, since it is used in JCublas and in JCusparse. So when it is still looking for a class „jcuda/jcublas/cuComplex“, you most likely have an outdated library (if not, I’ll have to look whether this class may erroneously still be referenced somewhere, but this should have show up during my tests…)

bye

Yesss, it was part of your e-mail :smiley:

I download JCuda-All-0.3.2a-bin-windows-x86.zip from site.( jcuda.org ).

I put all dll and .jar files under **C:\JCuda-All-0.3.2a-bin-windows-x86. **
and I gave the path CLASSPATH and path. and I add the jar files for my project Properties → Select „Java Build Path“ and „Libraries“ → Klick „Add JARs“ or "Add external JARs to select the all jar file.

and I put the all .dll under both /workspace/Project/ and /workspace/Project/bin/ :stuck_out_tongue:

Are you sure that there is NO old version of the DLL located in any path? (E.g. any path that is in the PATH environment variable, or any Windows/System directory, or the root directory of the project)
I had a short look at the JCublas source code, and think that it should not refer to the jcuda.jcublas.cuComplex class any more, but if you are sure that there is no old DLL in any path, I can check this in more detail.

I am sure but I can check it again. I will delete all .dll and .jar files and download again.

Thank you very much

I should probably indicate the Version in the DLL name as well (something like “JCublas-windows-x86**-3_2_16**.dll” for the current version) - this might avoid such confusions…

Hello Marco;

Yes you were right. I found some old .dll files under C:\Program Files\Java\jre6\bin I am triying to destroy old .dll files and then I will try it again .

Thanks again