mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 11:03:02 +08:00
Add control on platform life cycle.
Change-Id: I5c24b41747d822b71dd57e9a949cf25fcc78a453
This commit is contained in:
committed by
sys_ocldev
parent
0f91c3bc47
commit
a21c0a0074
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "runtime/compiler_interface/compiler_options.h"
|
||||
#include "runtime/platform/platform.h"
|
||||
#include "unit_tests/fixtures/program_fixture.h"
|
||||
#include "unit_tests/global_environment.h"
|
||||
#include "unit_tests/helpers/kernel_binary_helper.h"
|
||||
@@ -52,6 +53,7 @@ class ProgramWithKernelDebuggingTest : public ProgramSimpleFixture,
|
||||
public ::testing::Test {
|
||||
public:
|
||||
void SetUp() override {
|
||||
constructPlatform();
|
||||
ProgramSimpleFixture::SetUp();
|
||||
device = pDevice;
|
||||
|
||||
@@ -71,6 +73,7 @@ class ProgramWithKernelDebuggingTest : public ProgramSimpleFixture,
|
||||
void TearDown() override {
|
||||
delete kbHelper;
|
||||
ProgramSimpleFixture::TearDown();
|
||||
platformImpl.reset(nullptr);
|
||||
}
|
||||
cl_device_id device;
|
||||
KernelBinaryHelper *kbHelper = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user