Skip to content

Commit 8e5f5df

Browse files
authored
Merge pull request #2705 from q10/bm/fix-script
[fbgemm_gpu] Fix validate_binaries.sh for the CPU variant of FBGEMM_GPU
2 parents e6d5560 + c5bb731 commit 8e5f5df

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/scripts/validate_binaries.sh

+7-9
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,13 @@ echo "CONDA_ENV: ${CONDA_ENV}"
5858
# shellcheck disable=SC2155
5959
export CONDA_PREFIX=$(conda run -n "${CONDA_ENV}" printenv CONDA_PREFIX)
6060

61-
find / -name *cuda*
62-
63-
if [[ $CUDA_VERSION = cu* ]]; then
64-
# Setting LD_LIBRARY_PATH fixes the runtime error with fbgemm_gpu not
65-
# being able to locate libnvrtc.so
66-
echo "[NOVA] Setting LD_LIBRARY_PATH ..."
67-
conda env config vars set -n ${CONDA_ENV} \
68-
LD_LIBRARY_PATH="/usr/local/lib:/usr/lib64:${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
69-
fi
61+
62+
# Set LD_LIBRARY_PATH to fix the runtime error with fbgemm_gpu not
63+
# being able to locate libnvrtc.so
64+
# NOTE: The order of the entries in LD_LIBRARY_PATH matters
65+
echo "[NOVA] Setting LD_LIBRARY_PATH ..."
66+
conda env config vars set -n ${CONDA_ENV} \
67+
LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:/usr/local/lib:/usr/lib64:${LD_LIBRARY_PATH}"
7068

7169

7270
# install pytorch

0 commit comments

Comments
 (0)