LibreOffice
LibreOffice 7.4 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 
11 
12 module com { module sun { module star { module sheet { module opencl {
13 
15 {
16 
24  boolean isOpenCLEnabled();
25 
32  void enableOpenCL( [in] boolean enable );
33 
38  void enableAutomaticDeviceSelection( [in] boolean force );
39 
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  */
81 
82  /*
83  * Sets OpenCL to be considered for formulas regardless of what opcodes they contain.
84  */
86 
87  /*
88  * Returns whether OpenCL is considered or not depending on the opcodes a formula uses.
89  */
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  */
101 
102 };
103 
104 }; }; }; }; };
105 
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: XOpenCLSelection.idl:15
sequence< OpenCLPlatform > getOpenCLPlatforms()
lists all OpenCL devices and platforms
boolean isOpenCLEnabled()
Returns true if calculation with OpenCL is enabled (at all).
long getPlatformID()
returns the index of the platform of the currently selected device.
void enableOpenCL([in] boolean enable)
Enables or disables use of OpenCL for calculations.
void selectOpenCLDevice([in] long platform, [in] long device)
Select the OpenCL device with the given platform and device number.
void disableAutomaticDeviceSelection()
Disables automatic OpenCL Device Selection.
void enableAutomaticDeviceSelection([in] boolean force)
Enables automatic OpenCL Device Selection.
long getDeviceID()
returns the index of the currently selected device.
base interface of all UNO interfaces
Definition: XInterface.idl:48
Definition: Ambiguous.idl:22