From 06213e3b4bfbfb453277b27ccb59e3fba0ff83b3 Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 22 May 2023 16:09:14 -0700 Subject: [PATCH] SWDEV-400515 - populate __HIP_NO_IMAGE_SUPPORT flag MI300 does not support image APIs. Apps to use __HIP_NO_IMAGE_SUPPORT instead of arch Change-Id: I91178bfd27ea7b7188e7a958a876c0264f4469aa [ROCm/clr commit: 16c6b365c253627ad4f37d572980d1751b50a4e7] --- .../clr/hipamd/include/hip/amd_detail/amd_device_functions.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/clr/hipamd/include/hip/amd_detail/amd_device_functions.h b/projects/clr/hipamd/include/hip/amd_detail/amd_device_functions.h index 1c7cf81610..829801a21a 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/amd_device_functions.h +++ b/projects/clr/hipamd/include/hip/amd_detail/amd_device_functions.h @@ -980,6 +980,11 @@ int __syncthreads_or(int predicate) #define XCC_ID_XCC_ID_OFFSET 0 #endif +#if (!defined(__HIP_NO_IMAGE_SUPPORT) && \ + (defined(__gfx940__) || defined(__gfx941__) || defined(__gfx942__))) + #define __HIP_NO_IMAGE_SUPPORT 1 +#endif + /* Encoding of parameter bitmask HW_ID 5:0 HW_ID