LibreOffice Module opencl (master) 1
platforminfo.cxx
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#include <ostream>
11
13
15 : device(nullptr)
16 , mnMemory(0)
17 , mnComputeUnits(0)
18 , mnFrequency(0)
19{
20}
21
23 : platform(nullptr)
24{
25}
26
27std::ostream& operator<<(std::ostream& rStream, const OpenCLPlatformInfo& rPlatform)
28{
29 rStream << "{"
30 "Vendor=" << rPlatform.maVendor << ","
31 "Name=" << rPlatform.maName <<
32 "}";
33 return rStream;
34}
35
36std::ostream& operator<<(std::ostream& rStream, const OpenCLDeviceInfo& rDevice)
37{
38 rStream << "{"
39 "Name=" << rDevice.maName << ","
40 "Vendor=" << rDevice.maVendor << ","
41 "Driver=" << rDevice.maDriver <<
42 "}";
43 return rStream;
44}
45
46/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::ostream & operator<<(std::ostream &rStream, const OpenCLPlatformInfo &rPlatform)