![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Header file describing a Node Instance. More...
#include "shambase/aliases_int.hpp"#include "shambackends/DeviceScheduler.hpp"#include "shamcomm/mpiInfo.hpp"#include "shamcomm/worldInfo.hpp"#include <sycl/sycl.hpp>#include <vector>
Include dependency graph for NodeInstance.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | shamsys::instance::ShamsysInstanceException |
| Exception type for the NodeInstance. More... | |
| struct | shamsys::instance::SyclInitInfo |
| Struct containing Sycl Init informations Usage. More... | |
| struct | shamsys::instance::MPIInitInfo |
| Struct containing MPI Init informations Usage. More... | |
Namespaces | |
| namespace | shamsys |
| namespace for the system handling | |
Header file describing a Node Instance.
A NodeInstance is a wrapper to perform a combined initialisation of both SYCL & MPI. Essentially it handle the MPI process and corresponding accelerators
Definition in file NodeInstance.hpp.
| void shamsys::instance::check_dgpu_available | ( | ) |
Definition at line 401 of file NodeInstance.cpp.
| void shamsys::instance::close | ( | ) |
close the NodeInstance Aka : Finalize both MPI & SYCL
Definition at line 359 of file NodeInstance.cpp.
Here is the call graph for this function:| void shamsys::instance::close_mpi | ( | ) |
Finalize MPI.
Definition at line 345 of file NodeInstance.cpp.
Here is the call graph for this function:| sycl::queue & shamsys::instance::get_alt_queue | ( | u32 | id = 0 | ) |
Get the alternative queue.
| id |
Definition at line 372 of file NodeInstance.cpp.
Here is the call graph for this function:| sham::DeviceScheduler & shamsys::instance::get_alt_scheduler | ( | ) |
Definition at line 376 of file NodeInstance.cpp.
| std::shared_ptr< sham::DeviceScheduler > shamsys::instance::get_alt_scheduler_ptr | ( | ) |
Definition at line 382 of file NodeInstance.cpp.
|
inline |
Definition at line 127 of file NodeInstance.hpp.
| sycl::queue & shamsys::instance::get_compute_queue | ( | u32 | id = 0 | ) |
| id |
Definition at line 370 of file NodeInstance.cpp.
Here is the call graph for this function:Definition at line 165 of file NodeInstance.cpp.
| sham::DeviceScheduler & shamsys::instance::get_compute_scheduler | ( | ) |
Definition at line 374 of file NodeInstance.cpp.
| std::shared_ptr< sham::DeviceScheduler > shamsys::instance::get_compute_scheduler_ptr | ( | ) |
Definition at line 378 of file NodeInstance.cpp.
| void shamsys::instance::init | ( | int | argc, |
| char * | argv[] | ||
| ) |
initialize the NodeInstance from command line args in the main
Definition at line 316 of file NodeInstance.cpp.
Here is the call graph for this function:| void shamsys::instance::init_sycl_mpi | ( | std::string | search_key, |
| MPIInitInfo | mpi_info | ||
| ) |
Start SYCL & MPI.
Definition at line 300 of file NodeInstance.cpp.
Here is the call graph for this function:| bool shamsys::instance::is_initialized | ( | ) |
to check whether the NodeInstance is initialized
Definition at line 167 of file NodeInstance.cpp.
Here is the call graph for this function:| void shamsys::instance::print_device_list | ( | ) |
Definition at line 391 of file NodeInstance.cpp.
| void shamsys::instance::print_mpi_capabilities | ( | ) |
Definition at line 397 of file NodeInstance.cpp.
| void shamsys::instance::print_mpi_comm_info | ( | ) |
Definition at line 399 of file NodeInstance.cpp.
| void shamsys::instance::print_queue_map | ( | ) |
Print SYCL queue map.
Definition at line 169 of file NodeInstance.cpp.
Here is the call graph for this function:| void shamsys::instance::start_mpi | ( | MPIInitInfo | mpi_info | ) |
Start MPI.
Definition at line 245 of file NodeInstance.cpp.
Here is the call graph for this function: