.. index:: pair: struct; pot::OracleBatchLayout .. _doxid-structpot_1_1_oracle_batch_layout: struct pot::OracleBatchLayout ============================= .. toctree:: :hidden: Overview ~~~~~~~~ How a step's oracle points are shared out. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct OracleBatchLayout { // fields int :target:`rank` = 0; int :target:`nprocs` = 1; Eigen::Index :ref:`chunk` = 0; int :ref:`owner_offset` = 0; :ref:`OracleBatchComm` :target:`comm` = :ref:`oracleBatchWorld`(); // methods static OracleBatchLayout :ref:`world`(Eigen::Index chunk = 0, int owner_offset = 0); }; .. _details-structpot_1_1_oracle_batch_layout: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ How a step's oracle points are shared out. Fields ------ .. index:: pair: variable; chunk .. _doxid-structpot_1_1_oracle_batch_layout_1aedfa3c10b269b20a5c3ba18735c6a21f: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::Index chunk = 0 0: point i belongs to rank (i + owner_offset) % nprocs and every point a rank owns forms one batch call. An engine that loops over its batch then gives the same values at every layout. K > 0: contiguous chunks of K points, chunk c owned by rank (c + owner_offset) % nprocs, one batch call per chunk. An engine whose batched forward depends on the batch composition (a UMA band package traced at a fixed batch size) then sees the same chunks at every layout once K is that batch size. .. index:: pair: variable; owner_offset .. _doxid-structpot_1_1_oracle_batch_layout_1ab0e85b2831d5d188c729e017f1349e74: .. ref-code-block:: cpp :class: doxyrest-title-code-block int owner_offset = 0 Rotation of the owner map, applied when more than one point is shared out. A lone point always sits on the root, so the root's engine instance stays the warm one for the common single call. Methods ------- .. index:: pair: function; world .. _doxid-structpot_1_1_oracle_batch_layout_1aa832c65b96fb23dc9aa9a35493922937: .. ref-code-block:: cpp :class: doxyrest-title-code-block static OracleBatchLayout world(Eigen::Index chunk = 0, int owner_offset = 0) The layout of the running communicator (rank 0 of 1 without MPI).