You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using RENDER_SURFACE_STATE = typename FamilyType::RENDER_SURFACE_STATE;
227
+
ze_kernel_handle_t kernelHandle;
228
+
229
+
ze_kernel_desc_t kernelDesc = {};
230
+
kernelDesc.pKernelName = kernelName.c_str();
231
+
232
+
ze_result_t res = module->createKernel(&kernelDesc, &kernelHandle);
233
+
234
+
EXPECT_EQ(ZE_RESULT_SUCCESS, res);
235
+
236
+
auto kernelImp = reinterpret_cast<L0::KernelImp *>(L0::Kernel::fromHandle(kernelHandle));
237
+
auto allocSize = 16384u;
238
+
void *devicePtr = nullptr;
239
+
ze_device_mem_alloc_desc_t deviceDesc = {};
240
+
res = context->allocDeviceMem(device->toHandle(),
241
+
&deviceDesc,
242
+
allocSize,
243
+
0u,
244
+
&devicePtr);
245
+
ASSERT_EQ(ZE_RESULT_SUCCESS, res);
246
+
247
+
auto gpuAlloc = device->getDriverHandle()->getSvmAllocsManager()->getSVMAllocs()->get(devicePtr)->gpuAllocations.getGraphicsAllocation(device->getRootDeviceIndex());
0 commit comments