Skip to content

Commit

Permalink
Merge pull request #1 from charlesbluca/add-gpuci-script
Browse files Browse the repository at this point in the history
Fill in gpuCI build script
  • Loading branch information
charlesbluca authored Jul 30, 2021
2 parents 01cc667 + a3fe896 commit c4a5e86
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
13 changes: 13 additions & 0 deletions continuous_integration/gpuci/axis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PYTHON_VER:
- 3.8

CUDA_VER:
- 11.2

LINUX_VER:
- ubuntu18.04

RAPIDS_VER:
- 21.08

excludes:
53 changes: 52 additions & 1 deletion continuous_integration/gpuci/build.sh
Original file line number Diff line number Diff line change
@@ -1 +1,52 @@
# TODO
##############################################
# Dask GPU build and test script for CI #
##############################################
set -e
NUMARGS=$#
ARGS=$*

# Arg parsing function
function hasArg {
(( ${NUMARGS} != 0 )) && (echo " ${ARGS} " | grep -q " $1 ")
}

# Set path and build parallel level
export PATH=/opt/conda/bin:/usr/local/cuda/bin:$PATH
export PARALLEL_LEVEL=${PARALLEL_LEVEL:-4}

# Set home to the job's workspace
export HOME="$WORKSPACE"

# Switch to project root; also root of repo checkout
cd "$WORKSPACE"

# Determine CUDA release version
export CUDA_REL=${CUDA_VERSION%.*}

################################################################################
# SETUP - Check environment
################################################################################

gpuci_logger "Check environment variables"
env

gpuci_logger "Check GPU usage"
nvidia-smi

gpuci_logger "Activate conda env"
. /opt/conda/etc/profile.d/conda.sh
conda activate dask

gpuci_logger "Install dask"
python setup.py install

gpuci_logger "Check compiler versions"
python --version

gpuci_logger "Check conda environment"
conda info
conda config --show-sources
conda list --show-channel-urls

gpuci_logger "Python py.test for dask"
py.test $WORKSPACE -n 4 -v -m gpu --junitxml="$WORKSPACE/junit-dask.xml" --cov-config="$WORKSPACE/.coveragerc" --cov=dask --cov-report=xml:"$WORKSPACE/dask-coverage.xml" --cov-report term

0 comments on commit c4a5e86

Please sign in to comment.