JCuda is the Java bindings for NVIDIA® CUDA™ and related libraries.
To use these libraries, you need a CUDA-enabled GPU device and the NVIDIA driver with CUDA support and the CUDA Toolkit from the NVIDIA website. The aim of this project is to simplify development and usage of JCuda wrapper without issues of managing dependencies by yourself (different versions, different OS, different architecture, classpath hell)
Starting with version 0.8.0, all JCuda libraries are available in Maven central. The following are the dependencies for the individual libraries:
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcuda</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcublas</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcufft</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcusparse</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcusolver</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcurand</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jnvgraph</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcudnn</artifactId>
<version>0.8.0</version>
</dependency>
For more information take a look at http://jcuda.org/downloads/downloads.html
You need to install Cuda (5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0) 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)
OBSOLETE [at least for now]
OBSOLETE [end of obsolete part]
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] 3)
???
Fork! Write your own JCuda code! Run! Report bugs! Support!
我正在尝试更新我的项目以使用上一个hibernate 3.6.10。最终版本,但我找不到包含依赖项hibernate core 3.6.10的hibernate注释。最终的http://mvnrepository.com/artifact/org.hibernate/hibernate-annotations 我在哪里能找到它?这不是我第一次注意到版本的缺乏。逻辑是什么?
问题内容: 我正在尝试使用OpenJDK7根据OSGi规范4.3编译我的OSGi捆绑软件,但出现错误: 这是我的Activator.java: 和我的pom.xml: 当我使用OpenJDK 6时,不会出现此错误。任何提示如何使它与OpenJDK 7一起使用? 问题答案: 您需要使用Java 7中的javac重新编译OSGi源代码。OSGi使用-target jsr14使用Java 6 javac