Add jenkinsfile for pipeline build and dockerfile for build

Signed-off-by: brian <brian@brutex.de>
master
Brian Rosenberger 2022-10-24 18:04:38 +02:00
parent 42a27480e6
commit 6af05fc8a5
2 changed files with 4 additions and 2 deletions

View File

@ -36,14 +36,17 @@ dependencies {
} }
} }
*/ */
if(withCpu()) api project(path: ":cavis-native:cavi-native-lib", configuration: "cpuSupportCompileClasspath")
if(withCuda()) api project(path: ":cavis-native:cavi-native-lib", configuration: "cudaSupportCompileClasspath")
/*
api (project(':cavis-native:cavis-native-lib')) { api (project(':cavis-native:cavis-native-lib')) {
capabilities { capabilities {
if(withCpu()) requireCapability("net.brutex.cavis.cavis-native:cavis-native-lib-cpu-support") if(withCpu()) requireCapability("net.brutex.cavis.cavis-native:cavis-native-lib-cpu-support")
//if(withCuda()) requireCapability("net.brutex.cavis.cavis-native:cavis-native-lib-cuda-support") //if(withCuda()) requireCapability("net.brutex.cavis.cavis-native:cavis-native-lib-cuda-support")
} }
} }
*/
} }

View File

@ -315,7 +315,6 @@ chipList.each { thisChip ->
classOrPackageNames = ["org.nd4j.nativeblas.${thisChip}.Nd4j${thisChip.capitalize()}Presets"] classOrPackageNames = ["org.nd4j.nativeblas.${thisChip}.Nd4j${thisChip.capitalize()}Presets"]
outputDirectory = file("${buildDir}/generated/sources/javacpp/${thisChip}/${javacppPlatform}${javacppPlatformExtension}/") outputDirectory = file("${buildDir}/generated/sources/javacpp/${thisChip}/${javacppPlatform}${javacppPlatformExtension}/")
classPath = sourceSets.getByName("${thisChip}Support").getRuntimeClasspath() classPath = sourceSets.getByName("${thisChip}Support").getRuntimeClasspath()
classPath += ["${buildDir}/classes/java/${thisChip}Support/"] classPath += ["${buildDir}/classes/java/${thisChip}Support/"]
} }