SWDEV-285388 - Allow fallback to asm when builtin not available

Change-Id: Ifeee7f3ad1be9ce9b79cf26008b75102153143a5
이 커밋은 다음에 포함됨:
Maneesh Gupta가 2021-06-17 21:21:19 -07:00를 커밋했습니다
1 부모 4f0bf535c4
커밋 a9b4df0ad0
1 파일이 변경됨
+6
+6
파일 보기
@@ -30,11 +30,17 @@ THE SOFTWARE.
#include "hip/amd_detail/host_defines.h"
#if __has_builtin(__builtin_amdgcn_groupstaticsize)
__device__
inline
unsigned __llvm_amdgcn_groupstaticsize() {
return __builtin_amdgcn_groupstaticsize();
}
#else
// FIXME: This should be removed once the above builtin is available.
__device__
unsigned __llvm_amdgcn_groupstaticsize() __asm("llvm.amdgcn.groupstaticsize");
#endif
template<typename __T>
__device__