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