Commit 605e6e6 pytorchbot
committed
1 parent 62d4a61 commit 605e6e6 Copy full SHA for 605e6e6
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 5
5
# This source code is licensed under the BSD-style license found in the
6
6
# LICENSE file in the root directory of this source tree.
7
7
8
- echo " CU_VERSION"
9
- echo " $CU_VERSION "
8
+ echo " CU_VERSION: ${CU_VERSION} "
9
+ echo " CHANNEL: ${CHANNEL} "
10
+ echo " CONDA_ENV: ${CONDA_ENV} "
10
11
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
13
19
14
20
if [ " $CHANNEL " = " nightly" ]; then
15
21
${CONDA_RUN} pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/" $CU_VERSION "
You can’t perform that action at this time.
0 commit comments