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
19namespace gpu {
20
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
40BatchResult 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
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 > sixCount
Definition gpu_batch.hpp:23
std::string error
Definition gpu_batch.hpp:31
std::vector< int > nRings
Definition gpu_batch.hpp:26
std::vector< int > atomHc
Definition gpu_batch.hpp:24
std::vector< int > atomDdc
Definition gpu_batch.hpp:25