Skip to content

Commit

Permalink
Updated README for CUDA 11
Browse files Browse the repository at this point in the history
  • Loading branch information
jcuda committed Sep 21, 2020
1 parent 47d389a commit d3dc1ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ required for compiling and using all other libraries.
* [JCurand](https://github.com/jcuda/jcurand) -- Java bindings for CURAND
* [JCusparse](https://github.com/jcuda/jcusparse) -- Java bindings for CUSPARSE
* [JCusolver](https://github.com/jcuda/jcusolver) -- Java bindings for CUSOLVER
* [JNvgraph](https://github.com/jcuda/jnvgraph) -- Java bindings for nvGRAPH
* <strike>[JNvgraph](https://github.com/jcuda/jnvgraph) -- Java bindings for nvGRAPH</strike> Deprecated as of CUDA 11
* [JCudnn](https://github.com/jcuda/jcudnn) -- Java bindings for cuDNN

Each of these projects contains the source code for the native libraries
Expand Down
30 changes: 10 additions & 20 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,37 @@ JCuda in your Maven project, just add the necessary dependencies to your
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcuda</artifactId>
<version>10.1.0</version>
<version>11.0.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcublas</artifactId>
<version>10.1.0</version>
<version>11.0.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcufft</artifactId>
<version>10.1.0</version>
<version>11.0.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcusparse</artifactId>
<version>10.1.0</version>
<version>11.0.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcusolver</artifactId>
<version>10.1.0</version>
<version>11.0.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcurand</artifactId>
<version>10.1.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jnvgraph</artifactId>
<version>10.1.0</version>
<version>11.0.0</version>
</dependency>
<dependency>
<groupId>org.jcuda</groupId>
<artifactId>jcudnn</artifactId>
<version>10.1.0</version>
<version>11.0.0</version>
</dependency>

The `jcuda` dependency contains the core library and is required
Expand Down Expand Up @@ -98,7 +93,7 @@ Thanks to [evbarnett](https://github.com/evbarnett) and
// native libaries. For example, when the operating system is "windows" and the
// architecture is "x86_64", then the classifier will be "windows-x86_64", and thus,
// the JAR file containing the native libraries will be
// jcuda-natives-windows-x86_64-10.1.0.jar
// jcuda-natives-windows-x86_64-11.0.0.jar
// These methods are taken from
// https://github.com/jcuda/jcuda/blob/master/JCudaJava/src/main/java/jcuda/LibUtils.java
def static getOsString() {
Expand Down Expand Up @@ -161,13 +156,13 @@ Thanks to [evbarnett](https://github.com/evbarnett) and
// you should set a global variable like so:
//
// ext {
// jCudaVersion = "10.1.0"
// jCudaVersion = "11.0.0"
// }
//
// In your *top level* build gradle, and use
// rootProject.ext.jCudaVersion instead of jCudaVersion when you need to access it

def jCudaVersion = "10.1.0"
def jCudaVersion = "11.0.0"

// JCuda Java libraries

Expand All @@ -189,9 +184,6 @@ Thanks to [evbarnett](https://github.com/evbarnett) and
compile(group: 'org.jcuda', name: 'jcusolver', version: jCudaVersion) {
transitive = false
}
compile(group: 'org.jcuda', name: 'jnvgraph', version: jCudaVersion) {
transitive = false
}
compile(group: 'org.jcuda', name: 'jcudnn', version: jCudaVersion) {
transitive = false
}
Expand All @@ -210,8 +202,6 @@ Thanks to [evbarnett](https://github.com/evbarnett) and
classifier: classifier, version: jCudaVersion
compile group: 'org.jcuda', name: 'jcusolver-natives',
classifier: classifier, version: jCudaVersion
compile group: 'org.jcuda', name: 'jnvgraph-natives',
classifier: classifier, version: jCudaVersion
compile group: 'org.jcuda', name: 'jcudnn-natives',
classifier: classifier, version: jCudaVersion
}
Expand Down

0 comments on commit d3dc1ba

Please sign in to comment.