QMCPACK
CUDADeviceManager.h
Go to the documentation of this file.
1
//////////////////////////////////////////////////////////////////////////////////////
2
// This file is distributed under the University of Illinois/NCSA Open Source License.
3
// See LICENSE file in top directory for details.
4
//
5
// Copyright (c) 2021 QMCPACK developers.
6
//
7
// File developed by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
8
//
9
// File created by: Ye Luo, yeluo@anl.gov, Argonne National Laboratory
10
//
11
//////////////////////////////////////////////////////////////////////////////////////
12
13
14
#ifndef QMCPLUSPLUS_CUDADEVICEMANAGER_H
15
#define QMCPLUSPLUS_CUDADEVICEMANAGER_H
16
17
namespace
qmcplusplus
18
{
19
20
/** CUDA device manager
21
*/
22
class
CUDADeviceManager
23
{
24
int
cuda_default_device_num
;
25
int
cuda_device_count
;
26
27
public
:
28
CUDADeviceManager
(
int
& default_device_num,
int
& num_devices,
int
local_rank,
int
local_size);
29
};
30
}
// namespace qmcplusplus
31
32
#endif
qmcplusplus
helper functions for EinsplineSetBuilder
Definition:
Configuration.h:43
qmcplusplus::CUDADeviceManager::CUDADeviceManager
CUDADeviceManager(int &default_device_num, int &num_devices, int local_rank, int local_size)
Definition:
CUDADeviceManager.cpp:22
qmcplusplus::CUDADeviceManager
CUDA device manager.
Definition:
CUDADeviceManager.h:22
qmcplusplus::CUDADeviceManager::cuda_device_count
int cuda_device_count
Definition:
CUDADeviceManager.h:25
qmcplusplus::CUDADeviceManager::cuda_default_device_num
int cuda_default_device_num
Definition:
CUDADeviceManager.h:24
src
Platforms
CUDA
CUDADeviceManager.h
Generated on Fri Jun 28 2024 10:45:16 for QMCPACK by
1.8.14