24#include <pybind11/stl.h>
26namespace shamsys::instance {
27 void register_pymodules(py::module &m) {
29 using namespace shamsys::instance;
33 [](std::string sycl_cfg) {
38 The init function for shamrock node instance
49 The close function for shamrock node instance
55 Get the name of the process
83 Return true if the node instance is initialized
96 "get_compute_device_properties",
98 auto &sched = shamsys::instance::get_compute_scheduler();
106 dict[
"name"] = prop.name;
107 dict[
"platform"] = prop.platform;
108 dict[
"global_mem_size"] = prop.global_mem_size;
109 dict[
"global_mem_cache_line_size"] = prop.global_mem_cache_line_size;
110 dict[
"global_mem_cache_size"] = prop.global_mem_cache_size;
111 dict[
"local_mem_size"] = prop.local_mem_size;
112 dict[
"max_compute_units"] = prop.max_compute_units;
113 dict[
"max_mem_alloc_size_dev"] = prop.max_mem_alloc_size_dev;
114 dict[
"max_mem_alloc_size_host"] = prop.max_mem_alloc_size_host;
115 dict[
"mem_base_addr_align"] = prop.mem_base_addr_align;
124 Get the properties of the compute device
128 "get_microbench_results",
133 Get the microbench results
Header file describing a Node Instance.
void init_sycl_mpi(std::string search_key, MPIInitInfo mpi_info)
Start SYCL & MPI.
bool is_initialized()
to check whether the NodeInstance is initialized
void close()
close the NodeInstance Aka : Finalize both MPI & SYCL
Provide information about MPI capabilities.
std::string backend_name(Backend b)
Returns the name of the given backend.
std::string vendor_name(Vendor v)
Returns the name of the given vendor.
std::string device_type_name(DeviceType t)
Returns the name of the given device type.
T & get_check_ref(const std::unique_ptr< T > &ptr, SourceLocation loc=SourceLocation())
Takes a std::unique_ptr and returns a reference to the object it holds. It throws a std::runtime_erro...
char ** get_argv()
Get the command line arguments.
int get_argc()
Get the number of command line arguments.
i32 world_rank()
Gives the rank of the current process in the MPI communicator.
i32 world_size()
Gives the size of the MPI communicator.
std::string get_process_name()
Get the process name.
const std::unordered_map< std::string, double > & get_microbench_results()
Get the microbench results.
Pybind11 include and definitions.
Struct containing MPI Init informations Usage.
void Barrier(MPI_Comm comm)
MPI wrapper for MPI_Barrier.