shader-slang / slang-torch

A Python package for calling Slang modules from PyTorch.
Other
38 stars 8 forks source link

version `GLIBCXX_3.4.32' not found #7

Closed grgkopanas closed 5 months ago

grgkopanas commented 6 months ago

Hello,

I am trying to run the example here:

and I get the following error message: ImportError: /usr/local/home/[uname]/miniconda3/envs/slang_torch/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/local/home/[uname]/work/example_slang/.slangtorch_cache/square/44136fa355b3678a/0/_slangtorch_square_44136fa355b3678a.so)

Here is my conda environment:

#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main
_openmp_mutex             5.1                       1_gnu
bzip2                     1.0.8                h5eee18b_6
ca-certificates           2024.3.11            h06a4308_0
expat                     2.6.2                h6a678d5_0
filelock                  3.14.0                   pypi_0    pypi
fsspec                    2024.5.0                 pypi_0    pypi
hatchling                 1.24.2                   pypi_0    pypi
jinja2                    3.1.4                    pypi_0    pypi
ld_impl_linux-64          2.38                 h1181459_1
libffi                    3.4.4                h6a678d5_1
libgcc-ng                 11.2.0               h1234567_1
libgomp                   11.2.0               h1234567_1
libstdcxx-ng              11.2.0               h1234567_1
libuuid                   1.41.5               h5eee18b_0
markupsafe                2.1.5                    pypi_0    pypi
mpmath                    1.3.0                    pypi_0    pypi
ncurses                   6.4                  h6a678d5_0
networkx                  3.3                      pypi_0    pypi
ninja                     1.11.1.1                 pypi_0    pypi
numpy                     1.26.4                   pypi_0    pypi
nvidia-cublas-cu12        12.1.3.1                 pypi_0    pypi
nvidia-cuda-cupti-cu12    12.1.105                 pypi_0    pypi
nvidia-cuda-nvrtc-cu12    12.1.105                 pypi_0    pypi
nvidia-cuda-runtime-cu12  12.1.105                 pypi_0    pypi
nvidia-cudnn-cu12         8.9.2.26                 pypi_0    pypi
nvidia-cufft-cu12         11.0.2.54                pypi_0    pypi
nvidia-curand-cu12        10.3.2.106               pypi_0    pypi
nvidia-cusolver-cu12      11.4.5.107               pypi_0    pypi
nvidia-cusparse-cu12      12.1.0.106               pypi_0    pypi
nvidia-nccl-cu12          2.20.5                   pypi_0    pypi
nvidia-nvjitlink-cu12     12.4.127                 pypi_0    pypi
nvidia-nvtx-cu12          12.1.105                 pypi_0    pypi
openssl                   3.0.13               h7f8727e_1
packaging                 24.0                     pypi_0    pypi
pathspec                  0.12.1                   pypi_0    pypi
pillow                    10.3.0                   pypi_0    pypi
pip                       24.0            py312h06a4308_0
pluggy                    1.5.0                    pypi_0    pypi
python                    3.12.3               h996f2a0_1
readline                  8.2                  h5eee18b_0
setuptools                69.5.1          py312h06a4308_0
slangtorch                1.2.0                    pypi_0    pypi
sqlite                    3.45.3               h5eee18b_0
sympy                     1.12                     pypi_0    pypi
tk                        8.6.14               h39e8969_0
torch                     2.3.0                    pypi_0    pypi
torchaudio                2.3.0                    pypi_0    pypi
torchvision               0.18.0                   pypi_0    pypi
trove-classifiers         2024.5.17                pypi_0    pypi
typing-extensions         4.11.0                   pypi_0    pypi
tzdata                    2024a                h04d1e81_0
wheel                     0.43.0          py312h06a4308_0
xz                        5.4.6                h5eee18b_1
zlib                      1.2.13               h5eee18b_1

my gcc version

gcc (Debian 13.2.0-10) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and my cuda-toolkit:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Thu_Mar_28_02:18:24_PDT_2024
Cuda compilation tools, release 12.4, V12.4.131
Build cuda_12.4.r12.4/compiler.34097967_0

Seems to me that the libstdc++.so.6 that comes with torchslang is doesn't have 3.4.32 but that is a bit wierd because if I do: ldd --version I get:

ldd (Debian GLIBC 2.37-18+gl0) 2.37
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Which is not 3.4.32

grgkopanas commented 5 months ago

I solved it using:

conda install -c conda-forge libstdcxx-ng