Skip to content

Commit b8fee18

Browse files
authored
Guard HIP macro against redefinition (#21061)
This is necessary for IREE to be built against the tracy with rocprof fork. The rocprof cmake module defines this macro; causing a redefinition error in IREE. Signed-off-by: Eric Eaton <[email protected]>
1 parent eadbf5e commit b8fee18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/src/iree/hal/drivers/hip/hip_headers.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
#error "32-bit not supported on HIP backend"
1212
#endif // defined(IREE_PTR_SIZE_32)
1313

14+
#if !defined(__HIP_PLATFORM_AMD__)
1415
#define __HIP_PLATFORM_AMD__
16+
#endif
17+
1518
// Order matters here--hip_deprecated.h depends on hip_runtime_api.h. So turn
1619
// off clang-format.
1720
//

0 commit comments

Comments
 (0)