Files
compute-runtime/unit_tests/perf_tests/fixtures/device_fixture.cpp
Filip Hazubski eb72ea8677 Rename DeviceHelper to ClDeviceHelper
Related-To: NEO-3938

Change-Id: I6c518c25d9868d7a94a20d3a1fcaf9a3631ebc0b
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-02-04 20:30:25 +01:00

31 lines
670 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "device_fixture.h"
#include "core/helpers/options.h"
#include "runtime/command_stream/command_stream_receiver.h"
#include "gtest/gtest.h"
using NEO::Device;
using NEO::HardwareInfo;
using NEO::platformDevices;
void DeviceFixture::SetUp() {
pDevice = ClDeviceHelper<>::create();
ASSERT_NE(nullptr, pDevice);
auto &commandStreamReceiver = pDevice->getGpgpuCommandStreamReceiver();
pTagMemory = commandStreamReceiver.getTagAddress();
ASSERT_NE(nullptr, const_cast<uint32_t *>(pTagMemory));
}
void DeviceFixture::TearDown() {
delete pDevice;
}