d-SEAMS
Install
Output
Methods
Docs
Engine & CLI
Python
Rust
Julia
R
Lua / Fennel
Fortran
PLUMED
linkcell
Wiki
Cite
GitHub
seams-core
v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Toggle main menu visibility
Loading...
Searching...
No Matches
gpu_batch.hpp
Go to the documentation of this file.
1
#ifndef SEAMS_GPU_BATCH_H_
2
#define SEAMS_GPU_BATCH_H_
3
4
#include <
gpu_residency.hpp
>
5
6
#include <string>
7
#include <vector>
8
26
27
namespace
gpu
{
28
29
struct
BatchResult
{
30
Plan
plan
;
31
std::vector<int>
sixCount
;
32
std::vector<int>
atomHc
;
// 1 if the atom sits on an HC-affiliated ring
33
std::vector<int>
atomDdc
;
// 1 if the atom sits on a DDC-affiliated ring
34
std::vector<int>
nRings
;
// per frame
35
int
retries
= 0;
// passes rerun with grown buffers
36
std::vector<int>
hostFrames
;
// frames evaluated on the host
37
double
uploadMs
= 0.0;
38
double
computeMs
= 0.0;
39
double
downloadMs
= 0.0;
40
double
hostMs
= 0.0;
41
std::string
error
;
42
};
43
50
BatchResult
analyzeResident
(
const
double
*xyz,
const
double
*box,
int
nAtoms,
51
int
nFrames,
double
rc = 5.5,
52
const
double
*boxLow =
nullptr
,
int
nBox = 3);
53
54
}
// namespace gpu
55
56
#endif
gpu_residency.hpp
Decide whether N frames of the analysis working set fit on the GPU.
gpu
Definition
gpu_batch.hpp:27
gpu::analyzeResident
BatchResult analyzeResident(const double *xyz, const double *box, int nAtoms, int nFrames, double rc=5.5, const double *boxLow=nullptr, int nBox=3)
xyz is frame-major, atom, xyz.
gpu::BatchResult
Definition
gpu_batch.hpp:29
gpu::BatchResult::hostMs
double hostMs
Definition
gpu_batch.hpp:40
gpu::BatchResult::uploadMs
double uploadMs
Definition
gpu_batch.hpp:37
gpu::BatchResult::hostFrames
std::vector< int > hostFrames
Definition
gpu_batch.hpp:36
gpu::BatchResult::sixCount
std::vector< int > sixCount
Definition
gpu_batch.hpp:31
gpu::BatchResult::computeMs
double computeMs
Definition
gpu_batch.hpp:38
gpu::BatchResult::plan
Plan plan
Definition
gpu_batch.hpp:30
gpu::BatchResult::error
std::string error
Definition
gpu_batch.hpp:41
gpu::BatchResult::retries
int retries
Definition
gpu_batch.hpp:35
gpu::BatchResult::nRings
std::vector< int > nRings
Definition
gpu_batch.hpp:34
gpu::BatchResult::downloadMs
double downloadMs
Definition
gpu_batch.hpp:39
gpu::BatchResult::atomHc
std::vector< int > atomHc
Definition
gpu_batch.hpp:32
gpu::BatchResult::atomDdc
std::vector< int > atomDdc
Definition
gpu_batch.hpp:33
gpu::Plan
Definition
gpu_residency.hpp:41
src
include
internal
gpu_batch.hpp