mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Cleaned up files: shared/source/command_container/command_encoder.inl shared/source/os_interface/hw_info_config.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
25 lines
802 B
C++
25 lines
802 B
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/test/unit_test/fixtures/device_instrumentation_fixture.h"
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
|
#include "shared/test/common/helpers/execution_environment_helper.h"
|
|
#include "shared/test/common/mocks/mock_device.h"
|
|
|
|
#include "opencl/source/cl_device/cl_device.h"
|
|
#include "opencl/test/unit_test/mocks/mock_platform.h"
|
|
|
|
namespace NEO {
|
|
void DeviceInstrumentationFixture::setUp(bool instrumentation) {
|
|
ExecutionEnvironment *executionEnvironment = getExecutionEnvironmentImpl(hwInfo, 1);
|
|
hwInfo->capabilityTable.instrumentationEnabled = instrumentation;
|
|
device = std::make_unique<ClDevice>(*Device::create<RootDevice>(executionEnvironment, 0), platform());
|
|
}
|
|
|
|
} // namespace NEO
|