mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Save device into tracing handle
Change-Id: I40d1883e87b2f98df1d0ba03067e92bc070d82e8 Signed-off-by: Anton V Gorshkov <anton.v.gorshkov@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
f9938d43a4
commit
6117548cd2
@@ -79,6 +79,7 @@ cl_int CL_API_CALL clCreateTracingHandleINTEL(cl_device_id device, cl_tracing_ca
|
|||||||
return CL_OUT_OF_HOST_MEMORY;
|
return CL_OUT_OF_HOST_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(*handle)->device = device;
|
||||||
(*handle)->handle = new TracingHandle(callback, userData);
|
(*handle)->handle = new TracingHandle(callback, userData);
|
||||||
if ((*handle)->handle == nullptr) {
|
if ((*handle)->handle == nullptr) {
|
||||||
delete *handle;
|
delete *handle;
|
||||||
|
|||||||
Reference in New Issue
Block a user