diff --git a/projects/hip/include/hip/hcc_detail/channel_descriptor.h b/projects/hip/include/hip/hcc_detail/channel_descriptor.h index 5fb0faeee1..de290fafc1 100644 --- a/projects/hip/include/hip/hcc_detail/channel_descriptor.h +++ b/projects/hip/include/hip/hcc_detail/channel_descriptor.h @@ -92,6 +92,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned); } +#ifndef __GNUC__ // vector3 is the same as vector4 template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(unsigned char) * 8; @@ -103,6 +104,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(signed char) * 8; return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned); } +#endif template <> inline hipChannelFormatDesc hipCreateChannelDesc() { @@ -152,6 +154,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned); } +#ifndef __GNUC__ template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(unsigned short) * 8; @@ -163,6 +166,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(signed short) * 8; return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned); } +#endif template <> inline hipChannelFormatDesc hipCreateChannelDesc() { @@ -212,6 +216,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned); } +#ifndef __GNUC__ template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(unsigned int) * 8; @@ -223,6 +228,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(signed int) * 8; return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned); } +#endif template <> inline hipChannelFormatDesc hipCreateChannelDesc() { @@ -254,11 +260,13 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindFloat); } +#ifndef __GNUC__ template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(float) * 8; return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindFloat); } +#endif template <> inline hipChannelFormatDesc hipCreateChannelDesc() { @@ -302,6 +310,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned); } +#ifndef __GNUC__ template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(unsigned long) * 8; @@ -313,6 +322,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(signed long) * 8; return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned); } +#endif template <> inline hipChannelFormatDesc hipCreateChannelDesc() {