Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Use conda to build python packages during GPU tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Jacobelli <jjacobelli@nvidia.com>
  • Loading branch information
jjacobelli committed May 10, 2022
1 parent d69f9cb commit 08cdae6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
18 changes: 6 additions & 12 deletions ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export HOME="$WORKSPACE"
cd "$WORKSPACE"
export GIT_DESCRIBE_TAG=`git describe --tags`
export MINOR_VERSION=`echo $GIT_DESCRIBE_TAG | grep -o -E '([0-9]+\.[0-9]+)'`
unset GIT_DESCRIBE_TAG

################################################################################
# SETUP - Check environment
Expand All @@ -38,14 +39,6 @@ nvidia-smi
gpuci_logger "Activate conda env"
. /opt/conda/etc/profile.d/conda.sh
conda activate rapids
gpuci_conda_retry install -c rapidsai -c rapidsai-nightly -c nvidia -c conda-forge \
cudatoolkit=${CUDA_REL} \
"rapids-build-env=$MINOR_VERSION.*" \
"rapids-notebook-env=$MINOR_VERSION."

# https://docs.rapids.ai/maintainers/depmgmt/
# conda remove -f rapids-build-env rapids-notebook-env
# conda install "your-pkg=1.0.0"

gpuci_logger "Check versions"
python --version
Expand All @@ -61,8 +54,11 @@ conda list --show-channel-urls
# BUILD - Build cusignal
################################################################################

gpuci_logger "Build cusignal"
"$WORKSPACE/build.sh" clean cusignal
gpuci_logger "Build and install cusignal"
cd "${WORKSPACE}"
CONDA_BLD_DIR="${WORKSPACE}/.conda-bld"
gpuci_conda_retry build --croot "${CONDA_BLD_DIR}" conda/recipes/cusignal --python=${PYTHON}
gpuci_mamba_retry install -c "${CONDA_BLD_DIR}" cusignal

################################################################################
# TEST - Run GoogleTest and py.tests for cusignal
Expand All @@ -89,5 +85,3 @@ pytest --cache-clear --junitxml="$WORKSPACE/junit-cusignal.xml" -v -s -m "not cp
python ${WORKSPACE}/ci/utils/nbtestlog2junitxml.py nbtest.log

return ${EXITCODE}


2 changes: 1 addition & 1 deletion conda/recipes/cusignal/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package:
version: {{ version }}

source:
path: ../../..
git_url: ../../..

build:
number: {{ GIT_DESCRIBE_NUMBER }}
Expand Down
12 changes: 0 additions & 12 deletions python/cusignal/test/__init__.py

This file was deleted.

0 comments on commit 08cdae6

Please sign in to comment.