Skip to content

Commit 605e6e6

Browse files
author
pytorchbot
committed
2025-01-09 nightly release (905612b)
1 parent 62d4a61 commit 605e6e6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/scripts/install_fbgemm.sh

+10-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
77

8-
echo "CU_VERSION"
9-
echo "$CU_VERSION"
8+
echo "CU_VERSION: ${CU_VERSION}"
9+
echo "CHANNEL: ${CHANNEL}"
10+
echo "CONDA_ENV: ${CONDA_ENV}"
1011

11-
echo "CHANNEL"
12-
echo "$CHANNEL"
12+
if [[ $CU_VERSION = cu* ]]; then
13+
# Setting LD_LIBRARY_PATH fixes the runtime error with fbgemm_gpu not
14+
# being able to locate libnvrtc.so
15+
echo "[NOVA] Setting LD_LIBRARY_PATH ..."
16+
conda env config vars set -p ${CONDA_ENV} \
17+
LD_LIBRARY_PATH="/usr/local/lib:${CUDA_HOME}/lib64:${CONDA_ENV}/lib:${LD_LIBRARY_PATH}"
18+
fi
1319

1420
if [ "$CHANNEL" = "nightly" ]; then
1521
${CONDA_RUN} pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/"$CU_VERSION"

0 commit comments

Comments
 (0)