Fix GWS test function call parameter issue

Change-Id: I3f4fde9ec8268362cffecb2d95177913b583486f
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
This commit is contained in:
Oak Zeng
2020-01-05 15:43:38 -06:00
committed by Kent Russell
parent 06464b917d
commit 38b429fd52
+2 -4
View File
@@ -107,8 +107,7 @@ TEST_F(KFDGWSTest, Allocate) {
}
ASSERT_SUCCESS(queue.Create(defaultGPUNode));
ASSERT_SUCCESS(hsaKmtAllocQueueGWS(defaultGPUNode,
queue.GetResource()->QueueId,
ASSERT_SUCCESS(hsaKmtAllocQueueGWS(queue.GetResource()->QueueId,
pNodeProperties->NumGws,&firstGWS));
EXPECT_EQ(0, firstGWS);
EXPECT_SUCCESS(queue.Destroy());
@@ -134,8 +133,7 @@ TEST_F(KFDGWSTest, Semaphore) {
HsaMemoryBuffer isaBuffer(PAGE_SIZE, defaultGPUNode, true/*zero*/, false/*local*/, true/*exec*/);
HsaMemoryBuffer buffer(PAGE_SIZE, defaultGPUNode, true, false, false);
ASSERT_SUCCESS(queue.Create(defaultGPUNode));
ASSERT_SUCCESS(hsaKmtAllocQueueGWS(defaultGPUNode,
queue.GetResource()->QueueId,
ASSERT_SUCCESS(hsaKmtAllocQueueGWS(queue.GetResource()->QueueId,
pNodeProperties->NumGws,&firstGWS));
EXPECT_EQ(0, firstGWS);