SWDEV-375137 - Bypass defination of half and half2 alias for internal include of hip_fp16.h
Change-Id: I5258a487d4c2d93e889a523fde81f1b3906d9318
Этот коммит содержится в:
коммит произвёл
Maneesh Gupta
родитель
e5490697cc
Коммит
695533d435
@@ -24,7 +24,17 @@ THE SOFTWARE.
|
||||
#define HIP_INCLUDE_HIP_AMD_DETAIL_WARP_FUNCTIONS_H
|
||||
|
||||
#if !defined(__HIPCC_RTC__)
|
||||
#include "hip/hip_fp16.h"
|
||||
#if !defined(HIP_NO_HALF)
|
||||
#define HIP_NO_HALF
|
||||
#elif
|
||||
#define ALREADY_DEFINED
|
||||
#endif
|
||||
|
||||
#include "hip/hip_fp16.h"
|
||||
|
||||
#if !defined(ALREADY_DEFINED)
|
||||
#undef HIP_NO_HALF
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static constexpr int warpSize = __AMDGCN_WAVEFRONT_SIZE;
|
||||
|
||||
Ссылка в новой задаче
Block a user