Is there any GCC dependancy for this wheel?

#6
by jinksa77 - opened

I got an error massage when I run sampler with sage attention compiled by the wheel.

File "/content/ComfyUI/custom_nodes/ComfyUI_KJNodes/nodes/model_optimization_nodes.py", line 32, in _patch_modules
from sageattention import sageattn
File "/usr/local/lib/python3.12/dist-packages/sageattention/init.py", line 1, in
from .core import sageattn, sageattn_varlen
File "/usr/local/lib/python3.12/dist-packages/sageattention/core.py", line 47, in
from .quant import per_block_int8 as per_block_int8_cuda
File "/usr/local/lib/python3.12/dist-packages/sageattention/quant.py", line 20, in
from . import _fused
ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /usr/local/lib/python3.12/dist-packages/sageattention/_fused.cpython-312-x86_64-linux-gnu.so)

I could not find that sage attention 2.2 has gcc g++ requirement. My gcc version is 11 and it seem that GLIBCXX_3.4.32 requires at least 13.2. Do I need to install gcc-13.2? How can I solve this problem?

Owner

Honestly it's too long ago I compiled this that I can't remember, but I think it was 13. Also sageattention has updated since and you should be able to install it with just pip install sageattention==2.2.0 --no-build-isolation, assuming you have needed compile setup.

Sign up or log in to comment