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