Skip to content

Commit

Permalink
and LB_LIBRARY_PATH for cpu case in install_fbgemm.sh (#2699)
Browse files Browse the repository at this point in the history
Summary:

# context
* `LB_LIBRARY_PATH` is missing the required path for cpu case, leading to test failure at https://github.com/pytorch/torchrec/actions/runs/12914965105
```
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /__w/_temp/conda_environment_12914965105/lib/python3.12/site-packages/tensordict/_C.so)
```
* this diff adding the missing branch when there is only cpu available

Reviewed By: vmoens

Differential Revision: D68524715
  • Loading branch information
TroyGarden authored and facebook-github-bot committed Jan 22, 2025
1 parent 519f193 commit 5fadff7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/install_fbgemm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if [[ $CU_VERSION = cu* ]]; then
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}"
else
echo "[NOVA] Setting LD_LIBRARY_PATH ..."
conda env config vars set -p ${CONDA_ENV} \
LD_LIBRARY_PATH="/usr/local/lib:${CONDA_ENV}/lib:${LD_LIBRARY_PATH}"
fi

if [ "$CHANNEL" = "nightly" ]; then
Expand Down

0 comments on commit 5fadff7

Please sign in to comment.