File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 18
18
source /opt/miniconda3/etc/profile.d/conda.sh
19
19
conda activate " $CONDA_ENV "
20
20
21
- # Set environment to use system libstdc++
22
- echo " Setting environment to use system libstdc++..."
23
- export LD_LIBRARY_PATH=" /usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH "
21
+ # Update libstdc++ to match system version
22
+ # Otherwise, we get errors like:
23
+ # ImportError: /opt/miniconda3/envs/tritonparse/bin/../lib/libstdc++.so.6:
24
+ # version `GLIBCXX_3.4.30' not found (required by /tmp/triton/python/triton/_C/libtriton.so)
25
+ echo " Updating libstdc++ to match system version..."
26
+ conda install -y -c conda-forge libstdcxx-ng=12.3.0
27
+ # Check if the update was successful
28
+ strings /opt/miniconda3/envs/tritonparse/lib/libstdc++.so.6 | grep GLIBCXX | tail -5
24
29
25
30
# Uninstall existing pytorch-triton
26
31
echo " Uninstalling existing pytorch-triton..."
You can’t perform that action at this time.
0 commit comments