Open
Description
Commit 4b0824d breaks compilation for my 3090Ti. I'm building in Docker using nvidia/cuda:12.8.1-cudnn-devel-ubuntu24.04
as the base. The commands are:
ENV TORCH_CUDA_ARCH_LIST=8.6
RUN --mount=type=cache,target=/home/sd/.cache . /venv/bin/activate && python -m pip install --no-build-isolation git+https://github.com/thu-ml/SageAttention.git@4b0824de43a76027cd615b39d3b4baa724addb7a
which results in the following error:
0.363 Collecting git+https://github.com/thu-ml/SageAttention.git@4b0824de43a76027cd615b39d3b4baa724addb7a
0.363 Cloning https://github.com/thu-ml/SageAttention.git (to revision 4b0824de43a76027cd615b39d3b4baa724addb7a) to /tmp/pip-req-build-zemg44h2
0.364 Running command git clone --filter=blob:none --quiet https://github.com/thu-ml/SageAttention.git /tmp/pip-req-build-zemg44h2
10.17 Running command git rev-parse -q --verify 'sha^4b0824de43a76027cd615b39d3b4baa724addb7a'
10.17 Running command git fetch -q https://github.com/thu-ml/SageAttention.git 4b0824de43a76027cd615b39d3b4baa724addb7a
10.78 Running command git checkout -q 4b0824de43a76027cd615b39d3b4baa724addb7a
11.64 Resolved https://github.com/thu-ml/SageAttention.git to commit 4b0824de43a76027cd615b39d3b4baa724addb7a
11.64 Preparing metadata (pyproject.toml): started
12.75 Preparing metadata (pyproject.toml): finished with status 'error'
12.75 error: subprocess-exited-with-error
12.75
12.75 × Preparing metadata (pyproject.toml) did not run successfully.
12.75 │ exit code: 1
12.75 ╰─> [18 lines of output]
12.75 No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
12.75 Traceback (most recent call last):
12.75 File "/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
12.75 main()
12.75 File "/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
12.75 json_out['return_val'] = hook(**hook_input['kwargs'])
12.75 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12.75 File "/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
12.75 return hook(metadata_directory, config_settings)
12.75 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12.75 File "/venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
12.75 self.run_setup()
12.75 File "/venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup
12.75 super().run_setup(setup_script=setup_script)
12.75 File "/venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
12.75 exec(code, locals())
12.75 File "<string>", line 81, in <module>
12.75 RuntimeError: No GPUs found. Please specify the target GPU architectures or build on a machine with GPUs.
12.75 [end of output]
12.75
12.75 note: This error originates from a subprocess, and is likely not a problem with pip.
12.75 error: metadata-generation-failed
12.75
12.75 × Encountered error while generating package metadata.
12.75 ╰─> See above for output.
12.75
12.75 note: This is an issue with the package mentioned above, not pip.
12.75 hint: See above for details.
Using the parent commit 2aecfa8 succeeds. Without ENV TORCH_CUDA_ARCH_LIST=8.6
even 2aecfa8 fails with the same error about GPUs not being found. So I can only build sage attention with it.
Torch version doesn't seem to matter, I remember getting it with 2.6.0 and now I use nightly 2.8.0, the behavior is the same.
Metadata
Metadata
Assignees
Labels
No labels