-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
11,472 additions
and
1,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
pipeline { | ||
agent any | ||
|
||
stages { | ||
stage('prepare') { | ||
steps { | ||
checkout scm | ||
} | ||
} | ||
stage('build') { | ||
steps { | ||
run_batch("0:15:00") | ||
} | ||
} | ||
stage('test') { | ||
steps { | ||
run_batch("1:00:00") | ||
} | ||
} | ||
} | ||
} | ||
|
||
def run_batch(timelimit) { | ||
def (account, basename) = env.JOB_NAME.split('/') | ||
// avoid using the shell for variable expansion to | ||
// get the final command displayed in Jenkins | ||
try { | ||
sh """ | ||
sbatch --wait \ | ||
--time="${timelimit}" \ | ||
--account="${account}" \ | ||
--job-name="${basename}" \ | ||
--output="sbatch.${env.BUILD_TAG}.${env.STAGE_NAME}.out" \ | ||
.ci/daint.cscs.ch/${env.STAGE_NAME}.sh | ||
""" | ||
} | ||
finally { | ||
echo readFile("sbatch.${env.BUILD_TAG}.${env.STAGE_NAME}.out") | ||
} | ||
} | ||
|
||
// vim: set filetype=groovy ts=4 sw=4 tw=0 : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash -l | ||
|
||
#SBATCH --export=ALL | ||
#SBATCH --exclusive | ||
#SBATCH --constraint="mc" | ||
#SBATCH --partition="cscsci" | ||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks-per-node=4 | ||
#SBATCH --cpus-per-task=3 | ||
#SBATCH --ntasks-per-core=1 # 1=no HT, 2=HT | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
module swap PrgEnv-cray PrgEnv-gnu | ||
module load daint-gpu cudatoolkit CMake/3.12.0 | ||
module unload cray-libsci_acc | ||
|
||
set -o xtrace # do not set earlier to avoid noise from module | ||
|
||
umask 0002 # make sure group members can access the data | ||
|
||
mkdir --mode=0775 -p "${SCRATCH}/${BUILD_TAG}" | ||
cd "${SCRATCH}/${BUILD_TAG}" | ||
|
||
cmake \ | ||
-DUSE_CUDA=ON \ | ||
-DUSE_CUBLAS=ON \ | ||
-DWITH_GPU=P100 \ | ||
-DMPIEXEC_EXECUTABLE="$(command -v srun)" \ | ||
-DTEST_MPI_RANKS=${SLURM_NTASKS} \ | ||
-DTEST_OMP_THREADS=${SLURM_CPUS_PER_TASK} \ | ||
"${WORKSPACE}" |& tee -a "${STAGE_NAME}.out" | ||
|
||
make VERBOSE=1 -j |& tee -a "${STAGE_NAME}.out" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash -l | ||
|
||
#SBATCH --export=ALL | ||
#SBATCH --exclusive | ||
#SBATCH --constraint="gpu" | ||
#SBATCH --partition="cscsci" | ||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks-per-node=4 | ||
#SBATCH --cpus-per-task=3 | ||
#SBATCH --ntasks-per-core=1 # 1=no HT, 2=HT | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
module swap PrgEnv-cray PrgEnv-gnu | ||
module load daint-gpu cudatoolkit CMake/3.12.0 | ||
module unload cray-libsci_acc | ||
|
||
set -o xtrace # do not set earlier to avoid noise from module | ||
|
||
umask 0002 # make sure group members can access the data | ||
|
||
mkdir --mode=0775 -p "${SCRATCH}/${BUILD_TAG}" | ||
cd "${SCRATCH}/${BUILD_TAG}" | ||
|
||
export CRAY_CUDA_MPS=1 # enable the CUDA proxy for MPI+CUDA | ||
export OMP_PROC_BIND=TRUE # set thread affinity | ||
# OMP_NUM_THREADS is set by cmake | ||
|
||
# document the current environment | ||
env |& tee -a "${STAGE_NAME}.out" | ||
|
||
env CTEST_OUTPUT_ON_FAILURE=1 make test |& tee -a "${STAGE_NAME}.out" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
max-line-length = 128 | ||
# ignore whitespaces in array slices (https://github.com/PyCQA/pycodestyle/issues/373) | ||
ignore = E203,W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MAJOR = 1 | ||
MINOR = 1 | ||
PATCH = 0 | ||
MAJOR = 2 | ||
MINOR = 0 | ||
PATCH = 0-alpha | ||
# A specific DATE (YYYY-MM-DD) fixes an official release, otherwise | ||
# it is considered Development version. | ||
DATE = 2019-04-08 | ||
DATE = 2019-04-15 |
Oops, something went wrong.