@@ -66,7 +66,8 @@ TEST_F(CudaTestMemObj, piMemBufferCreateSimple) {
66
66
const size_t memSize = 1024u ;
67
67
pi_mem memObj;
68
68
ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemBufferCreate>(
69
- context_, PI_MEM_FLAGS_ACCESS_RW, memSize, nullptr , &memObj)),
69
+ context_, PI_MEM_FLAGS_ACCESS_RW, memSize, nullptr , &memObj,
70
+ nullptr )),
70
71
PI_SUCCESS);
71
72
72
73
ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemRelease>(memObj)),
@@ -78,7 +79,7 @@ TEST_F(CudaTestMemObj, piMemBufferAllocHost) {
78
79
pi_mem memObj;
79
80
ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemBufferCreate>(
80
81
context_, PI_MEM_FLAGS_ACCESS_RW | PI_MEM_FLAGS_HOST_PTR_ALLOC,
81
- memSize, nullptr , &memObj)),
82
+ memSize, nullptr , &memObj, nullptr )),
82
83
PI_SUCCESS);
83
84
84
85
ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemRelease>(memObj)),
@@ -106,7 +107,8 @@ TEST_F(CudaTestMemObj, piMemBufferCreateNoActiveContext) {
106
107
// to allocate the memory object
107
108
pi_mem memObj;
108
109
ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemBufferCreate>(
109
- context_, PI_MEM_FLAGS_ACCESS_RW, memSize, nullptr , &memObj)),
110
+ context_, PI_MEM_FLAGS_ACCESS_RW, memSize, nullptr , &memObj,
111
+ nullptr )),
110
112
PI_SUCCESS);
111
113
ASSERT_NE (memObj, nullptr );
112
114
@@ -128,7 +130,7 @@ TEST_F(CudaTestMemObj, piMemBufferPinnedMappedRead) {
128
130
pi_mem memObj;
129
131
ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemBufferCreate>(
130
132
context_, PI_MEM_FLAGS_ACCESS_RW | PI_MEM_FLAGS_HOST_PTR_ALLOC,
131
- memSize, nullptr , &memObj)),
133
+ memSize, nullptr , &memObj, nullptr )),
132
134
PI_SUCCESS);
133
135
134
136
ASSERT_EQ (
@@ -167,7 +169,7 @@ TEST_F(CudaTestMemObj, piMemBufferPinnedMappedWrite) {
167
169
pi_mem memObj;
168
170
ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemBufferCreate>(
169
171
context_, PI_MEM_FLAGS_ACCESS_RW | PI_MEM_FLAGS_HOST_PTR_ALLOC,
170
- memSize, nullptr , &memObj)),
172
+ memSize, nullptr , &memObj, nullptr )),
171
173
PI_SUCCESS);
172
174
173
175
int *host_ptr = nullptr ;
0 commit comments