Skip to content

Commit

Permalink
[fbgemm_gpu] Set LD_LIBRARY_PATH in install script
Browse files Browse the repository at this point in the history
- Set LD_LIBRARY_PATH in the fbgemm_gpu install script to fix the issue with fbgem_gpu
being unable to locate libnvrtc.so on start
  • Loading branch information
q10 committed Jan 8, 2025
1 parent 65ebab1 commit 5f1700c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/scripts/install_fbgemm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

echo "CU_VERSION"
echo "$CU_VERSION"
echo "CU_VERSION: ${CU_VERSION}"
echo "CHANNEL: ${CHANNEL}"
echo "CONDA_ENV: ${CONDA_ENV}"

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

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

0 comments on commit 5f1700c

Please sign in to comment.