.. index:: pair: namespace; gpu .. _doxid-namespacegpu: namespace gpu ============= .. toctree:: :hidden: struct_gpu_BatchResult.rst struct_gpu_DeviceInfo.rst struct_gpu_Footprint.rst struct_gpu_Plan.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace gpu { // structs struct :ref:`BatchResult`; struct :ref:`DeviceInfo`; struct :ref:`Footprint`; struct :ref:`Plan`; // global functions :ref:`BatchResult` :ref:`analyzeResident`(const double* xyz, const double* box, int nAtoms, int nFrames, double rc = 5.5, const double* boxLow = nullptr, int nBox = 3); :ref:`DeviceInfo` :target:`probeDevice`(); :ref:`Footprint` :target:`estimateFootprint`(int nAtoms, int nFrames, int kMax = 16, int maxSixRingsPerAtom = 16); int :target:`maxResidentFrames`(const :ref:`DeviceInfo`& dev, int nAtoms, int kMax = 16, int maxSixRingsPerAtom = 16, double safety = 0.80); :ref:`Plan` :target:`planBatch`(int nAtoms, int requestedFrames, int kMax = 16, int maxSixRingsPerAtom = 16, double safety = 0.80); } // namespace gpu .. _details-namespacegpu: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; analyzeResident .. _doxid-namespacegpu_1a4dbfdd404bf0992c51a3b08d0a9f8c42: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`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. box is frame-major three lengths when boxLow is null and nBox is 3. When boxLow is set or nBox is at least 6, box is one dump box (3 spans or 6 span+tilt) shared by every frame and the device walk uses lammpsBoxToLinkcell. rc is the cell-list cutoff; 5.5 matches the host k-NN candidate shell.