mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Revert "refactor: Unify GTPin initialization logic between APIs"
This reverts commit 68a5108e05.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
68a5108e05
commit
65df34bbc7
@@ -297,7 +297,6 @@ cl_int CL_API_CALL clGetDeviceIDs(cl_platform_id platform,
|
||||
/* If no suitable device, set a error. */
|
||||
if (retNum == 0)
|
||||
retVal = CL_DEVICE_NOT_FOUND;
|
||||
|
||||
} while (false);
|
||||
TRACING_EXIT(ClGetDeviceIDs, &retVal);
|
||||
return retVal;
|
||||
@@ -439,13 +438,6 @@ cl_context CL_API_CALL clCreateContext(const cl_context_properties *properties,
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* At this point we can safely notify GTPin to allow initialization */
|
||||
EnvironmentVariableReader envReader;
|
||||
if (envReader.getSetting("ZET_ENABLE_PROGRAM_INSTRUMENTATION", false)) {
|
||||
if (false == pPlatform->notifyGtpinInit()) {
|
||||
retVal = CL_INVALID_OPERATION;
|
||||
}
|
||||
}
|
||||
if (CL_SUCCESS != retVal) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user