From 178b3faa708718d8de224bfb3b19d37854c7ef5b Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Tue, 11 Jul 2023 13:25:08 -0700 Subject: [PATCH] SWDEV-396657 - Using abort() instead of trap instruction to fix a compilation error Change-Id: Ia6a3f58ca5891c5700dd7853e088c51fef1a1e09 [ROCm/clr commit: c46adc9b5644fd2b636f5f2810fb791fa8258a74] --- .../hipamd/include/hip/amd_detail/amd_hip_cooperative_groups.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_cooperative_groups.h b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_cooperative_groups.h index 2661893a59..0c3d9fdf9f 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_cooperative_groups.h +++ b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_cooperative_groups.h @@ -47,7 +47,7 @@ THE SOFTWARE. #endif #define __hip_abort() \ - { asm("trap;"); } + { abort(); } #if defined(NDEBUG) #define __hip_assert(COND) #else