1 // 2 // Copyright © 2017 Arm Ltd. All rights reserved. 3 // SPDX-License-Identifier: MIT 4 // 5 6 #pragma once 7 8 #include <cl/ClContextControl.hpp> 9 #include <armnn/backends/WorkloadFactory.hpp> 10 11 template<bool ProfilingEnabled> 12 struct ClContextControlFixtureBase 13 { 14 // Initialising ClContextControl to ensure OpenCL is loaded correctly for each test case ClContextControlFixtureBaseClContextControlFixtureBase15 ClContextControlFixtureBase() 16 : m_ClContextControl(nullptr, nullptr, ProfilingEnabled) {} 17 18 armnn::ClContextControl m_ClContextControl; 19 }; 20 21 using ClContextControlFixture = ClContextControlFixtureBase<false>; 22 using ClProfilingContextControlFixture = ClContextControlFixtureBase<true>; 23