1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_OPENCL_PLATFORMINFO_HXX
11 #define INCLUDED_OPENCL_PLATFORMINFO_HXX
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 OpenCLDeviceInfo
30 size_t mnComputeUnits
;
36 // Struct that describs an actual instance of an OpenCL platform implementation
38 struct OpenCLPlatformInfo
40 cl_platform_id platform
;
43 std::vector
<OpenCLDeviceInfo
> maDevices
;
48 OPENCL_DLLPUBLIC
std::ostream
& operator<<(std::ostream
& rStream
, const OpenCLPlatformInfo
& rPlatform
);
49 OPENCL_DLLPUBLIC
std::ostream
& operator<<(std::ostream
& rStream
, const OpenCLDeviceInfo
& rDevice
);