seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
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
27namespace gpu {
28
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
50BatchResult 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
Decide whether N frames of the analysis working set fit on the GPU.
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.
std::vector< int > hostFrames
Definition gpu_batch.hpp:36
std::vector< int > sixCount
Definition gpu_batch.hpp:31
std::string error
Definition gpu_batch.hpp:41
std::vector< int > nRings
Definition gpu_batch.hpp:34
std::vector< int > atomHc
Definition gpu_batch.hpp:32
std::vector< int > atomDdc
Definition gpu_batch.hpp:33