bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / opencl / platforminfo.hxx
blobac3f144f9d9fce6e020ea543be4cc819b4bfad51
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_OPENCL_PLATFORMINFO_HXX
11 #define INCLUDED_OPENCL_PLATFORMINFO_HXX
13 #include <ostream>
14 #include <vector>
16 #include <clew/clew.h>
18 #include <opencl/opencldllapi.h>
19 #include <rtl/ustring.hxx>
21 // Struct that describs an actual instance of an OpenCL device
23 struct OPENCL_DLLPUBLIC OpenCLDeviceInfo
25 cl_device_id device;
26 OUString maName;
27 OUString maVendor;
28 OUString maDriver;
29 size_t mnMemory;
30 size_t mnComputeUnits;
31 size_t mnFrequency;
33 OpenCLDeviceInfo();
36 // Struct that describs an actual instance of an OpenCL platform implementation
38 struct OPENCL_DLLPUBLIC OpenCLPlatformInfo
40 cl_platform_id platform;
41 OUString maVendor;
42 OUString maName;
43 std::vector<OpenCLDeviceInfo> maDevices;
45 OpenCLPlatformInfo();
48 OPENCL_DLLPUBLIC std::ostream& operator<<(std::ostream& rStream, const OpenCLPlatformInfo& rPlatform);
49 OPENCL_DLLPUBLIC std::ostream& operator<<(std::ostream& rStream, const OpenCLDeviceInfo& rDevice);
51 #endif