SWDEV-375137 - Bypass defination of half and half2 alias for internal include of hip_fp16.h
Change-Id: I5258a487d4c2d93e889a523fde81f1b3906d9318
[ROCm/clr commit: 695533d435]
This commit is contained in:
committed by
Maneesh Gupta
parent
078f931d73
commit
149afa9444
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user