diff options
Diffstat (limited to 'src/armnn/backends/test/ClContextControlFixture.hpp')
-rw-r--r-- | src/armnn/backends/test/ClContextControlFixture.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/armnn/backends/test/ClContextControlFixture.hpp b/src/armnn/backends/test/ClContextControlFixture.hpp new file mode 100644 index 0000000000..13c061f818 --- /dev/null +++ b/src/armnn/backends/test/ClContextControlFixture.hpp @@ -0,0 +1,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>; |