kfdtest: use HSAuint64 instead of unsigned HSAint64
This should fix gtest compile errors. code like below has trouble, typedef char char8; typedef unsigned char uchar8; ASSERT_NE((uchar8)1, 0); ASSERT_NE((unsigned char8)1, 0); // compile error here or ASSERT_NE((unsigned char8)1, 0); ASSERT_NE((uchar8)1, 0); // compile error here HSA[u]int64 are alias. So ASSERT_XX((unsigned HSAint64)..) with ASSERT_XX((HSAuint64)..) fail to compile. Change-Id: I4c24bc699a69bd4f37c4bc8aaaa9f1a92a24a33e Signed-off-by: xinhui pan <xinhui.pan@amd.com>
This commit is contained in:
@@ -1084,7 +1084,7 @@ TEST_F(KFDQMTest, QueueLatency) {
|
||||
HSAuint64 *qts;
|
||||
int i = 0;
|
||||
|
||||
ASSERT_NE((unsigned HSAint64)queue_latency_arr, 0);
|
||||
ASSERT_NE((HSAuint64)queue_latency_arr, 0);
|
||||
|
||||
int defaultGPUNode = m_NodeInfo.HsaDefaultGPUNode();
|
||||
ASSERT_GE(defaultGPUNode, 0) << "failed to get default GPU Node";
|
||||
@@ -1110,7 +1110,7 @@ TEST_F(KFDQMTest, QueueLatency) {
|
||||
i = 0;
|
||||
do {
|
||||
queue.PlacePacket(PM4ReleaseMemoryPacket(true,
|
||||
(unsigned HSAint64)&qts[i],
|
||||
(HSAuint64)&qts[i],
|
||||
0,
|
||||
true,
|
||||
1));
|
||||
@@ -1137,7 +1137,7 @@ TEST_F(KFDQMTest, QueueLatency) {
|
||||
i = 0;
|
||||
do {
|
||||
queue.PlacePacket(PM4ReleaseMemoryPacket(true,
|
||||
(unsigned HSAint64)&qts[i],
|
||||
(HSAuint64)&qts[i],
|
||||
0,
|
||||
true,
|
||||
1));
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user