SWDEV-542218 - Remove attribute(aligned) from ext_vector_type as it i… (#802)
SWDEV-542218 - Remove attribute(aligned) from ext_vector_type as it is iignored
This commit is contained in:
کامیت شده توسط
GitHub
والد
9b045922a8
کامیت
4646a756d9
@@ -39,8 +39,7 @@ THE SOFTWARE.
|
||||
#if defined(__has_attribute)
|
||||
#if __has_attribute(ext_vector_type)
|
||||
#define __HIP_USE_NATIVE_VECTOR__ 1
|
||||
#define __NATIVE_VECTOR__(n, T) \
|
||||
T __attribute__((ext_vector_type(n))) __attribute__((aligned(__hip_vec_align_v<T, n>())))
|
||||
#define __NATIVE_VECTOR__(n, T) T __attribute__((ext_vector_type(n)))
|
||||
#else
|
||||
#define __NATIVE_VECTOR__(n, T) alignas(__hip_vec_align_v<T, n>()) T[n]
|
||||
#endif
|
||||
|
||||
مرجع در شماره جدید
Block a user