@@ -66,7 +66,8 @@ TEST_F(CudaTestMemObj, piMemBufferCreateSimple) {
6666 const size_t memSize = 1024u ;
6767 pi_mem memObj;
6868 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 )),
7071 PI_SUCCESS);
7172
7273 ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemRelease>(memObj)),
@@ -78,7 +79,7 @@ TEST_F(CudaTestMemObj, piMemBufferAllocHost) {
7879 pi_mem memObj;
7980 ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemBufferCreate>(
8081 context_, PI_MEM_FLAGS_ACCESS_RW | PI_MEM_FLAGS_HOST_PTR_ALLOC,
81- memSize, nullptr , &memObj)),
82+ memSize, nullptr , &memObj, nullptr )),
8283 PI_SUCCESS);
8384
8485 ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemRelease>(memObj)),
@@ -106,7 +107,8 @@ TEST_F(CudaTestMemObj, piMemBufferCreateNoActiveContext) {
106107 // to allocate the memory object
107108 pi_mem memObj;
108109 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 )),
110112 PI_SUCCESS);
111113 ASSERT_NE (memObj, nullptr );
112114
@@ -128,7 +130,7 @@ TEST_F(CudaTestMemObj, piMemBufferPinnedMappedRead) {
128130 pi_mem memObj;
129131 ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemBufferCreate>(
130132 context_, PI_MEM_FLAGS_ACCESS_RW | PI_MEM_FLAGS_HOST_PTR_ALLOC,
131- memSize, nullptr , &memObj)),
133+ memSize, nullptr , &memObj, nullptr )),
132134 PI_SUCCESS);
133135
134136 ASSERT_EQ (
@@ -167,7 +169,7 @@ TEST_F(CudaTestMemObj, piMemBufferPinnedMappedWrite) {
167169 pi_mem memObj;
168170 ASSERT_EQ ((plugin.call_nocheck <detail::PiApiKind::piMemBufferCreate>(
169171 context_, PI_MEM_FLAGS_ACCESS_RW | PI_MEM_FLAGS_HOST_PTR_ALLOC,
170- memSize, nullptr , &memObj)),
172+ memSize, nullptr , &memObj, nullptr )),
171173 PI_SUCCESS);
172174
173175 int *host_ptr = nullptr ;
0 commit comments