Commit a866ff4
committed
[ROCm] Guard placement new/delete to fix build on ROCm 7.12+
ROCm 7.12 (clang 22) provides __device__ placement new/delete
via cuda_wrappers/new, causing redefinition errors. Guard with
__CLANG_CUDA_WRAPPERS_NEW so the manual definitions are only
compiled on older ROCm versions that lack them.1 parent ed8c2aa commit a866ff4
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments