You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cluster class generalizes the concept of an MPI group.
classCluster { public:// Returns some identifying name of the cluster std::string name(); // The number of nodes (MPI ranks) in the cluster size_type size(); // Is the current node in the cluster?boolhas_me(); // Get the current node Node me(); /// Get the number of network storage places this cluster has (these are things like network filesystems/// not node-local storage places) size_type n_storage(); /// Gets the i-th memory space Storage memory_space(size_type i); // Returns node i Node operator[](size_type i); // Collectives originating from all members going to one pointtemplate<template <typename> typename Container, typename OperationType> autoreduce(Container&& data, OperationType&& op, Node destination); template<template <typename> typename Container> autogather(Container&& data, Node destination); // Collectives originating from all members going to all memberstemplate<template <typename> typename Container, typename OperationType> autoreduce(Container&& data, OperationType&& op, Cluster destination); template<template <typename> typename Container> autogather(Container&& data, Cluster destination); // Standard output stream (lets all nodes in this cluster print) std::ostream stdout; // Standard error stream std::ostream stderr; };
Notes:
The actual implementation should probably create Node instances on the fly, rather than storing them.
Stream classes will need to properly account for MPI rank
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
Clusterclass generalizes the concept of an MPI group.Notes:
Nodeinstances on the fly, rather than storing them.Beta Was this translation helpful? Give feedback.
All reactions