From 147f064d31eb90b4eae89702f284ee5fb15ce291 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Thu, 8 Oct 2020 09:05:13 -0400 Subject: [PATCH] Disable wave64 support on GFX10 for HIP Change-Id: Ie3d4fe91516167ea26ce704689b6b6f1951a7521 --- hipamd/include/hip/hip_runtime.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hipamd/include/hip/hip_runtime.h b/hipamd/include/hip/hip_runtime.h index 9af74e8d05..c785f8d00c 100644 --- a/hipamd/include/hip/hip_runtime.h +++ b/hipamd/include/hip/hip_runtime.h @@ -37,6 +37,10 @@ THE SOFTWARE. #ifndef HIP_INCLUDE_HIP_HIP_RUNTIME_H #define HIP_INCLUDE_HIP_HIP_RUNTIME_H +#if (__gfx1010__ || __gfx1011__ || __gfx1012__ || __gfx1030__ || __gfx1031__) && __AMDGCN_WAVEFRONT_SIZE == 64 +#error HIP is not supported on GFX10 with wavefront size 64 +#endif + // Some standard header files, these are included by hc.hpp and so want to make them avail on both // paths to provide a consistent include env and avoid "missing symbol" errors that only appears // on NVCC path: