![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shambase/SourceLocation.hpp"#include "shambase/exception.hpp"#include "shambase/memory.hpp"#include "shambase/stacktrace.hpp"#include "shambase/string.hpp"#include "shamalgs/collective/gather_str.hpp"#include "shamalgs/collective/reduction.hpp"#include "shambackends/Device.hpp"#include "shambackends/DeviceScheduler.hpp"#include "shambackends/SyclMpiTypes.hpp"#include "shambackends/comm/CommunicationBuffer.hpp"#include "shambackends/math.hpp"#include "shambackends/sycl_utils.hpp"#include "shambackends/typeAliasVec.hpp"#include "shamcmdopt/cmdopt.hpp"#include "shamcmdopt/env.hpp"#include "shamcmdopt/tty.hpp"#include "shamcomm/local_rank.hpp"#include "shamcomm/logs.hpp"#include "shamcomm/mpi.hpp"#include "shamcomm/mpiInfo.hpp"#include "shamcomm/worldInfo.hpp"#include "shamsys/MpiDataTypeHandler.hpp"#include "shamsys/MpiWrapper.hpp"#include "shamsys/NodeInstance.hpp"#include "shamsys/change_log_format.hpp"#include "shamsys/device_select.hpp"#include "shamsys/for_each_device.hpp"#include "shamsys/legacy/log.hpp"#include "shamsys/legacy/sycl_mpi_interop.hpp"#include <memory>#include <optional>#include <stdexcept>#include <string>
Include dependency graph for NodeInstance.cpp:Go to the source code of this file.
Namespaces | |
| namespace | shamsys |
| namespace for the system handling | |
Variables | |
| bool | syclinit::initialized = false |
| std::shared_ptr< sham::Device > | syclinit::device_compute |
| std::shared_ptr< sham::Device > | syclinit::device_alt |
| std::shared_ptr< sham::DeviceContext > | syclinit::ctx_compute |
| std::shared_ptr< sham::DeviceContext > | syclinit::ctx_alt |
| std::shared_ptr< sham::DeviceScheduler > | syclinit::sched_compute |
| std::shared_ptr< sham::DeviceScheduler > | syclinit::sched_alt |
| u32 | shamsys::instance::compute_queue_eu_count = 64 |
| auto | shamsys::instance::init_strategy |
Definition in file NodeInstance.cpp.
| std::string syclinit::callback_mem_perf_info | ( | ) |
Definition at line 109 of file NodeInstance.cpp.
| 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:| void syclinit::finalize | ( | void | ) |
Definition at line 147 of file NodeInstance.cpp.
| 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.
| 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 syclinit::init_device_scheduling | ( | ) |
Definition at line 116 of file NodeInstance.cpp.
| void syclinit::init_queues | ( | std::string | search_key | ) |
Definition at line 135 of file NodeInstance.cpp.
| 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_info | ( | const sycl::device & | Device | ) |
Definition at line 384 of file NodeInstance.cpp.
| void shamsys::instance::details::print_device_list | ( | ) |
Definition at line 53 of file NodeInstance.cpp.
| void shamsys::instance::print_device_list | ( | ) |
Definition at line 391 of file NodeInstance.cpp.
| void shamsys::instance::tmp::print_device_list_debug | ( | ) |
Definition at line 207 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:| void shamsys::instance::start_sycl_auto | ( | std::string | search_key | ) |
Definition at line 229 of file NodeInstance.cpp.
| u32 shamsys::instance::compute_queue_eu_count = 64 |
Definition at line 163 of file NodeInstance.cpp.
| std::shared_ptr<sham::DeviceContext> syclinit::ctx_alt |
Definition at line 104 of file NodeInstance.cpp.
| std::shared_ptr<sham::DeviceContext> syclinit::ctx_compute |
Definition at line 103 of file NodeInstance.cpp.
| std::shared_ptr<sham::Device> syclinit::device_alt |
Definition at line 101 of file NodeInstance.cpp.
| std::shared_ptr<sham::Device> syclinit::device_compute |
Definition at line 100 of file NodeInstance.cpp.
| auto shamsys::instance::init_strategy |
Definition at line 295 of file NodeInstance.cpp.
| bool syclinit::initialized = false |
Definition at line 98 of file NodeInstance.cpp.
| std::shared_ptr<sham::DeviceScheduler> syclinit::sched_alt |
Definition at line 107 of file NodeInstance.cpp.
| std::shared_ptr<sham::DeviceScheduler> syclinit::sched_compute |
Definition at line 106 of file NodeInstance.cpp.