You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ArbLattice.hpp
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ class ArbLattice : public LatticeBase {
33
33
size_t neighbors_pitch; /// B + I + padding
34
34
size_t coords_pitch; /// B + I + padding (should be the same as neighbors_pitch, but let's be extra safe since they come from separate pitched allocation calls)
35
35
size_t snaps_pitch; /// B + I + G + 1 + padding
36
+
size_t cuts_pitch; /// B + I + padding (should be the same as neighbors_pitch, but same as above)
36
37
};
37
38
38
39
structCommManager {
@@ -63,6 +64,7 @@ class ArbLattice : public LatticeBase {
63
64
std::unordered_map<std::string, int> label_to_ind_map; /// Label string to unique ID
64
65
CudaUniquePtr<unsigned> neighbors_device; /// Device allocation of the neighbor table: (B + I) x Q
65
66
CudaUniquePtr<real_t> coords_device; /// Device allocation of node coordinates: (B + I) x 3
67
+
CudaUniquePtr<cut_t> cut_distances_device; /// Device allocation of cut-distances: (B + I) x 26
66
68
CudaUniquePtr<storage_t> snaps_device; /// Device allocation of snaps: (B + I + G + 1) x NF x num_snaps
67
69
CudaUniquePtr<flag_t> node_types_device; /// Device allocation of node type array: (B + I)
68
70
std::vector<flag_t, pinned_allocator<flag_t> > node_types_host; /// Host (pinned) allocation of node type array: (B + I)
@@ -145,6 +147,7 @@ class ArbLattice : public LatticeBase {
145
147
voidcomputeNodeTypesOnHost(pugi::xml_node arb_node, const std::map<std::string, int>& setting_zones, bool permute); /// Compute the node types to be stored on the device, `permute` enables better code reuse
146
148
std::vector<real_t> computeCoords() const; /// Compute the coordinates 2D array to be stored on the device
147
149
std::vector<unsigned> computeNeighbors() const; /// Compute the neighbors 2D array to be stored on the device
150
+
std::vector<cut_t> computeCutDistances() const; /// Compute the cut-distances 2D array to be stored on the device
148
151
voidinitDeviceData(pugi::xml_node arb_node, const std::map<std::string, int>& setting_zones); /// Initialize data residing in device memory
149
152
voidinitCommManager(); /// Compute which fields need to be sent to/received from which neighbors
150
153
voidinitContainer(); /// Initialize the data residing in launcher.container
0 commit comments