mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 14:33:04 +08:00
Sending Metric Tracer activity flag to Metrics Library.
Needed to make Metrics Library aware of Metric Tracer presence. Change-Id: I3e3108e6b303adfcf5ab56ccadc2a8acc58f7ff5
This commit is contained in:
committed by
sys_ocldev
parent
d5875b05e1
commit
79c14983cb
@@ -202,7 +202,7 @@ bool MetricsLibrary::createContext() {
|
||||
const auto &hwHelper = device.getHwHelper();
|
||||
const auto &asyncComputeEngines = hwHelper.getGpgpuEngineInstances(device.getHwInfo());
|
||||
ContextCreateData_1_0 createData = {};
|
||||
ClientOptionsData_1_0 clientOptions[1] = {};
|
||||
ClientOptionsData_1_0 clientOptions[2] = {};
|
||||
ClientData_1_0 clientData = {};
|
||||
ClientType_1_0 clientType = {};
|
||||
ClientDataLinuxAdapter_1_0 adapter = {};
|
||||
@@ -227,6 +227,9 @@ bool MetricsLibrary::createContext() {
|
||||
clientOptions[0].Type = ClientOptionsType::Compute;
|
||||
clientOptions[0].Compute.Asynchronous = asyncComputeEngine != asyncComputeEngines.end();
|
||||
|
||||
clientOptions[1].Type = ClientOptionsType::Tbs;
|
||||
clientOptions[1].Tbs.Enabled = metricContext.getMetricTracer() != nullptr;
|
||||
|
||||
clientData.Linux.Adapter = &adapter;
|
||||
clientData.ClientOptions = clientOptions;
|
||||
clientData.ClientOptionsCount = sizeof(clientOptions) / sizeof(ClientOptionsData_1_0);
|
||||
|
||||
Reference in New Issue
Block a user