blob: 0371c69a0b347e4901f715305e343967ec07d644 [file] [log] [blame]
telsoa01c577f2c2018-08-31 09:22:23 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa01c577f2c2018-08-31 09:22:23 +01004//
5
6#pragma once
7
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include <cl/ClContextControl.hpp>
Aron Virginas-Tar60578952018-10-31 11:04:01 +00009#include <backendsCommon/WorkloadFactory.hpp>
telsoa01c577f2c2018-08-31 09:22:23 +010010
11template<bool ProfilingEnabled>
12struct ClContextControlFixtureBase
13{
14 // Initialising ClContextControl to ensure OpenCL is loaded correctly for each test case
Matteo Martincigh539b44d2018-10-01 09:26:39 +010015 ClContextControlFixtureBase()
Aron Virginas-Tar60578952018-10-31 11:04:01 +000016 : m_ClContextControl(nullptr, ProfilingEnabled) {}
telsoa01c577f2c2018-08-31 09:22:23 +010017
18 armnn::ClContextControl m_ClContextControl;
19};
20
21using ClContextControlFixture = ClContextControlFixtureBase<false>;
22using ClProfilingContextControlFixture = ClContextControlFixtureBase<true>;