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 
12 #include <opencl/platforminfo.hxx>
13 
OpenCLDeviceInfo()14 OpenCLDeviceInfo::OpenCLDeviceInfo()
15     : device(nullptr)
16     , mnMemory(0)
17     , mnComputeUnits(0)
18     , mnFrequency(0)
19 {
20 }
21 
OpenCLPlatformInfo()22 OpenCLPlatformInfo::OpenCLPlatformInfo()
23     : platform(nullptr)
24 {
25 }
26 
operator <<(std::ostream & rStream,const OpenCLPlatformInfo & rPlatform)27 std::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 
operator <<(std::ostream & rStream,const OpenCLDeviceInfo & rDevice)36 std::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: */
47