Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.nakul02:mavenized-jcuda:'
}
dependencies {
implementation("com.github.nakul02:mavenized-jcuda:")
}
<dependency>
<groupId>com.github.nakul02</groupId>
<artifactId>mavenized-jcuda</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.nakul02" % "mavenized-jcuda" % ""
:dependencies [[com.github.nakul02/mavenized-jcuda ""]]
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)
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)