Skip to content

Commit 19c2fb2

Browse files
committed
remove conda env selection in cuda-build.sh
1 parent d1c596c commit 19c2fb2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.ci/scripts/test-cuda-build.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77

88
set -exu
99

10-
# The generic Linux job chooses to use base env, not the one setup by the image
11-
eval "$(conda shell.bash hook)"
12-
CONDA_ENV=$(conda info --envs | awk '/base/ {print $2}')
13-
conda activate "${CONDA_ENV}"
14-
1510
CUDA_VERSION=${1:-"12.6"}
1611

1712
echo "=== Testing ExecutorTorch CUDA ${CUDA_VERSION} Build ==="

.ci/scripts/test_backend_linux.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ REPORT_FILE="$ARTIFACT_DIR/test-report-$FLOW-$SUITE.csv"
1515
echo "Running backend test job for suite $SUITE, flow $FLOW."
1616
echo "Saving job artifacts to $ARTIFACT_DIR."
1717

18+
# The generic Linux job chooses to use base env, not the one setup by the image
19+
eval "$(conda shell.bash hook)"
20+
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
21+
conda activate "${CONDA_ENV}"
22+
1823
export PYTHON_EXECUTABLE=python
1924

2025
# CMake options to use, in addition to the defaults.

0 commit comments

Comments
 (0)