-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Description
Checklist
- The issue has not been resolved by following the troubleshooting guide
- The issue exists on a clean installation of Fooocus
- The issue exists in the current version of Fooocus
- The issue has not been reported before recently
- The issue has been reported before but has not been fixed yet
What happened?
I recently purchased an NVIDIA GeForce RTX 5090. Since this GPU requires CUDA 12.8+, I’ve installed CUDA 12.8 manually and set up my environment with the latest PyTorch nightly build (2.8.0+cu128).
However, when attempting to build mmcv from source (since there are no official wheels for this configuration yet), the compilation consistently fails—specifically at the CUDA extension stage. Has anyone successfully compiled mmcv with 5090? I
Enviroment:
GPU: NVIDIA GeForce RTX 5090
CUDA: 12.8 (installed manually via .run file)
PyTorch: 2.8.0.dev20250410+cu128 (nightly build)
Python: 3.12(also tried 3.10)
GCC: 11.4
OS: Ubuntu 25.04 (Plucky)
Steps to reproduce the problem
What I did:
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
git checkout v2.1.0
pip install -r requirements/build.txt
MMCV_WITH_OPS=1 pip install -v -e .
What should have happened?
.
What browsers do you use to access Fooocus?
No response
Where are you running Fooocus?
None
What operating system are you using?
ubuntu25.04
Console logs
...
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2556, in _run_ninja_build
subprocess.run(
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/subprocess.py", line 573, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '4']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/yang/mmcv/setup.py", line 521, in <module>
setup(
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
self.run_command(cmd)
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/command/develop.py", line 35, in run
self.install_for_development()
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/command/develop.py", line 112, in install_for_development
self.run_command('build_ext')
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
self.distribution.run_command(command)
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 99, in run
_build_ext.run(self)
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 365, in run
self.build_extensions()
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 1052, in build_extensions
build_ext.build_extensions(self)
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 481, in build_extensions
self._build_extensions_serial()
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 507, in _build_extensions_serial
self.build_extension(ext)
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 264, in build_extension
_build_ext.build_extension(self, ext)
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 562, in build_extension
objects = self.compiler.compile(
^^^^^^^^^^^^^^^^^^^^^^
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 836, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2209, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/yang/anaconda3/envs/univ2xCUDA128_py312/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2573, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Additional information
Is mmcv currently compatible with CUDA 12.8 / PyTorch 2.8?
Has anyone successfully compiled mmcv with 5090? I'd greatly appreciate hearing about any working configurations or suggestions.
Thanks in advance for your help and for maintaining this excellent library!