Features:
- Currently support JCuda 0.5.0, 0.5.5, 0.6.0RC (windows-i386, windows-x86_64), 0.6.0, 0.6.5 (windows-i386, windows-x86_64, unix-x86_64, mac-x86_64)
- Local Maven repo with 5 sets of native libs (windows-i386, windows-x86_64, unix-i386, unix-x86_64, mac-x86_64)
- Auto detection of OS family name and it's architecture (it's choose needed dependencies automatically)
- Running any main class, that contained JCuda code easily (without classpath hell, just run Maven goal)
How to run JCuda code:
- You need to install Cuda (5.0, 5.5, 6.0, 6.5) for your platform [here] 1
- Set property <jcuda.version> in pom.xml to what you really use, e.g. 0.5.0 for Cuda 5.0, etc. (Cuda 6.5 - 0.6.5)
- If you run JCuda 0.6.0RC and higher on Windows platform everything is ok
- If you run JCuda 0.5.5 and lower on Windows or Unix platform - you should set profile manually by adding -P windows-x86_64_old or -P windows-x86_old or -P unix-x86_64_old, etc. to mvn clean package command, depends on architecture you use. For more info about Maven profiles take a look [here] 2
- If you run JCuda 0.6.0 and higher on Unix x86_64 platform - everything is ok
- If you run JCUda 0.6.0 and higher on Mac x86_64 - everything is ok
- Call mvn clean package to build project (it will copy all dependencies to target/lib dir)
- Call mvn exec:exec to run main class (org.mystic.cuda.JCudaRuntimeTest) with "Hello, JCuda" sample :)
- If you want to run code directly from your IDE without Maven - you could do it via Run command in most of the IDE (Intellij IDEA, Eclipse, Netbeans, etc.) All you need to do - is to add property -Djava.library.path=target/lib (more information is on Stackoverflow - http://stackoverflow.com/q/28333226/2663985)
- ???
- Fork! Write your own JCuda code! Run! Report bugs! Support!