Skip to content

Commit

Permalink
update ci/gpu/build.sh to use librmm_tests pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ajschmidt8 committed Feb 15, 2022
1 parent ec2c167 commit 94ae368
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export GIT_DESCRIBE_TAG=`git describe --abbrev=0 --tags`
export GIT_DESCRIBE_NUMBER=`git rev-list ${GIT_DESCRIBE_TAG}..HEAD --count`
export MINOR_VERSION=`echo $GIT_DESCRIBE_TAG | grep -o -E '([0-9]+\.[0-9]+)'`

# Set sccache as CMake compiler
export CMAKE_CUDA_COMPILER_LAUNCHER="sccache"
export CMAKE_CXX_COMPILER_LAUNCHER="sccache"
export CMAKE_C_COMPILER_LAUNCHER="sccache"

################################################################################
# SETUP - Check environment
Expand Down Expand Up @@ -95,7 +91,8 @@ if [[ -z "$PROJECT_FLASH" || "$PROJECT_FLASH" == "0" ]]; then
py.test --cache-clear --basetemp=${WORKSPACE}/rmm-cuda-tmp --junitxml=${WORKSPACE}/test-results/junit-rmm.xml -v --cov-config=.coveragerc --cov=rmm --cov-report=xml:${WORKSPACE}/python/rmm-coverage.xml --cov-report term
fi
else
export LD_LIBRARY_PATH="$WORKSPACE/ci/artifacts/rmm/cpu/conda_work/build:$LD_LIBRARY_PATH"

gpuci_mamba_retry install -c $WORKSPACE/ci/artifacts/rmm/cpu/.conda-bld/ librmm librmm_tests

TESTRESULTS_DIR=${WORKSPACE}/test-results
mkdir -p ${TESTRESULTS_DIR}
Expand All @@ -105,9 +102,8 @@ else
nvidia-smi

gpuci_logger "Running googletests"
# run gtests
cd $WORKSPACE/ci/artifacts/rmm/cpu/conda_work
for gt in "build/gtests/*" ; do
# run gtests from librmm_tests package
for gt in "$CONDA_PREFIX/bin/gtests/librmm/*" ; do
${gt} --gtest_output=xml:${TESTRESULTS_DIR}/
exitcode=$?
if (( ${exitcode} != 0 )); then
Expand All @@ -117,13 +113,6 @@ else
done

cd $WORKSPACE/python

CONDA_FILE=`find $WORKSPACE/ci/artifacts/rmm/cpu/.conda-bld/ -name "librmm*.tar.bz2"`
CONDA_FILE=`basename "$CONDA_FILE" .tar.bz2` #get filename without extension
CONDA_FILE=${CONDA_FILE//-/=} #convert to conda install
gpuci_logger "Installing $CONDA_FILE"
gpuci_mamba_retry install -c $WORKSPACE/ci/artifacts/rmm/cpu/.conda-bld/ "$CONDA_FILE"

export LIBRMM_BUILD_DIR="$WORKSPACE/ci/artifacts/rmm/cpu/conda_work/build"

gpuci_logger "Building rmm"
Expand Down

0 comments on commit 94ae368

Please sign in to comment.