From bf6b451ae36ca21f6dbd9f6b0f4074636718ebae Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Mon, 26 Apr 2021 08:48:05 -0400 Subject: [PATCH] SWDEV-255234 - remove workaround for warpSize after clang fix is released The workaround is no longer needed as the compiler emits the macro itself. Change-Id: I6a06e73353628bcea71f6bd23503ab6d8e42a29d --- include/hip/amd_detail/device_functions.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/hip/amd_detail/device_functions.h b/include/hip/amd_detail/device_functions.h index 40b06df812..0c4c79c538 100644 --- a/include/hip/amd_detail/device_functions.h +++ b/include/hip/amd_detail/device_functions.h @@ -291,16 +291,6 @@ __device__ static inline int __hip_move_dpp_N(int src) { bound_ctrl); } -// FIXME: Remove the following workaround once the clang change is released. -// This is for backward compatibility with older clang which does not define -// __AMDGCN_WAVEFRONT_SIZE. It does not consider -mwavefrontsize64. -#ifndef __AMDGCN_WAVEFRONT_SIZE -#if __gfx1010__ || __gfx1011__ || __gfx1012__ || __gfx1030__ || __gfx1031__ -#define __AMDGCN_WAVEFRONT_SIZE 32 -#else -#define __AMDGCN_WAVEFRONT_SIZE 64 -#endif -#endif static constexpr int warpSize = __AMDGCN_WAVEFRONT_SIZE; __device__