diff --git a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_bfloat16.h b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_bfloat16.h index 12f51e8023..b1d699c004 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/amd_hip_bfloat16.h +++ b/projects/clr/hipamd/include/hip/amd_detail/amd_hip_bfloat16.h @@ -153,6 +153,8 @@ static_assert(__hip_internal::is_trivial{}, "hip_bfloat16 is not a trivial type, and thus is " "incompatible with C."); #if !defined(__HIPCC_RTC__) +#include + static_assert(sizeof(hip_bfloat16) == sizeof(hip_bfloat16_public) && offsetof(hip_bfloat16, data) == offsetof(hip_bfloat16_public, data), "internal hip_bfloat16 does not match public hip_bfloat16");