imate
C++/CUDA Reference
Loading...
Searching...
No Matches
query_device.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
3 * SPDX-License-Identifier: BSD-3-Clause
4 * SPDX-FileType: SOURCE
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the license found in the LICENSE.txt file in the root
8 * directory of this source tree.
9 */
10
11#ifndef _CUDA_UTILITIES_QUERY_DEVICE_H_
12#define _CUDA_UTILITIES_QUERY_DEVICE_H_
13
14
15// =======
16// Headers
17// =======
18
19#include "./device_properties.h"
20
21
22// ============
23// Declarations
24// ============
25
26void query_device(DeviceProperties& device_properties);
27
28#endif // _CUDA_UTILITIES_QUERY_DEVICE_H_
void query_device(DeviceProperties &device_properties)
Queries GPU device information, such as the number of devices, number of multiprocessors,...
Properties of GPU devices.