We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df7eee3 commit a3c0b5aCopy full SHA for a3c0b5a
1 file changed
mplr/impl/info.hpp
@@ -131,6 +131,15 @@ namespace mplr {
131
return {};
132
}
133
134
+ /// Gets the native MPI_Info handle.
135
+ /// \return The native MPI_Info handle.
136
+ /// \note This function returns a non-owning handle to the underlying MPI info.
137
+ [[nodiscard]] MPI_Info native_handle() const {
138
+ if (info_ == MPI_INFO_NULL)
139
+ MPI_Info_create(&info_);
140
+ return info_;
141
+ }
142
+
143
friend class impl::base_communicator;
144
friend class communicator;
145
friend class file;
0 commit comments