seams-core v2.6.0
libyodaLib, the C++ engine of d-SEAMS
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
tum_offload.hpp
Go to the documentation of this file.
1
//-----------------------------------------------------------------------------------
2
// d-SEAMS - Deferred Structural Elucidation Analysis for Molecular Simulations
3
//
4
// Copyright (c) 2018--present d-SEAMS core team
5
//
6
// SPDX-License-Identifier: MIT
7
//-----------------------------------------------------------------------------------
8
9
#ifndef SEAMS_TUM_OFFLOAD_H_
10
#define SEAMS_TUM_OFFLOAD_H_
11
12
#include <vector>
13
25
26
namespace
tum
{
27
28
struct
CageCounts
{
29
int
nSix
= 0;
30
int
nHcRings
= 0;
31
int
nDdcRings
= 0;
32
int
nHcAtoms
= 0;
33
int
nDdcAtoms
= 0;
34
int
ringsDropped
= 0;
35
bool
usedDevice
=
false
;
36
std::vector<int>
atomHc
;
37
std::vector<int>
atomDdc
;
38
};
39
41
[[nodiscard]]
bool
preferOffload
();
42
45
[[nodiscard]]
CageCounts
hostCageCounts
(
46
const
std::vector<std::vector<int>> &nList);
47
50
[[nodiscard]]
CageCounts
specializedCageCounts
(
51
const
std::vector<std::vector<int>> &nList);
52
54
[[nodiscard]]
CageCounts
cageCounts
(
const
std::vector<std::vector<int>> &nList);
55
56
}
// namespace tum
57
58
#endif
tum
Definition
tum_device.hpp:22
tum::specializedCageCounts
CageCounts specializedCageCounts(const std::vector< std::vector< int > > &nList)
Hop-bound six-ring enumerator plus affiliation predicates.
tum::hostCageCounts
CageCounts hostCageCounts(const std::vector< std::vector< int > > &nList)
Host Franzblau six-rings plus cageAffiliation on an index nList (leading self entry,...
tum::cageCounts
CageCounts cageCounts(const std::vector< std::vector< int > > &nList)
preferOffload() selects specializedCageCounts, otherwise hostCageCounts.
tum::preferOffload
bool preferOffload()
True when SEAMS_OFFLOAD is set and is not "0".
tum::CageCounts
Definition
tum_offload.hpp:28
tum::CageCounts::atomHc
std::vector< int > atomHc
Definition
tum_offload.hpp:36
tum::CageCounts::nSix
int nSix
Definition
tum_offload.hpp:29
tum::CageCounts::nHcAtoms
int nHcAtoms
Definition
tum_offload.hpp:32
tum::CageCounts::usedDevice
bool usedDevice
Definition
tum_offload.hpp:35
tum::CageCounts::ringsDropped
int ringsDropped
Definition
tum_offload.hpp:34
tum::CageCounts::nDdcRings
int nDdcRings
Definition
tum_offload.hpp:31
tum::CageCounts::nHcRings
int nHcRings
Definition
tum_offload.hpp:30
tum::CageCounts::nDdcAtoms
int nDdcAtoms
Definition
tum_offload.hpp:33
tum::CageCounts::atomDdc
std::vector< int > atomDdc
Definition
tum_offload.hpp:37
src
include
internal
tum_offload.hpp
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf