Save device into tracing handle

Change-Id: I40d1883e87b2f98df1d0ba03067e92bc070d82e8
Signed-off-by: Anton V Gorshkov <anton.v.gorshkov@intel.com>
This commit is contained in:
Anton V Gorshkov
2019-08-08 13:41:58 +03:00
committed by sys_ocldev
parent f9938d43a4
commit 6117548cd2

View File

@@ -79,6 +79,7 @@ cl_int CL_API_CALL clCreateTracingHandleINTEL(cl_device_id device, cl_tracing_ca
return CL_OUT_OF_HOST_MEMORY;
}
(*handle)->device = device;
(*handle)->handle = new TracingHandle(callback, userData);
if ((*handle)->handle == nullptr) {
delete *handle;