Line data Source code
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 : #ifndef SC_PLATFORM_INFO_HXX
11 : #define SC_PLATFORM_INFO_HXX
12 :
13 : #include <vector>
14 :
15 : #include <rtl/ustring.hxx>
16 :
17 : #include "scdllapi.h"
18 :
19 : namespace sc {
20 :
21 0 : struct SC_DLLPUBLIC OpenclDeviceInfo
22 : {
23 : void* device;
24 : OUString maName;
25 : OUString maVendor;
26 : OUString maDriver;
27 : size_t mnMemory;
28 : size_t mnComputeUnits;
29 : size_t mnFrequency;
30 :
31 : OpenclDeviceInfo();
32 : };
33 :
34 0 : struct SC_DLLPUBLIC OpenclPlatformInfo
35 : {
36 : void* platform;
37 : OUString maVendor;
38 : OUString maName;
39 : std::vector<OpenclDeviceInfo> maDevices;
40 :
41 : OpenclPlatformInfo();
42 : };
43 :
44 : }
45 :
46 : #endif
|