mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 13:16:32 -06:00
Adds the AMD/ROCm half: ROCm detection, separate from HIP. ROCm 10.0 ships HIP 7.15, and HIP's major version is 7 on both ROCm 7 and ROCm 10, so hip_VERSION cannot identify the platform. Detection probes rocm-core, then the legacy version file, then ROCm 10's core-<major>.<minor> directory. GPU architecture selection via amdgpu-arch / rocm_agent_enumerator, falling back to family-wide generic targets. A standalone HIP backend plugin (hal/accel/hip/), loaded on first use. No OpenCV module compiles HIP, and the main build does not depend on ROCm. Implemented kernels: flip, transpose, setTo, and convertTo.