diff --git a/hipamd/include/hip/amd_detail/amd_channel_descriptor.h b/hipamd/include/hip/amd_detail/amd_channel_descriptor.h index 65a49763ae..5532fec622 100644 --- a/hipamd/include/hip/amd_detail/amd_channel_descriptor.h +++ b/hipamd/include/hip/amd_detail/amd_channel_descriptor.h @@ -1,5 +1,5 @@ /* -Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2015 - 2022 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -61,7 +61,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(signed char) * 8; - return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned); + return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned); } template <> @@ -73,7 +73,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(unsigned char) * 8; - return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned); + return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned); } template <> @@ -85,7 +85,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(unsigned char) * 8; - return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned); + return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindUnsigned); } template <> @@ -98,7 +98,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(unsigned char) * 8; - return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned); + return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindUnsigned); } template <> @@ -111,7 +111,7 @@ inline hipChannelFormatDesc hipCreateChannelDesc() { template <> inline hipChannelFormatDesc hipCreateChannelDesc() { int e = (int)sizeof(unsigned char) * 8; - return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindSigned); + return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindUnsigned); } template <>