Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / opencl / source / platforminfo.cxx
bloba23aa87a51e118b752bb847ca33de448ff63374b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #include <ostream>
12 #include <opencl/platforminfo.hxx>
14 OpenCLDeviceInfo::OpenCLDeviceInfo()
15 : device(nullptr)
16 , mnMemory(0)
17 , mnComputeUnits(0)
18 , mnFrequency(0)
22 OpenCLPlatformInfo::OpenCLPlatformInfo()
23 : platform(nullptr)
27 std::ostream& operator<<(std::ostream& rStream, const OpenCLPlatformInfo& rPlatform)
29 rStream << "{"
30 "Vendor=" << rPlatform.maVendor << ","
31 "Name=" << rPlatform.maName <<
32 "}";
33 return rStream;
36 std::ostream& operator<<(std::ostream& rStream, const OpenCLDeviceInfo& rDevice)
38 rStream << "{"
39 "Name=" << rDevice.maName << ","
40 "Vendor=" << rDevice.maVendor << ","
41 "Driver=" << rDevice.maDriver <<
42 "}";
43 return rStream;
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */