Compare commits
174 Commits
1749b9e4af
...
1c3496ad84
Author | SHA1 | Date | |
---|---|---|---|
1c3496ad84 | |||
3ea555b645 | |||
e11568605d | |||
9f0682eb75 | |||
ca127d8b88 | |||
deb436036b | |||
1f2bfb36a5 | |||
b477b71325 | |||
d75e0be506 | |||
318cafb6f0 | |||
24466a8fd4 | |||
581a14118c | |||
871073e4a4 | |||
35ea21e436 | |||
cb236878a4 | |||
7628bbdd53 | |||
396dbec24e | |||
e576659639 | |||
3267b06bde | |||
8f524827e4 | |||
391a1ad397 | |||
55f8486fe3 | |||
9139940101 | |||
ad870c5281 | |||
f6100c362d | |||
|
4482113f23 | ||
98ea7d0b3b | |||
1e0851d0ff | |||
d592e02852 | |||
42fb4bd48e | |||
aab7b423d1 | |||
a39e44c782 | |||
f92b786836 | |||
2b4d44ea67 | |||
a32644bdb7 | |||
07c052d822 | |||
5c98c5e1ed | |||
82dec223ac | |||
a4bf1c3e62 | |||
205252e5a9 | |||
11ba7a59c1 | |||
4ad1987a07 | |||
ac7df3831e | |||
c58038bf06 | |||
7451979a3c | |||
2f8e6ea1f8 | |||
82e65bdf59 | |||
9d4939ccfd | |||
1f2e82d3ef | |||
0f21ed9ec5 | |||
a5dfdcb18f | |||
3edb90dbd1 | |||
9af4f9f23a | |||
fec570ff98 | |||
4665c5a10a | |||
98665032b1 | |||
67e32adb56 | |||
e59e14da35 | |||
8d31caffbe | |||
bf10564be7 | |||
e61068da55 | |||
9bc4009d10 | |||
d02c5d7862 | |||
f4bd8c7400 | |||
d91d9db283 | |||
80aad3087a | |||
fa3c9a3a4f | |||
49fdbff24c | |||
bc99c932cf | |||
565bc17cfb | |||
badbc19eae | |||
b2acaf8062 | |||
2bde6f0975 | |||
75e1fb9005 | |||
286cf061ab | |||
6107c7efef | |||
6abe96a1da | |||
a6d60a4cdb | |||
ef4f3a9841 | |||
d4b53afe89 | |||
258e8b4486 | |||
d31457b545 | |||
b023808b1d | |||
55165c9e2c | |||
474d072697 | |||
731d7d510e | |||
c912c4ece1 | |||
9229c9d0f8 | |||
41fd85aa67 | |||
6f8c14c0a3 | |||
602220e07e | |||
400429a32f | |||
efd106dc0a | |||
46b04cc0b4 | |||
7cd0cd12cc | |||
a310b6be95 | |||
0aea7d8e4c | |||
0bd8f072c0 | |||
6af05fc8a5 | |||
42a27480e6 | |||
4857b71181 | |||
638f13e681 | |||
6044c1c53a | |||
1e681e7c05 | |||
f1695eb8ae | |||
460205101c | |||
a9bcb7f0c8 | |||
30041c8aa5 | |||
c3bb9d44cd | |||
7a105ed207 | |||
cf5c9b53b9 | |||
2e074768f3 | |||
0d443b8eda | |||
471657fef7 | |||
582cbdf67d | |||
1c2ca75308 | |||
66ed10a5e3 | |||
931841d669 | |||
d767abdeba | |||
4dfc637305 | |||
656d367812 | |||
234b91a5b1 | |||
0a9a0cdf3c | |||
e5d45fb620 | |||
28b1df3773 | |||
df7675fba7 | |||
55c9d7d10c | |||
2ca92d3431 | |||
87488dbdd7 | |||
6174642bfe | |||
fd4da57a0d | |||
05e8a78d51 | |||
97fbd07a0c | |||
320b4430dd | |||
f1a0a66021 | |||
976491ee86 | |||
5eb3d1c33d | |||
4718195681 | |||
e695f1c653 | |||
2a96e71853 | |||
a9890feb9f | |||
941275df3a | |||
1ee6b7a231 | |||
e3d64a1cac | |||
81d49ba1f0 | |||
0e50a1a04c | |||
4f3393ceb4 | |||
b43e5860a9 | |||
b08a0ac24b | |||
efbb341742 | |||
a279242459 | |||
011ce913c9 | |||
21e7f1c8b8 | |||
6960418295 | |||
f8067f8f96 | |||
c46e6e4c68 | |||
6cb5d30284 | |||
098fcf4870 | |||
2da0a94750 | |||
1aa8a1fbf5 | |||
6fd0702ea5 | |||
9660ab026d | |||
a7f75fe6db | |||
b8a21bc991 | |||
acdd9c0a8a | |||
6856b154b1 | |||
7bcfa76df4 | |||
37e1e60603 | |||
7362ea278b | |||
2d9558af6b | |||
62060d8131 | |||
b6575b22c8 | |||
d2aa6adce0 | |||
e9daaf50f7 |
@ -1,8 +1,15 @@
|
||||
FROM nvidia/cuda:11.4.0-cudnn8-devel-ubuntu20.04
|
||||
FROM nvidia/cuda:11.4.3-cudnn8-devel-ubuntu20.04
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-11-jdk wget build-essential checkinstall zlib1g-dev libssl-dev git
|
||||
RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \
|
||||
tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \
|
||||
./bootstrap && make && make install
|
||||
#Build cmake version from source \
|
||||
#RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \
|
||||
# tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \
|
||||
# ./bootstrap && make && make install
|
||||
RUN wget -nv https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2-linux-x86_64.sh && \
|
||||
mkdir /opt/cmake && sh ./cmake-3.24.2-linux-x86_64.sh --skip-license --prefix=/opt/cmake && ln -s /opt/cmake/bin/cmake /usr/bin/cmake && \
|
||||
rm cmake-3.24.2-linux-x86_64.sh
|
||||
|
||||
|
||||
RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf
|
||||
|
||||
|
30
.gitignore
vendored
30
.gitignore
vendored
@ -36,6 +36,8 @@ pom.xml.versionsBackup
|
||||
pom.xml.next
|
||||
release.properties
|
||||
*dependency-reduced-pom.xml
|
||||
**/build/*
|
||||
.gradle/*
|
||||
|
||||
# Specific for Nd4j
|
||||
*.md5
|
||||
@ -50,12 +52,12 @@ release.properties
|
||||
*.dylib
|
||||
.vs/
|
||||
.vscode/
|
||||
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/resources/bin
|
||||
nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/test/resources/writeNumpy.csv
|
||||
nd4j/nd4j-backends/nd4j-tests/src/test/resources/tf_graphs/examples/**/data-all*
|
||||
nd4j/nd4j-backends/nd4j-tests/src/test/resources/tf_graphs/examples/**/checkpoint
|
||||
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/onnx/
|
||||
nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/tensorflow/
|
||||
.old/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/resources/bin
|
||||
.old/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/test/resources/writeNumpy.csv
|
||||
.old/nd4j/nd4j-backends/nd4j-tests/src/test/resources/tf_graphs/examples/**/data-all*
|
||||
.old/nd4j/nd4j-backends/nd4j-tests/src/test/resources/tf_graphs/examples/**/checkpoint
|
||||
.old/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/onnx/
|
||||
.old/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/tensorflow/
|
||||
|
||||
doc_sources/
|
||||
doc_sources_*
|
||||
@ -67,8 +69,8 @@ venv/
|
||||
venv2/
|
||||
|
||||
# Ignore the nd4j files that are created by javacpp at build to stop merge conflicts
|
||||
nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpu.java
|
||||
nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCuda.java
|
||||
.old/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpu.java
|
||||
.old/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/src/main/java/org/nd4j/nativeblas/Nd4jCuda.java
|
||||
|
||||
# Ignore meld temp files
|
||||
*.orig
|
||||
@ -82,3 +84,15 @@ bruai4j-native-common/cmake*
|
||||
*.dll
|
||||
/bruai4j-native/bruai4j-native-common/blasbuild/
|
||||
/bruai4j-native/bruai4j-native-common/build/
|
||||
/cavis-native/cavis-native-lib/blasbuild/
|
||||
/cavis-dnn/cavis-dnn-core/build/reports/tests/cudaTest/classes/org.deeplearning4j.gradientcheck.AttentionLayerTest.html
|
||||
/cavis-dnn/cavis-dnn-core/build/reports/tests/cudaTest/css/base-style.css
|
||||
/cavis-dnn/cavis-dnn-core/build/reports/tests/cudaTest/css/style.css
|
||||
/cavis-dnn/cavis-dnn-core/build/reports/tests/cudaTest/js/report.js
|
||||
/cavis-dnn/cavis-dnn-core/build/reports/tests/cudaTest/packages/org.deeplearning4j.gradientcheck.html
|
||||
/cavis-dnn/cavis-dnn-core/build/reports/tests/cudaTest/index.html
|
||||
/cavis-dnn/cavis-dnn-core/build/resources/main/iris.dat
|
||||
/cavis-dnn/cavis-dnn-core/build/resources/test/junit-platform.properties
|
||||
/cavis-dnn/cavis-dnn-core/build/resources/test/logback-test.xml
|
||||
/cavis-dnn/cavis-dnn-core/build/test-results/cudaTest/TEST-org.deeplearning4j.gradientcheck.AttentionLayerTest.xml
|
||||
/cavis-dnn/cavis-dnn-core/build/tmp/jar/MANIFEST.MF
|
||||
|
82
.jenkins/linux-x86_64-cpu-build.jenkinsfile
Normal file
82
.jenkins/linux-x86_64-cpu-build.jenkinsfile
Normal file
@ -0,0 +1,82 @@
|
||||
/*
|
||||
*
|
||||
* ******************************************************************************
|
||||
* *
|
||||
* * This program and the accompanying materials are made available under the
|
||||
* * terms of the Apache License, Version 2.0 which is available at
|
||||
* * https://www.apache.org/licenses/LICENSE-2.0.
|
||||
* *
|
||||
* * See the NOTICE file distributed with this work for additional
|
||||
* * information regarding copyright ownership.
|
||||
* * Unless required by applicable law or agreed to in writing, software
|
||||
* * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* * License for the specific language governing permissions and limitations
|
||||
* * under the License.
|
||||
* *
|
||||
* * SPDX-License-Identifier: Apache-2.0
|
||||
* *****************************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('prep-build-environment-linux-cpu') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'gcc --version'
|
||||
sh 'cmake --version'
|
||||
sh 'sh ./gradlew --version'
|
||||
}
|
||||
}
|
||||
stage('build-linux-cpu') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal_Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew build --stacktrace -x test -PCAVIS_CHIP=cpu \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
/*stage('test-linux-cpu') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew test --stacktrace -PexcludeTests=\'long-running,performance\' -PCAVIS_CHIP=cpu \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}*/
|
||||
stage('publish-linux-cpu') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew publish --stacktrace -PCAVIS_CHIP=cpu \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
62
.jenkins/linux-x86_64-cuda-build.jenkinsfile
Normal file
62
.jenkins/linux-x86_64-cuda-build.jenkinsfile
Normal file
@ -0,0 +1,62 @@
|
||||
/*
|
||||
*
|
||||
* ******************************************************************************
|
||||
* *
|
||||
* * This program and the accompanying materials are made available under the
|
||||
* * terms of the Apache License, Version 2.0 which is available at
|
||||
* * https://www.apache.org/licenses/LICENSE-2.0.
|
||||
* *
|
||||
* * See the NOTICE file distributed with this work for additional
|
||||
* * information regarding copyright ownership.
|
||||
* * Unless required by applicable law or agreed to in writing, software
|
||||
* * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* * License for the specific language governing permissions and limitations
|
||||
* * under the License.
|
||||
* *
|
||||
* * SPDX-License-Identifier: Apache-2.0
|
||||
* *****************************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
/* dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir '.docker'
|
||||
label 'linux && cuda'
|
||||
//additionalBuildArgs '--build-arg version=1.0.2'
|
||||
//args '--gpus all' --needed for test only, you can build without GPU
|
||||
}
|
||||
*/
|
||||
label 'linux && cuda'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('prep-build-environment-linux-cuda') {
|
||||
steps {
|
||||
checkout scm
|
||||
//sh 'nvidia-smi'
|
||||
sh 'nvcc --version'
|
||||
sh 'gcc --version'
|
||||
sh 'cmake --version'
|
||||
sh 'sh ./gradlew --version'
|
||||
}
|
||||
}
|
||||
stage('build-linux-cuda') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal_Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew build --stacktrace -PCAVIS_CHIP=cuda \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
66
.jenkins/linux-x86_64-docker-all-publish.jenkinsfile
Normal file
66
.jenkins/linux-x86_64-docker-all-publish.jenkinsfile
Normal file
@ -0,0 +1,66 @@
|
||||
/*
|
||||
*
|
||||
* ******************************************************************************
|
||||
* *
|
||||
* * This program and the accompanying materials are made available under the
|
||||
* * terms of the Apache License, Version 2.0 which is available at
|
||||
* * https://www.apache.org/licenses/LICENSE-2.0.
|
||||
* *
|
||||
* * See the NOTICE file distributed with this work for additional
|
||||
* * information regarding copyright ownership.
|
||||
* * Unless required by applicable law or agreed to in writing, software
|
||||
* * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* * License for the specific language governing permissions and limitations
|
||||
* * under the License.
|
||||
* *
|
||||
* * SPDX-License-Identifier: Apache-2.0
|
||||
* *****************************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir '.docker'
|
||||
label 'linux && docker && cuda'
|
||||
//additionalBuildArgs '--build-arg version=1.0.2'
|
||||
//args '--gpus all' --needed for test only, you can build without GPU
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("Build all chip") {
|
||||
parallel {
|
||||
|
||||
stage('prep-build-environment-linux-cuda') {
|
||||
|
||||
steps {
|
||||
checkout scm
|
||||
//sh 'nvidia-smi'
|
||||
sh 'nvcc --version'
|
||||
sh 'gcc --version'
|
||||
sh 'cmake --version'
|
||||
sh 'sh ./gradlew --version'
|
||||
}
|
||||
}
|
||||
stage('build-linux-cuda') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal_Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew build --stacktrace -x test -PCAVIS_CHIP=cuda \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
88
.jenkins/linux-x86_64-docker-cpu-build.jenkinsfile
Normal file
88
.jenkins/linux-x86_64-docker-cpu-build.jenkinsfile
Normal file
@ -0,0 +1,88 @@
|
||||
/*
|
||||
*
|
||||
* ******************************************************************************
|
||||
* *
|
||||
* * This program and the accompanying materials are made available under the
|
||||
* * terms of the Apache License, Version 2.0 which is available at
|
||||
* * https://www.apache.org/licenses/LICENSE-2.0.
|
||||
* *
|
||||
* * See the NOTICE file distributed with this work for additional
|
||||
* * information regarding copyright ownership.
|
||||
* * Unless required by applicable law or agreed to in writing, software
|
||||
* * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* * License for the specific language governing permissions and limitations
|
||||
* * under the License.
|
||||
* *
|
||||
* * SPDX-License-Identifier: Apache-2.0
|
||||
* *****************************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir '.docker'
|
||||
label 'linux && docker'
|
||||
//additionalBuildArgs '--build-arg version=1.0.2'
|
||||
//args '--gpus all'
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('prep-build-environment-linux-cpu') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'gcc --version'
|
||||
sh 'cmake --version'
|
||||
sh 'sh ./gradlew --version'
|
||||
}
|
||||
}
|
||||
stage('build-linux-cpu') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal_Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew build --stacktrace -x test -PCAVIS_CHIP=cpu \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
stage('test-linux-cpu') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
//sh 'sh ./gradlew test --stacktrace -PCAVIS_CHIP=cpu \
|
||||
// -Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
// -PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
stage('publish-linux-cpu') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew publish --stacktrace -PCAVIS_CHIP=cpu \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
49
.jenkins/linux-x86_64-docker-cpu-publish.jenkinsfile
Normal file
49
.jenkins/linux-x86_64-docker-cpu-publish.jenkinsfile
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
*
|
||||
* ******************************************************************************
|
||||
* *
|
||||
* * This program and the accompanying materials are made available under the
|
||||
* * terms of the Apache License, Version 2.0 which is available at
|
||||
* * https://www.apache.org/licenses/LICENSE-2.0.
|
||||
* *
|
||||
* * See the NOTICE file distributed with this work for additional
|
||||
* * information regarding copyright ownership.
|
||||
* * Unless required by applicable law or agreed to in writing, software
|
||||
* * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* * License for the specific language governing permissions and limitations
|
||||
* * under the License.
|
||||
* *
|
||||
* * SPDX-License-Identifier: Apache-2.0
|
||||
* *****************************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir '.docker'
|
||||
label 'linux && docker'
|
||||
//additionalBuildArgs '--build-arg version=1.0.2'
|
||||
//args '--gpus all'
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('publish-linux-cpu') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal_Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew publish -x test -PCAVIS_CHIP=cpu \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -20,14 +20,13 @@
|
||||
*/
|
||||
|
||||
pipeline {
|
||||
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir '.docker'
|
||||
label 'linuxdocker'
|
||||
label 'linux && docker && cuda'
|
||||
//additionalBuildArgs '--build-arg version=1.0.2'
|
||||
args '--gpus all'
|
||||
//args '--gpus all' --needed for test only, you can build without GPU
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,7 +34,7 @@ pipeline {
|
||||
stage('prep-build-environment-linux-cuda') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'nvidia-smi'
|
||||
//sh 'nvidia-smi'
|
||||
sh 'nvcc --version'
|
||||
sh 'gcc --version'
|
||||
sh 'cmake --version'
|
||||
@ -44,19 +43,33 @@ pipeline {
|
||||
}
|
||||
stage('build-linux-cuda') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal Archiva')
|
||||
MAVEN = credentials('Internal_Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew publish --stacktrace -x test -PCAVIS_CHIP=cuda \
|
||||
sh 'sh ./gradlew build --stacktrace -x test -PCAVIS_CHIP=cuda \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
stage('test-linux-cuda') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal_Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew test --stacktrace -PexcludeTests=\'long-running,performance\' -Pskip-native=true -PCAVIS_CHIP=cuda \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
58
.jenkins/wsl-x86_64-docker-cpu-build.jenkinsfile
Normal file
58
.jenkins/wsl-x86_64-docker-cpu-build.jenkinsfile
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
*
|
||||
* ******************************************************************************
|
||||
* *
|
||||
* * This program and the accompanying materials are made available under the
|
||||
* * terms of the Apache License, Version 2.0 which is available at
|
||||
* * https://www.apache.org/licenses/LICENSE-2.0.
|
||||
* *
|
||||
* * See the NOTICE file distributed with this work for additional
|
||||
* * information regarding copyright ownership.
|
||||
* * Unless required by applicable law or agreed to in writing, software
|
||||
* * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* * License for the specific language governing permissions and limitations
|
||||
* * under the License.
|
||||
* *
|
||||
* * SPDX-License-Identifier: Apache-2.0
|
||||
* *****************************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir '.docker'
|
||||
label 'WSL-docker'
|
||||
//additionalBuildArgs '--build-arg version=1.0.2'
|
||||
//args '--gpus all'
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('prep-build-environment-linux-cpu') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'gcc --version'
|
||||
sh 'cmake --version'
|
||||
sh 'sh ./gradlew --version'
|
||||
}
|
||||
}
|
||||
stage('build-linux-cpu') {
|
||||
environment {
|
||||
MAVEN = credentials('Internal_Archiva')
|
||||
OSSRH = credentials('OSSRH')
|
||||
}
|
||||
|
||||
steps {
|
||||
withGradle {
|
||||
sh 'sh ./gradlew publish --stacktrace -x test -PCAVIS_CHIP=cpu \
|
||||
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||
}
|
||||
//stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user