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

Change-Id: Ifeee7f3ad1be9ce9b79cf26008b75102153143a5
Этот коммит содержится в:
Maneesh Gupta
2021-06-17 21:21:19 -07:00
родитель 4f0bf535c4
Коммит a9b4df0ad0
+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__