seams-core v2.6.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
18
19
namespace
gpu
{
20
21
struct
BatchResult
{
22
Plan
plan
;
23
std::vector<int>
sixCount
;
24
std::vector<int>
atomHc
;
// 1 if the atom sits on an HC-affiliated ring
25
std::vector<int>
atomDdc
;
// 1 if the atom sits on a DDC-affiliated ring
26
std::vector<int>
nRings
;
// per frame
27
int
ringsDropped
= 0;
28
double
uploadMs
= 0.0;
29
double
computeMs
= 0.0;
30
double
downloadMs
= 0.0;
31
std::string
error
;
32
};
33
40
BatchResult
analyzeResident
(
const
double
*xyz,
const
double
*box,
int
nAtoms,
41
int
nFrames,
double
rc = 5.5,
42
const
double
*boxLow =
nullptr
,
int
nBox = 3);
43
44
}
// namespace gpu
45
46
#endif
gpu_residency.hpp
Decide whether N frames of the analysis working set fit on the GPU.
gpu
Definition
gpu_batch.hpp:19
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:21
gpu::BatchResult::uploadMs
double uploadMs
Definition
gpu_batch.hpp:28
gpu::BatchResult::sixCount
std::vector< int > sixCount
Definition
gpu_batch.hpp:23
gpu::BatchResult::computeMs
double computeMs
Definition
gpu_batch.hpp:29
gpu::BatchResult::plan
Plan plan
Definition
gpu_batch.hpp:22
gpu::BatchResult::error
std::string error
Definition
gpu_batch.hpp:31
gpu::BatchResult::ringsDropped
int ringsDropped
Definition
gpu_batch.hpp:27
gpu::BatchResult::nRings
std::vector< int > nRings
Definition
gpu_batch.hpp:26
gpu::BatchResult::downloadMs
double downloadMs
Definition
gpu_batch.hpp:30
gpu::BatchResult::atomHc
std::vector< int > atomHc
Definition
gpu_batch.hpp:24
gpu::BatchResult::atomDdc
std::vector< int > atomDdc
Definition
gpu_batch.hpp:25
gpu::Plan
Definition
gpu_residency.hpp:41
src
include
internal
gpu_batch.hpp
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf