mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-22 19:29:06 +08:00
Dates corrected in copyright headers to reflect original publication date (2018 for OpenCL, 2020 for Level Zero). Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
30 lines
642 B
C++
30 lines
642 B
C++
/*
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "device_fixture.h"
|
|
|
|
#include "opencl/source/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;
|
|
}
|