#include "tree_handler.h"
Public Member Functions | |
TreeHandler (integer numParticles, integer numNodes) | |
Constructor. More... | |
~TreeHandler () | |
Destructor. More... | |
void | globalizeBoundingBox (Execution::Location exLoc=Execution::device) |
All reduce bounding box(es)/borders (among MPI processes) More... | |
void | copy (To::Target target=To::device, bool borders=true, bool index=true, bool toDelete=true) |
Copy (parts of the) tree instance(s) between host and device. More... | |
Public Attributes | |
integer | numParticles |
number of particles More... | |
integer | numNodes |
number of nodes More... | |
integer * | d_count |
device (pointer to) count (array) More... | |
integer * | d_start |
device (pointer to) start (array) More... | |
integer * | d_sorted |
device (pointer to) sorted (array) More... | |
integer * | d_child |
device (pointer to) child/children (array) More... | |
integer * | d_index |
device (pointer to) index More... | |
integer * | h_index |
host (pointer to) index More... | |
integer * | d_mutex |
device (pointer to) mutex/lock More... | |
integer * | h_toDeleteLeaf |
host (pointer to) array remembering leaf indices for rebuilding after temporarily inserting particles More... | |
integer * | h_toDeleteNode |
host (pointer to) array remembering leaf indices for rebuilding after temporarily inserting particles More... | |
integer * | d_toDeleteLeaf |
device (pointer to) array remembering leaf indices for rebuilding after temporarily inserting particles More... | |
integer * | d_toDeleteNode |
device (pointer to) array remembering leaf indices for rebuilding after temporarily inserting particles More... | |
real * | d_minX |
device (pointer to) bounding box minimal x More... | |
real * | d_maxX |
device (pointer to) bounding box maximal x More... | |
real * | h_minX |
host (pointer to) bounding box minimal x More... | |
real * | h_maxX |
host (pointer to) bounding box maximal x More... | |
real * | d_minY |
device (pointer to) bounding box minimal y More... | |
real * | d_maxY |
device (pointer to) bounding box maximal y More... | |
real * | h_minY |
host (pointer to) bounding box minimal y More... | |
real * | h_maxY |
host (pointer to) bounding box maximal y More... | |
real * | d_minZ |
device (pointer to) bounding box minimal z More... | |
real * | d_maxZ |
device (pointer to) bounding box maximal z More... | |
real * | h_minZ |
host (pointer to) bounding box minimal z More... | |
real * | h_maxZ |
host (pointer to) bounding box maximal x More... | |
Tree * | d_tree |
device instance of Class Tree More... | |
Class to handle device (and potentially host) instance of Tree class.
Definition at line 22 of file tree_handler.h.
Constructor.
numParticles | number of particles |
numNodes | number of nodes |
Definition at line 3 of file tree_handler.cpp.
TreeHandler::~TreeHandler | ( | ) |
Destructor.
Definition at line 51 of file tree_handler.cpp.
void TreeHandler::copy | ( | To::Target | target = To::device , |
bool | borders = true , |
||
bool | index = true , |
||
bool | toDelete = true |
||
) |
Copy (parts of the) tree instance(s) between host and device.
target | copy to target |
borders | flag whether borders should be copied |
index | flag whether index should be copied |
toDelete | flag whether toDeleteLeaf and toDeleteNode |
Definition at line 86 of file tree_handler.cpp.
void TreeHandler::globalizeBoundingBox | ( | Execution::Location | exLoc = Execution::device | ) |
All reduce bounding box(es)/borders (among MPI processes)
exLoc | execute on device or host |
Definition at line 110 of file tree_handler.cpp.
integer* TreeHandler::d_child |
device (pointer to) child/children (array)
Definition at line 38 of file tree_handler.h.
integer* TreeHandler::d_count |
device (pointer to) count (array)
Definition at line 32 of file tree_handler.h.
integer* TreeHandler::d_index |
device (pointer to) index
Definition at line 40 of file tree_handler.h.
real* TreeHandler::d_maxX |
device (pointer to) bounding box maximal x
Definition at line 58 of file tree_handler.h.
real* TreeHandler::d_maxY |
device (pointer to) bounding box maximal y
Definition at line 67 of file tree_handler.h.
real* TreeHandler::d_maxZ |
device (pointer to) bounding box maximal z
Definition at line 76 of file tree_handler.h.
real* TreeHandler::d_minX |
device (pointer to) bounding box minimal x
Definition at line 56 of file tree_handler.h.
real* TreeHandler::d_minY |
device (pointer to) bounding box minimal y
Definition at line 65 of file tree_handler.h.
real* TreeHandler::d_minZ |
device (pointer to) bounding box minimal z
Definition at line 74 of file tree_handler.h.
integer* TreeHandler::d_mutex |
device (pointer to) mutex/lock
Definition at line 44 of file tree_handler.h.
integer* TreeHandler::d_sorted |
device (pointer to) sorted (array)
Definition at line 36 of file tree_handler.h.
integer* TreeHandler::d_start |
device (pointer to) start (array)
Definition at line 34 of file tree_handler.h.
integer* TreeHandler::d_toDeleteLeaf |
device (pointer to) array remembering leaf indices for rebuilding after temporarily inserting particles
Definition at line 51 of file tree_handler.h.
integer* TreeHandler::d_toDeleteNode |
device (pointer to) array remembering leaf indices for rebuilding after temporarily inserting particles
Definition at line 53 of file tree_handler.h.
Tree* TreeHandler::d_tree |
device instance of Class Tree
Definition at line 85 of file tree_handler.h.
integer* TreeHandler::h_index |
host (pointer to) index
Definition at line 42 of file tree_handler.h.
real* TreeHandler::h_maxX |
host (pointer to) bounding box maximal x
Definition at line 62 of file tree_handler.h.
real* TreeHandler::h_maxY |
host (pointer to) bounding box maximal y
Definition at line 71 of file tree_handler.h.
real* TreeHandler::h_maxZ |
host (pointer to) bounding box maximal x
Definition at line 80 of file tree_handler.h.
real* TreeHandler::h_minX |
host (pointer to) bounding box minimal x
Definition at line 60 of file tree_handler.h.
real* TreeHandler::h_minY |
host (pointer to) bounding box minimal y
Definition at line 69 of file tree_handler.h.
real* TreeHandler::h_minZ |
host (pointer to) bounding box minimal z
Definition at line 78 of file tree_handler.h.
integer* TreeHandler::h_toDeleteLeaf |
host (pointer to) array remembering leaf indices for rebuilding after temporarily inserting particles
Definition at line 47 of file tree_handler.h.
integer* TreeHandler::h_toDeleteNode |
host (pointer to) array remembering leaf indices for rebuilding after temporarily inserting particles
Definition at line 49 of file tree_handler.h.
integer TreeHandler::numNodes |
number of nodes
Definition at line 29 of file tree_handler.h.
integer TreeHandler::numParticles |
number of particles
Definition at line 27 of file tree_handler.h.