Hi all,
I am new to JCUDA and running cuda on windows7 on MS Visual Studio 2005 successfully. Can any of you help me installing JCUDA on windows using MS Visual Studio 2005.
Thanks in advance.
Hi all,
I am new to JCUDA and running cuda on windows7 on MS Visual Studio 2005 successfully. Can any of you help me installing JCUDA on windows using MS Visual Studio 2005.
Thanks in advance.
Hello
Actually, you should not need Visual Studio to run JCuda. Although the binaries have only been tested on WinXP, I think they should also run with Windows 7, so you should not have to recompile them yourself.
In general, you just have to copy the DLL and JAR files into the root directory of your project, and add the JAR files to the classpath when compiling or running your application. For example, if you’re using Eclipse, and have folders like
C:\EclipseWorkspace
C:\EclipseWorkspace\TheProject
C:\EclipseWorkspace\TheProject\src
…
then you copy the DLL and JAR files into the root directory of your project, namely
C:\EclipseWorkspace\TheProject\
Then the DLLs should be found automatically. Alternatively, you can put them into a directory that is contained in the PATH environment variable, or in a directory that is specified via the java.library.path.
To add the JAR files to your project, you can do the following:
Similar questions are asked quite frequently, about compiling and running programs using JCuda, in Eclipse, in NetBeans or via the command line, where to place the DLLs and how to include the JARs…
I’ll try to add a FAQ/“Getting started” which contains all this information on the JCuda homepage or in a thread here in the forum as soon as possible.
bye
Marco13
Thank you so much for your kind reply Marco13 !
First of all I am very sorry that I mentioned MS Visual Sudio 2005 for java as well by mistake. Actually I have net beans for java development and I meant to say that.
Secondly, yes I have put the files in my netbeans project main directory and then added the *.jar files in Netbeans project setting. Then I put all *.dll files to default jdk bin directory. Then I ran the sample code “JCudaRuntimeSample.java” which ran successfully.
Now, I want to run sample having openGL interoperability as JOGL. would you please help me installing and setting up the JOGL files in netbeans under windows.
Finally, I want to share with you that I want to work on JCUDA and make some fluid dyanamic application, so I want to learn more about JOGL and JCUDA. So, it would be your favour to help me.
Thank you so much again.
Hello,
In general, the procedure for „installing“ JOGL is similar to that of JCuda: The Archive „jogl-1.1.1a-windows-i586.zip“ from http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/ contains the DLL- and JAR-Files, which may be copied into the same directory as the JCuda files, and the JAR files also have to be added to the project.
There also exists an NetBeans OpenGL Pack Plugin for Netbeans, but since I’m currently using Eclipse, I have not tested this yet.
Do you intend to port the NVIDIA „Fluids“ sample to JCuda? This was one of the first CUDA samples I ran, and found that it was impressive
bye
Marco13