From 95a5fb4033285b5fe1b9f09fc0304c4192048881 Mon Sep 17 00:00:00 2001 From: Callum Fare Date: Mon, 26 Jun 2023 11:46:19 +0100 Subject: [PATCH] [UR][CTS] Fix urKernelSetArgPointer tests --- test/conformance/kernel/urKernelSetArgPointer.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/conformance/kernel/urKernelSetArgPointer.cpp b/test/conformance/kernel/urKernelSetArgPointer.cpp index dfe1085990..4cb4cb2c8f 100644 --- a/test/conformance/kernel/urKernelSetArgPointer.cpp +++ b/test/conformance/kernel/urKernelSetArgPointer.cpp @@ -43,7 +43,8 @@ TEST_P(urKernelSetArgPointerTest, SuccessHost) { ASSERT_NE(allocation, nullptr); ASSERT_SUCCESS(urKernelSetArgPointer(kernel, 0, nullptr, &allocation)); - ASSERT_SUCCESS(urKernelSetArgValue(kernel, 1, sizeof(data), &data)); + ASSERT_SUCCESS( + urKernelSetArgValue(kernel, 1, sizeof(data), nullptr, &data)); Launch1DRange(array_size); ValidateAllocation(allocation); } @@ -60,7 +61,8 @@ TEST_P(urKernelSetArgPointerTest, SuccessDevice) { ASSERT_NE(allocation, nullptr); ASSERT_SUCCESS(urKernelSetArgPointer(kernel, 0, nullptr, &allocation)); - ASSERT_SUCCESS(urKernelSetArgValue(kernel, 1, sizeof(data), &data)); + ASSERT_SUCCESS( + urKernelSetArgValue(kernel, 1, sizeof(data), nullptr, &data)); Launch1DRange(array_size); // Copy the device allocation to a host one so we can validate the results. @@ -86,7 +88,8 @@ TEST_P(urKernelSetArgPointerTest, SuccessShared) { ASSERT_NE(allocation, nullptr); ASSERT_SUCCESS(urKernelSetArgPointer(kernel, 0, nullptr, &allocation)); - ASSERT_SUCCESS(urKernelSetArgValue(kernel, 1, sizeof(data), &data)); + ASSERT_SUCCESS( + urKernelSetArgValue(kernel, 1, sizeof(data), nullptr, &data)); Launch1DRange(array_size); ValidateAllocation(allocation); }