Problem
Meshroom currently only supports NVIDIA GPUs via CUDA, which excludes users with AMD graphics cards. While AMD GPUs offer excellent performance-to-price ratios and Open Source alternatives like ROCm (Radeon Open Compute), there is no official support.
Current Status
- Meshroom is built on AliceVision, which uses CUDA exclusively
- Community workarounds like ZLUDA exist but are unmaintained and incompatible with recent versions
- MeshroomCL exists as an OpenCL alternative but is not officially supported
- The core team has indicated that porting from CUDA would require significant rework [1]
Request
Add official support for AMD GPUs through ROCm/HIP (Heterogeneous-Compute Interface for Portability). HIP allows code porting from CUDA to AMD GPUs with minimal changes, making it a practical solution.
Benefits
- Broader user base - Support AMD users who prefer open-source solutions or have budget constraints
- Hardware diversity - Reduce dependency on NVIDIA hardware
- Future-proofing - ROCm is actively developed by AMD
- Performance - Modern AMD GPUs (RX 7000 series, MI series) offer competitive performance
Technical Approach
- Use AMD's HIP toolkit to port CUDA kernels
- HIP provides source-to-source translation tools (hipify) for CUDA code
- This would be less invasive than a full OpenCL rewrite
- Could potentially maintain compatibility with CUDA builds
Reference Implementation
Similar projects have successfully ported CUDA applications to HIP:
Additional Context
From the Meshroom community:
"I don't understand why Meshroom chooses to be open source, but use a closed/proprietary technology like CUDA"
"There are many of us in the world with AMD cards who want to use Meshroom"
Suggested Next Steps
- Assess feasibility of HIP port for AliceVision core
- Create proof-of-concept for key CUDA kernels
- Document technical requirements and estimated effort
- Consider community collaboration for development
Related Issues
This feature would significantly expand Meshroom's accessibility and align better with its open-source philosophy.
Problem
Meshroom currently only supports NVIDIA GPUs via CUDA, which excludes users with AMD graphics cards. While AMD GPUs offer excellent performance-to-price ratios and Open Source alternatives like ROCm (Radeon Open Compute), there is no official support.
Current Status
Request
Add official support for AMD GPUs through ROCm/HIP (Heterogeneous-Compute Interface for Portability). HIP allows code porting from CUDA to AMD GPUs with minimal changes, making it a practical solution.
Benefits
Technical Approach
Reference Implementation
Similar projects have successfully ported CUDA applications to HIP:
Additional Context
From the Meshroom community:
Suggested Next Steps
Related Issues
This feature would significantly expand Meshroom's accessibility and align better with its open-source philosophy.