From b96ff76989fdd513c39da68d1e3811d02ec934fa Mon Sep 17 00:00:00 2001 From: haoyuan2 Date: Thu, 21 Jul 2022 17:16:08 -0700 Subject: [PATCH] SWDEV-342896 - fix incorrect format setting Change-Id: I1fa72eefa3b550d41db6a4cc0812771fb0035bdc --- .../include/hip/amd_detail/amd_channel_descriptor.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 <>