imate
C++/CUDA Reference
Loading...
Searching...
No Matches
device_properties.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_DEVICE_PROPERTIES_H_
12#define _CUDA_UTILITIES_DEVICE_PROPERTIES_H_
13
14
15// =================
16// Device Properties
17// =================
18
22
24{
25 // Methods
28 void deallocate_members();
29 void set_num_devices(int num_devices_);
30
31 // Data
35};
36
37#endif // _CUDA_UTILITIES_DEVICE_PROPERTIES_H_
Properties of GPU devices.
void deallocate_members()
Deallocates the member data.
~DeviceProperties()
Destructor.
DeviceProperties()
Constructor.
int * num_threads_per_multiprocessor
void set_num_devices(int num_devices_)
Sets the number of devices and allocates memory for member data with the size of devices.