Commit 71d03e5
[ROCm] Add hip_kernel stub to no_rocm.cpp to fix undefined symbol
When MLX_BUILD_ROCM=OFF, the Python binding unconditionally references
mlx::core::fast::hip_kernel but no_rocm.cpp only stubbed
rocm::is_available(). Add a throwing stub matching the pattern used by
no_metal.cpp and no_cuda.cpp.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a866ff4 commit 71d03e5
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments