QMCPACK
CUDAruntime.hpp
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
/**@file CUDAruntime.hpp
14
*@brief handle CUDA/HIP runtime selection.
15
*/
16
#ifndef QMCPLUSPLUS_CUDA_RUNTIME_H
17
#define QMCPLUSPLUS_CUDA_RUNTIME_H
18
19
#include <cstddef>
20
#include "config.h"
21
#ifndef QMC_CUDA2HIP
22
#include <cuda_runtime.h>
23
#else
24
#include <hip/hip_runtime.h>
25
#include "
Platforms/ROCm/cuda2hip.h
"
26
#endif
27
28
#include "
CUDAerror.h
"
29
30
size_t
getCUDAdeviceFreeMem
();
31
32
#endif
CUDAerror.h
cuda2hip.h
getCUDAdeviceFreeMem
size_t getCUDAdeviceFreeMem()
Definition:
CUDAruntime.cpp:15
src
Platforms
CUDA
CUDAruntime.hpp
Generated on Fri Jun 28 2024 10:45:16 for QMCPACK by
1.8.14