Skip to content

Commit 3cb61fe

Browse files
committed
[CTS] fix urEnqueueUSMFill call in enqueue test
use proper pattern size. Also, verify if allocated pointer is not NULL.
1 parent e3910da commit 3cb61fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/conformance/enqueue/urEnqueueKernelLaunchAndMemcpyInOrder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct urMultiQueueLaunchMemcpyTest : uur::urMultiDeviceContextTestTemplate<1>,
2727

2828
static constexpr char ProgramName[] = "increment";
2929
static constexpr size_t ArraySize = 100;
30-
static constexpr size_t InitialValue = 1;
30+
static constexpr uint32_t InitialValue = 1;
3131

3232
void SetUp() override {
3333
UUR_RETURN_ON_FATAL_FAILURE(
@@ -71,6 +71,7 @@ struct urMultiQueueLaunchMemcpyTest : uur::urMultiDeviceContextTestTemplate<1>,
7171
ASSERT_SUCCESS(
7272
urUSMSharedAlloc(context, devices[i], nullptr, nullptr,
7373
ArraySize * sizeof(uint32_t), &SharedMem[i]));
74+
ASSERT_NE(SharedMem[i], nullptr);
7475

7576
ASSERT_SUCCESS(urEnqueueUSMFill(queues[i], SharedMem[i],
7677
sizeof(uint32_t), &InitialValue,

0 commit comments

Comments
 (0)