From 87c18d6f4cb9bcb8c4c9e2c80e4d779f01675ff6 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 27 Nov 2014 15:13:12 +0200 Subject: Move more Calc-independent OpenCL stuff from the sc to the opencl module No cleanups yet. Just removed the "sc" namespace parts now when this stuff is no longer Calc-specific. There is still horribly confusing use of the same OpenCLDevice name for both a class and as a namespace, for instance. And the OpenCLDevice class has only public static members even, so effectively it acts as just a namespace anyway... Etc. Change-Id: Idc5f30a721df0101426c676f04a85e02c5dc8443 --- opencl/inc/opencl_device.hxx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 opencl/inc/opencl_device.hxx (limited to 'opencl/inc/opencl_device.hxx') diff --git a/opencl/inc/opencl_device.hxx b/opencl/inc/opencl_device.hxx new file mode 100644 index 000000000000..7435879ecc83 --- /dev/null +++ b/opencl/inc/opencl_device.hxx @@ -0,0 +1,25 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_OPENCL_INC_OPENCL_DEVICE_HXX +#define INCLUDED_OPENCL_INC_OPENCL_DEVICE_HXX + +#include "opencl_device_selection.h" + +namespace OpenCLDevice { + +ds_device getDeviceSelection(const char* pFileName, bool bForceSelection = false); +bool selectedDeviceIsOpenCL(ds_device device); +bool selectedDeviceIsNativeCPU(ds_device device); + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit