aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/backends/test/ClContextControlFixture.hpp
blob: 13c061f818968934ce922de5ab0e4285aa220fce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//

#pragma once

#include "backends/ClContextControl.hpp"

template<bool ProfilingEnabled>
struct ClContextControlFixtureBase
{
    // Initialising ClContextControl to ensure OpenCL is loaded correctly for each test case
    ClContextControlFixtureBase() : m_ClContextControl(nullptr, ProfilingEnabled) {}
    ~ClContextControlFixtureBase() {}

    armnn::ClContextControl m_ClContextControl;
};

using ClContextControlFixture = ClContextControlFixtureBase<false>;
using ClProfilingContextControlFixture = ClContextControlFixtureBase<true>;