cavis/cavis-native/cavis-native-jcublas/build.gradle

47 lines
1.5 KiB
Groovy
Raw Normal View History

plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
ext {
buildTarget = rootProject.ext.buildTarget
}
dependencies {
implementation platform(projects.cavisCommonPlatform)
2023-03-10 11:20:32 +01:00
implementation projects.cavisNative.cavisNativeBlas
implementation group: "org.bytedeco", name: "cuda"
implementation group: "org.bytedeco", name: "cuda", classifier: buildTarget
//implementation group: "org.bytedeco", name: "cuda", classifier: "${buildTarget}-redist"
implementation group: "org.bytedeco", name: "javacpp"
implementation group: "org.bytedeco", name: "javacpp", classifier: buildTarget
implementation projects.cavisNative.cavisNativeCudaPresets
//implementation name: "cavis-native:cavis-native-lib", configuration: "cuda"
implementation(project(":cavis-native:cavis-native-lib")) {
capabilities {
requireCapability("${project.group}:cavis-native-lib-cuda-support:${project.version}")
}
}
implementation project(":cavis-native:cavis-native-common")
implementation project(":cavis-dnn:cavis-dnn-api")
implementation project(":cavis-dnn:cavis-dnn-common")
implementation "com.google.guava:guava"
implementation "com.google.flatbuffers:flatbuffers-java"
implementation "org.slf4j:slf4j-api"
implementation "org.apache.commons:commons-lang3"
}
tasks.named("compileJava").configure {
dependsOn ":cavis-native:cavis-native-lib:javacppCudaSupportBuildParser",
":cavis-native:cavis-native-lib:compileCudaGeneratedJava"
}