2022-09-20 15:40:53 +02:00
|
|
|
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
|
2022-09-20 15:40:53 +02:00
|
|
|
|
|
|
|
implementation group: "org.bytedeco", name: "cuda"
|
|
|
|
implementation group: "org.bytedeco", name: "cuda", classifier: buildTarget
|
2023-08-28 09:35:18 +02:00
|
|
|
//implementation group: "org.bytedeco", name: "cuda", classifier: "${buildTarget}-redist"
|
2022-09-20 15:40:53 +02:00
|
|
|
|
|
|
|
implementation group: "org.bytedeco", name: "javacpp"
|
|
|
|
implementation group: "org.bytedeco", name: "javacpp", classifier: buildTarget
|
|
|
|
|
2023-08-28 09:35:18 +02:00
|
|
|
implementation projects.cavisNative.cavisNativeCudaPresets
|
|
|
|
|
|
|
|
//implementation name: "cavis-native:cavis-native-lib", configuration: "cuda"
|
|
|
|
implementation(project(":cavis-native:cavis-native-lib")) {
|
2022-09-20 15:40:53 +02:00
|
|
|
capabilities {
|
2023-08-28 09:35:18 +02:00
|
|
|
requireCapability("${project.group}:cavis-native-lib-cuda-support:${project.version}")
|
2022-09-20 15:40:53 +02:00
|
|
|
}
|
|
|
|
}
|
2023-08-28 09:35:18 +02:00
|
|
|
|
2022-09-20 15:40:53 +02:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2023-08-28 09:35:18 +02:00
|
|
|
tasks.named("compileJava").configure {
|
|
|
|
dependsOn ":cavis-native:cavis-native-lib:javacppCudaSupportBuildParser",
|
|
|
|
":cavis-native:cavis-native-lib:compileCudaGeneratedJava"
|
|
|
|
|
|
|
|
}
|
|
|
|
|