-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add jenkinsfile * add build step * rename jenkinsfile * add timeout Co-authored-by: Karl Higley <kmhigley@gmail.com>
- Loading branch information
1 parent
57ab7e0
commit 72f967a
Showing
1 changed file
with
44 additions
and
0 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,44 @@ | ||
pipeline { | ||
agent { | ||
docker { | ||
image 'nvcr.io/nvstaging/merlin/merlin-ci-runner-wrapper' | ||
label 'merlin_gpu' | ||
registryCredentialsId 'jawe-nvcr-io' | ||
registryUrl 'https://nvcr.io' | ||
args "--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all" | ||
} | ||
} | ||
|
||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '10')) | ||
ansiColor('xterm') | ||
disableConcurrentBuilds(abortPrevious: true) | ||
} | ||
|
||
stages { | ||
stage("test-gpu") { | ||
options { | ||
timeout(time: 60, unit: 'MINUTES', activity: true) | ||
} | ||
steps { | ||
sh """#!/bin/bash | ||
#set -e | ||
printenv | ||
|
||
rm -rf $HOME/.cudf/ | ||
export TF_MEMORY_ALLOCATION="0.1" | ||
export CUDA_VISIBLE_DEVICES=0,1 | ||
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION='python' | ||
export MKL_SERVICE_FORCE_INTEL=1 | ||
export NR_USER=true | ||
|
||
tox -re test-gpu | ||
|
||
rm -rf "nvtabular-$GIT_COMMIT" | ||
rm -rf "models-$GIT_COMMIT" | ||
rm -rf "systems-$GIT_COMMIT" | ||
""" | ||
} | ||
} | ||
} | ||
} |