hpx::get_initial_num_localities#
Defined in header hpx/runtime.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
std::uint32_t hpx::get_initial_num_localities()#
Return the number of localities which were registered at startup for the running application.
The function get_initial_num_localities returns the number of localities which were connected to the console at application startup.
Note
As long as ec is not pre-initialized to hpx::throws this function doesn’t throw but returns the result code using the parameter ec. Otherwise, it throws an instance of hpx::exception.