LibreOffice Module opencl (master) 1
platforminfo.hxx
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#ifndef INCLUDED_OPENCL_PLATFORMINFO_HXX
11#define INCLUDED_OPENCL_PLATFORMINFO_HXX
12
13#include <ostream>
14#include <vector>
15
16#include <clew/clew.h>
17
18#include <opencl/opencldllapi.h>
19#include <rtl/ustring.hxx>
20
21// Struct that describs an actual instance of an OpenCL device
22
24{
25 cl_device_id device;
26 OUString maName;
27 OUString maVendor;
28 OUString maDriver;
29 size_t mnMemory;
32
34};
35
36// Struct that describs an actual instance of an OpenCL platform implementation
37
39{
40 cl_platform_id platform;
41 OUString maVendor;
42 OUString maName;
43 std::vector<OpenCLDeviceInfo> maDevices;
44
46};
47
48OPENCL_DLLPUBLIC std::ostream& operator<<(std::ostream& rStream, const OpenCLPlatformInfo& rPlatform);
49OPENCL_DLLPUBLIC std::ostream& operator<<(std::ostream& rStream, const OpenCLDeviceInfo& rDevice);
50
51#endif
#define OPENCL_DLLPUBLIC
Definition: opencldllapi.h:28
OPENCL_DLLPUBLIC std::ostream & operator<<(std::ostream &rStream, const OpenCLPlatformInfo &rPlatform)
cl_device_id device
cl_platform_id platform
std::vector< OpenCLDeviceInfo > maDevices