Skip to content

Commit 44e2f45

Browse files
committed
test
1 parent 32314ec commit 44e2f45

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/scripts/cmake.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ if [[ "${GPU_ARCH_TYPE}" == "cuda" ]]; then
4242
else
4343
WITH_CUDA=0
4444
fi
45-
# Not sure why its needed
46-
LD_LIBRARY_PATH="/opt/conda/envs/ci/lib/:${LD_LIBRARY_PATH}"
4745

4846
echo '::group::Prepare CMake builds'
4947
mkdir -p cpp_build

.github/scripts/setup-env.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ conda activate ci
3737
conda install --quiet --yes libjpeg-turbo -c pytorch
3838
pip install --progress-bar=off --upgrade setuptools==72.1.0
3939

40+
# set ld_library_path - make sure so libraries are loaded from there
41+
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
42+
4043
# See https://github.com/pytorch/vision/issues/6790
4144
if [[ "${PYTHON_VERSION}" != "3.11" ]]; then
4245
pip install --progress-bar=off av!=10.0.0
@@ -81,7 +84,7 @@ PYTORCH_WHEEL_INDEX="https://download.pytorch.org/whl/${CHANNEL}/${GPU_ARCH_ID}"
8184
#pip install --progress-bar=off --pre torch --index-url="${PYTORCH_WHEEL_INDEX}"
8285

8386
#install torch built with manylinux 2.28
84-
pip install --progress-bar=off --pre torch==2.6.0.dev20241106 --index-url=https://download.pytorch.org/whl/nightly/cpu --force-reinstall
87+
pip install --progress-bar=off --pre torch==2.6.0.dev20241106 --index-url="${PYTORCH_WHEEL_INDEX}" --force-reinstall
8588

8689
if [[ $GPU_ARCH_TYPE == 'cuda' ]]; then
8790
python -c "import torch; exit(not torch.cuda.is_available())"

0 commit comments

Comments
 (0)