Skip to content

Commit 66e7862

Browse files
committed
Build python using conda in GPU jobs
Signed-off-by: Jordan Jacobelli <jjacobelli@nvidia.com>
1 parent 921d286 commit 66e7862

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

ci/gpu/build.sh

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ gpuci_logger "Activate conda env"
4343
. /opt/conda/etc/profile.d/conda.sh
4444
conda activate rapids
4545

46-
# Install build env
47-
gpuci_mamba_retry install -y \
48-
"cudatoolkit=$CUDA_REL" \
49-
"rapids-build-env=${MINOR_VERSION}.*"
50-
51-
# https://docs.rapids.ai/maintainers/depmgmt/
52-
# conda remove --force rapids-build-env
53-
# gpuci_mamba_retry install "your-pkg=1.0.0"
54-
5546
gpuci_logger "Check versions"
5647
python --version
5748
$CC --version
@@ -63,6 +54,15 @@ conda config --show-sources
6354
conda list --show-channel-urls
6455

6556
if [[ -z "$PROJECT_FLASH" || "$PROJECT_FLASH" == "0" ]]; then
57+
# Install build env
58+
gpuci_mamba_retry install -y \
59+
"cudatoolkit=$CUDA_REL" \
60+
"rapids-build-env=${MINOR_VERSION}.*"
61+
62+
# https://docs.rapids.ai/maintainers/depmgmt/
63+
# conda remove --force rapids-build-env
64+
# gpuci_mamba_retry install "your-pkg=1.0.0"
65+
6666
################################################################################
6767
# BUILD - Build and install librmm and rmm
6868
################################################################################
@@ -90,7 +90,6 @@ if [[ -z "$PROJECT_FLASH" || "$PROJECT_FLASH" == "0" ]]; then
9090
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
9191
fi
9292
else
93-
9493
gpuci_mamba_retry install -c $WORKSPACE/ci/artifacts/rmm/cpu/.conda-bld/ librmm librmm-tests
9594

9695
TESTRESULTS_DIR=${WORKSPACE}/test-results
@@ -111,12 +110,14 @@ else
111110
fi
112111
done
113112

114-
cd $WORKSPACE/python
115-
export LIBRMM_BUILD_DIR="$WORKSPACE/ci/artifacts/rmm/cpu/conda_work/build"
116-
117-
gpuci_logger "Building rmm"
118-
"$WORKSPACE/build.sh" -v rmm
113+
export CONDA_BLD_DIR="$WORKSPACE/.conda-bld"
114+
gpuci_logger "Building and installing rmm"
115+
gpuci_conda_retry build --no-build-id --croot ${CONDA_BLD_DIR} \
116+
-c $WORKSPACE/ci/artifacts/rmm/cpu/.conda-bld/ conda/recipes/rmm
117+
gpuci_mamba_retry install -c $WORKSPACE/ci/artifacts/rmm/cpu/.conda-bld/ \
118+
-c ${CONDA_BLD_DIR} rmm
119119

120+
cd $WORKSPACE/python
120121
gpuci_logger "pytest rmm"
121122
py.test --cache-clear --junitxml=${WORKSPACE}/test-results/junit-rmm.xml -v --cov-config=.coveragerc --cov=rmm --cov-report=xml:${WORKSPACE}/python/rmm-coverage.xml --cov-report term
122123
exitcode=$?

0 commit comments

Comments
 (0)