LibreOffice Module opencl (master)
1
opencl
source
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
12
#include <
opencl/platforminfo.hxx
>
13
14
OpenCLDeviceInfo::OpenCLDeviceInfo
()
15
: device(nullptr)
16
, mnMemory(0)
17
, mnComputeUnits(0)
18
, mnFrequency(0)
19
{
20
}
21
22
OpenCLPlatformInfo::OpenCLPlatformInfo
()
23
: platform(nullptr)
24
{
25
}
26
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
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: */
operator<<
std::ostream & operator<<(std::ostream &rStream, const OpenCLPlatformInfo &rPlatform)
Definition:
platforminfo.cxx:27
platforminfo.hxx
OpenCLDeviceInfo
Definition:
platforminfo.hxx:24
OpenCLDeviceInfo::maName
OUString maName
Definition:
platforminfo.hxx:26
OpenCLDeviceInfo::maVendor
OUString maVendor
Definition:
platforminfo.hxx:27
OpenCLDeviceInfo::maDriver
OUString maDriver
Definition:
platforminfo.hxx:28
OpenCLDeviceInfo::OpenCLDeviceInfo
OpenCLDeviceInfo()
Definition:
platforminfo.cxx:14
OpenCLPlatformInfo
Definition:
platforminfo.hxx:39
OpenCLPlatformInfo::maName
OUString maName
Definition:
platforminfo.hxx:42
OpenCLPlatformInfo::maVendor
OUString maVendor
Definition:
platforminfo.hxx:41
OpenCLPlatformInfo::OpenCLPlatformInfo
OpenCLPlatformInfo()
Definition:
platforminfo.cxx:22
Generated on Sun Jul 30 2023 04:26:59 for LibreOffice Module opencl (master) by
1.9.3