Skip to content

Commit 5840fa1

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)