From 59c41c729091976b4df51dfaa2fa22af94d245b3 Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary Date: Tue, 9 Nov 2021 22:43:53 -0800 Subject: [PATCH] SWDEV-308889 - Add HIP_INCLUDE_HIP_HIP_RUNTIME_H define to stop including hip_runtime header in hiprtc code Change-Id: Ic8f05dcfe61195a500718122f5fbd178c9df6be8 [ROCm/clr commit: 546d6c18bf87e382d660f6c9452033a35d91a834] --- projects/clr/hipamd/src/cmake/HIPRTC.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/cmake/HIPRTC.cmake b/projects/clr/hipamd/src/cmake/HIPRTC.cmake index 111b426074..af5c8c1a2e 100644 --- a/projects/clr/hipamd/src/cmake/HIPRTC.cmake +++ b/projects/clr/hipamd/src/cmake/HIPRTC.cmake @@ -41,7 +41,8 @@ function(get_hiprtc_macros HIPRTC_DEFINES) amdgpu_waves_per_eu(minBlocksPerMultiprocessor)))\n\ #define select_impl_(_1, _2, impl_, ...) impl_\n\ #define __launch_bounds__(...) \\\n\ - select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__)" + select_impl_(__VA_ARGS__, launch_bounds_impl1, launch_bounds_impl0)(__VA_ARGS__) \n\ +#define HIP_INCLUDE_HIP_HIP_RUNTIME_H" PARENT_SCOPE) endfunction(get_hiprtc_macros)