Open Looong01 opened 7 months ago
@Looong01 Looong01 on Feb 7, 2023 Author
I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error
OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/lib/python3.8/site-packages/torch_scatter/_version_cuda.so)
What operation did you do before this error?
@PavanKumarMiriyala PavanKumarMiriyala on Feb 7, 2023 I did
wget https://github.com/Looong01/pyg-rocm-build/releases/download/1/torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
unzip torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip
pip3 install *.whl
Installation is successful. I'm facing the above error when I run an example gcn code.
@Looong01 Looong01 on Feb 7, 2023 Author
I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error
OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/conda/lib/python3.8/site-packages/torch_scatter/_version_cuda.so)
You can make an issue here. https://github.com/Looong01/pyg-rocm-build/issues
@Looong01 Looong01 on Feb 7, 2023 Author
I did
wget https://github.com/Looong01/pyg-rocm-build/releases/download/1/torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip unzip torch-1.13-rocm-5.4.2-py38-linux_x86_64.zip pip3 install *.whl Installation is successful. I'm facing the above error when I run an example gcn code.
I think the libc version in your os is too old.
Solution:
sudo strings /lib/x86_64-linux-gnu/libc.so.6 |grep GLIBC, make sure there are no strings include GLIBC_2.32
If 1 is true, download th newest or required version of glibc (http://ftp.gnu.org/gnu/glibc/) Take glibc-2.37 as an example.
tar xvf glibc-2.37.tar.gz
cd glibc-2.37
mkdir build
cd ./build
../configure --prefix=<the path you want to install>
make -j<the number of your CPU cores> #if your cpu has 8 cores, then "make -j8"
sudo make install
sudo rm -rf /lib/x86_64-linux-gnu/libc.so.6
sudo ln -s <the path you installed glibc>/lib/libc-2.37.so /lib/x86_64-linux-gnu/libc.so.6
@PavanKumarMiriyala PavanKumarMiriyala on Feb 7, 2023 Yes, it is due to old libc version in my OS. I resolved that issue. Thank you so much.
@Looong01 unfortunately, I do not have root access and do not have the privileges to upgrade the OS on this cluster. Can you suggest any alternatives?
Also have the same issue and can't change the version of glibc on cluster. Did anyone try another release version to fix the issue?
@Looong01 unfortunately, I do not have root access and do not have the privileges to upgrade the OS on this cluster. Can you suggest any alternatives?
Also have the same issue and can't change the version of glibc on cluster. Did anyone try another release version to fix the issue?
U can install glibc in anaconda's envs. Then python will use this, instead of the one of system(/lib/x86_64-linux-gnu/libc.so.6). So, u can manipulate it without root access.
@PavanKumarMiriyala PavanKumarMiriyala on Feb 7, 2023 I'm using ubuntu 20.04, ROCm 5.4.0, Python 3.8.13, torch 1.13.0. But I'm facing the below error