Skip to content

Commit

Permalink
[UR][CTS] Fix urKernelSetArgPointer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
callumfare committed Jun 26, 2023
1 parent 39b3546 commit 9ddb2d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/conformance/kernel/urKernelSetArgPointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ 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);
}
Expand All @@ -60,7 +60,7 @@ 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.
Expand All @@ -86,7 +86,7 @@ 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);
}
Expand Down

0 comments on commit 9ddb2d7

Please sign in to comment.