![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shamalgs/collective/gather_str.hpp"#include "shamalgs/collective/reduction.hpp"#include "shambindings/pybind11_stl.hpp"#include "shambindings/pybindaliases.hpp"#include "shambindings/pytypealias.hpp"#include "shamcomm/logs.hpp"#include "shamcomm/wrapper.hpp"#include <pybind11/pytypes.h>#include <unordered_map>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| shamcomm_module | def ("get_timer", [](std::string name) { return shamcomm::mpi::get_timer(std::move(name));}) |
| shamcomm_module | def ("get_timers", []() { return shamcomm::mpi::get_timers();}) |
| shamcomm_module | def ("mpi_timers_delta", [](std::unordered_map< std::string, f64 > start, std::unordered_map< std::string, f64 > end) { std::unordered_map< std::string, f64 > deltas{};for(auto &k :shamcomm::mpi::get_possible_keys()) { deltas[k]=shamalgs::collective::allreduce_max(end[k] - start[k]);} return deltas;}) |
Variables | |
| ON_PYTHON_INIT | |
Definition in file pyShamcomm.cpp.
| ON_PYTHON_INIT |
Definition at line 28 of file pyShamcomm.cpp.