LibreOffice: com/sun/star/sheet/opencl/XOpenCLSelection.idl Source File

LibreOffice LibreOffice 7.3 SDK API Reference

XOpenCLSelection.idl
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#include <com/sun/star/sheet/opencl/OpenCLPlatform.idl>
11
12module com { module sun { module star { module sheet { module opencl {
13
14 interface XOpenCLSelection : com::sun::star::uno::XInterface
15{
16
24 boolean isOpenCLEnabled();
25
32 void enableOpenCL( [in] boolean enable );
33
38 void enableAutomaticDeviceSelection( [in] boolean force );
39
43 void disableAutomaticDeviceSelection();
44
52 void selectOpenCLDevice( [in] long platform, [in] long device );
53
61 long getPlatformID();
62
70 long getDeviceID();
71
75 sequence< OpenCLPlatform > getOpenCLPlatforms();
76
77 /*
78 * Sets OpenCL to be considered only for formulas that use only a specific subset of opcodes.
79 */
80 void enableOpcodeSubsetTest();
81
82 /*
83 * Sets OpenCL to be considered for formulas regardless of what opcodes they contain.
84 */
85 void disableOpcodeSubsetTest();
86
87 /*
88 * Returns whether OpenCL is considered or not depending on the opcodes a formula uses.
89 */
90 boolean isOpcodeSubsetTested();
91
92 /*
93 * Sets the lower limit on the size of a formula group for OpenCL to be considered. (Sorry, the name is misleading.)
94 */
95 void setFormulaCellNumberLimit( [in] long number );
96
97 /*
98 * Returns the lower limit on the size of a formula group for OpenCL to be considered.
99 */
100 long getFormulaCellNumberLimit();
101
102};
103
104}; }; }; }; };
105
106/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OpenCLPlatform.idl
com::sun::star::sheet::opencl::XOpenCLSelection
Definition: XOpenCLSelection.idl:15
com::sun::star::sheet::opencl::XOpenCLSelection::getOpenCLPlatforms
sequence< OpenCLPlatform > getOpenCLPlatforms()
lists all OpenCL devices and platforms
com::sun::star::sheet::opencl::XOpenCLSelection::getFormulaCellNumberLimit
long getFormulaCellNumberLimit()
com::sun::star::sheet::opencl::XOpenCLSelection::isOpenCLEnabled
boolean isOpenCLEnabled()
Returns true if calculation with OpenCL is enabled (at all).
com::sun::star::sheet::opencl::XOpenCLSelection::getPlatformID
long getPlatformID()
returns the index of the platform of the currently selected device.
com::sun::star::sheet::opencl::XOpenCLSelection::setFormulaCellNumberLimit
void setFormulaCellNumberLimit([in] long number)
com::sun::star::sheet::opencl::XOpenCLSelection::enableOpenCL
void enableOpenCL([in] boolean enable)
Enables or disables use of OpenCL for calculations.
com::sun::star::sheet::opencl::XOpenCLSelection::selectOpenCLDevice
void selectOpenCLDevice([in] long platform, [in] long device)
Select the OpenCL device with the given platform and device number.
com::sun::star::sheet::opencl::XOpenCLSelection::disableOpcodeSubsetTest
void disableOpcodeSubsetTest()
com::sun::star::sheet::opencl::XOpenCLSelection::disableAutomaticDeviceSelection
void disableAutomaticDeviceSelection()
Disables automatic OpenCL Device Selection.
com::sun::star::sheet::opencl::XOpenCLSelection::enableAutomaticDeviceSelection
void enableAutomaticDeviceSelection([in] boolean force)
Enables automatic OpenCL Device Selection.
com::sun::star::sheet::opencl::XOpenCLSelection::isOpcodeSubsetTested
boolean isOpcodeSubsetTested()
com::sun::star::sheet::opencl::XOpenCLSelection::getDeviceID
long getDeviceID()
returns the index of the currently selected device.
com::sun::star::sheet::opencl::XOpenCLSelection::enableOpcodeSubsetTest
void enableOpcodeSubsetTest()
com::sun::star::uno::XInterface
base interface of all UNO interfaces
Definition: XInterface.idl:48
com
Definition: Ambiguous.idl:22