2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2022-05-09 17:40:30 +00:00
|
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/api/cl_types.h"
|
|
|
|
#include "opencl/source/platform/platform.h"
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
class PlatformFixture {
|
|
|
|
protected:
|
2022-05-09 17:40:30 +00:00
|
|
|
void SetUp(); // NOLINT(readability-identifier-naming)
|
|
|
|
void TearDown(); // NOLINT(readability-identifier-naming)
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2020-03-13 14:59:00 +01:00
|
|
|
Platform *pPlatform = nullptr;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2020-03-13 14:59:00 +01:00
|
|
|
cl_uint num_devices = 0u;
|
|
|
|
cl_device_id *devices = nullptr;
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|