Skip to content

Commit

Permalink
Provide static initializers for PMIx structs
Browse files Browse the repository at this point in the history
Programs that utilize PMIx structures benefit from
being provided with static initializers by which global
variables can be safely declared.

Signed-off-by: Ralph Castain <[email protected]>
  • Loading branch information
rhc54 committed Jan 17, 2022
1 parent dfe7e41 commit 30e87f3
Show file tree
Hide file tree
Showing 7 changed files with 266 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Chap_API_Data_Mgmt.tex
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ \section{Support Macros}

\ac{PMIx} provides a set of convenience macros for creating, initiating, and releasing data buffers.

%%%%
\littleheader{Static initializer for the data buffer structure}
\declaremacro{PMIX_DATA_BUFFER_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_data_buffer_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_DATA_BUFFER_STATIC_INIT
\end{codepar}
\cspecificend


%%%%%%%%%%%
\littleheader{\code{PMIX_DATA_BUFFER_CREATE}}
\declaremacro{PMIX_DATA_BUFFER_CREATE}
Expand Down
56 changes: 56 additions & 0 deletions Chap_API_Fabric.tex
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ \subsection{Fabric endpoint support macros}

The following macros are provided to support the \refstruct{pmix_endpoint_t} structure.

%%%%
\littleheader{Static initializer for the endpoint structure}
\declaremacro{PMIX_ENDPOINT_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_endpoint_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_ENDPOINT_STATIC_INIT
\end{codepar}
\cspecificend


%%%%
\littleheader{Initialize the endpoint structure}
\declaremacro{PMIX_ENDPOINT_CONSTRUCT}
Expand Down Expand Up @@ -227,6 +241,20 @@ \subsection{Fabric coordinate support macros}

The following macros are provided to support the \refstruct{pmix_coord_t} structure.

%%%%
\littleheader{Static initializer for the coord structure}
\declaremacro{PMIX_COORD_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_coord_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_COORD_STATIC_INIT
\end{codepar}
\cspecificend


%%%%
\littleheader{Initialize the coord structure}
\declaremacro{PMIX_COORD_CONSTRUCT}
Expand Down Expand Up @@ -332,6 +360,20 @@ \subsection{Fabric geometry support macros}

The following macros are provided to support the \refstruct{pmix_geometry_t} structure.

%%%%
\littleheader{Static initializer for the geometry structure}
\declaremacro{PMIX_GEOMETRY_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_geometry_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_GEOMETRY_STATIC_INIT
\end{codepar}
\cspecificend


%%%%
\littleheader{Initialize the geometry structure}
\declaremacro{PMIX_GEOMETRY_CONSTRUCT}
Expand Down Expand Up @@ -546,6 +588,20 @@ \subsection{Fabric registration structure}

\optattrend

%%%%
\subsubsection{Static initializer for the fabric structure}
\declaremacro{PMIX_FABRIC_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_fabric_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_FABRIC_STATIC_INIT
\end{codepar}
\cspecificend


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsubsection{Initialize the fabric structure}
\declaremacro{PMIX_FABRIC_CONSTRUCT}
Expand Down
42 changes: 42 additions & 0 deletions Chap_API_Proc_Mgmt.tex
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,20 @@ \subsection{Application Structure}
\subsubsection{App structure support macros}
The following macros are provided to support the \refstruct{pmix_app_t} structure.
%%%%
\littleheader{Static initializer for the app structure}
\declaremacro{PMIX_APP_STATIC_INIT}
Provide a static initializer for the \refstruct{pmix_app_t} fields.
\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_APP_STATIC_INIT
\end{codepar}
\cspecificend
%%%%%%%%%%%
\littleheader{Initialize the app structure}
\declaremacro{PMIX_APP_CONSTRUCT}
Expand Down Expand Up @@ -1164,6 +1178,20 @@ \subsubsection{Topology support macros}
The following macros support the \refstruct{pmix_topology_t} structure.
%%%%
\littleheader{Static initializer for the topology structure}
\declaremacro{PMIX_TOPOLOGY_STATIC_INIT}
Provide a static initializer for the \refstruct{pmix_topology_t} fields.
\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_TOPOLOGY_STATIC_INIT
\end{codepar}
\cspecificend
\littleheader{Initialize the topology structure}
\declaremacro{PMIX_TOPOLOGY_CONSTRUCT}
Expand Down Expand Up @@ -1593,6 +1621,20 @@ \subsection{Device distance support macros}
The following macros are provided to support the \refstruct{pmix_device_distance_t} structure.
%%%%
\littleheader{Static initializer for the device distance structure}
\declaremacro{PMIX_DEVICE_DIST_STATIC_INIT}
Provide a static initializer for the \refstruct{pmix_device_distance_t} fields.
\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_DEVICE_DIST_STATIC_INIT
\end{codepar}
\cspecificend
%%%%
\littleheader{Initialize the device distance structure}
\declaremacro{PMIX_DEVICE_DIST_CONSTRUCT}
Expand Down
14 changes: 14 additions & 0 deletions Chap_API_Publish.tex
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,20 @@ \subsubsection{Lookup data structure support macros}

The following macros are provided to support the \refstruct{pmix_pdata_t} structure.

%%%%
\littleheader{Static initializer for the pdata structure}
\declaremacro{PMIX_LOOKUP_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_pdata_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_LOOKUP_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize the pdata structure}
\declaremacro{PMIX_PDATA_CONSTRUCT}

Expand Down
28 changes: 28 additions & 0 deletions Chap_API_Server.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,20 @@ \subsubsection{Attribute registration structure support macros}

The following macros are provided to support the \refstruct{pmix_regattr_t} structure.

%%%%
\littleheader{Static initializer for the regattr structure}
\declaremacro{PMIX_REGATTR_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_regattr_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_REGATTR_STATIC_INIT
\end{codepar}
\cspecificend


%%%%%%%%%%%
\littleheader{Initialize the regattr structure}
\declaremacro{PMIX_REGATTR_CONSTRUCT}
Expand Down Expand Up @@ -1850,6 +1864,20 @@ \subsubsection{Cpuset Structure}
\subsubsection{Cpuset support macros}
The following macros support the \refstruct{pmix_cpuset_t} structure.

%%%%
\littleheader{Static initializer for the cpuset structure}
\declaremacro{PMIX_CPUSET_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_cpuset_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_CPUSET_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize the cpuset structure}
\declaremacro{PMIX_CPUSET_CONSTRUCT}

Expand Down
98 changes: 98 additions & 0 deletions Chap_API_Struct.tex
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,20 @@ \subsection{Process Structure}
\subsubsection{Process structure support macros}
The following macros are provided to support the \refstruct{pmix_proc_t} structure.

%%%%
\littleheader{Static initializer for the proc structure}
\declaremacro{PMIX_PROC_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_proc_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_PROC_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize the proc structure}
\declaremacro{PMIX_PROC_CONSTRUCT}

Expand Down Expand Up @@ -852,6 +866,20 @@ \subsubsection{Process information structure support macros}

The following macros are provided to support the \refstruct{pmix_proc_info_t} structure.

%%%%
\littleheader{Static initializer for the proc info structure}
\declaremacro{PMIX_PROC_INFO_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_proc_info_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_PROC_INFO_STATIC_INIT
\end{codepar}
\cspecificend


%%%%
\littleheader{Initialize the process information structure}
\declaremacro{PMIX_PROC_INFO_CONSTRUCT}
Expand Down Expand Up @@ -1040,6 +1068,20 @@ \subsection{Value Structure}
\subsubsection{Value structure support macros}
The following macros are provided to support the \refstruct{pmix_value_t} structure.

%%%%
\littleheader{Static initializer for the value structure}
\declaremacro{PMIX_VALUE_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_value_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_VALUE_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize the value structure}
\declaremacro{PMIX_VALUE_CONSTRUCT}

Expand Down Expand Up @@ -1246,6 +1288,20 @@ \subsection{Info Structure}
\subsubsection{Info structure support macros}
The following macros are provided to support the \refstruct{pmix_info_t} structure.

%%%%
\littleheader{Static initializer for the info structure}
\declaremacro{PMIX_INFO_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_info_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_INFO_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize the info structure}
\declaremacro{PMIX_INFO_CONSTRUCT}

Expand Down Expand Up @@ -1706,6 +1762,20 @@ \subsubsection{Environmental variable support macros}

The following macros are provided to support the \refstruct{pmix_envar_t} structure.

%%%%
\littleheader{Static initializer for the envar structure}
\declaremacro{PMIX_ENVAR_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_envar_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_ENVAR_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize the envar structure}
\declaremacro{PMIX_ENVAR_CONSTRUCT}

Expand Down Expand Up @@ -1814,6 +1884,20 @@ \subsection{Byte Object Type}
\subsubsection{Byte object support macros}
The following macros support the \refstruct{pmix_byte_object_t} structure.

%%%%
\littleheader{Static initializer for the byte object structure}
\declaremacro{PMIX_BYTE_OBJECT_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_byte_object_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_BYTE_OBJECT_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize the byte object structure}
\declaremacro{PMIX_BYTE_OBJECT_CONSTRUCT}

Expand Down Expand Up @@ -1920,6 +2004,20 @@ \subsection{Data Array Structure}
\subsubsection{Data array support macros}
The following macros support the \refstruct{pmix_data_array_t} structure.

%%%%
\littleheader{Static initializer for the data array structure}
\declaremacro{PMIX_DATA_ARRAY_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_data_array_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_DATA_ARRAY_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize a data array structure}
\declaremacro{PMIX_DATA_ARRAY_CONSTRUCT}

Expand Down
14 changes: 14 additions & 0 deletions Chap_API_Sync_Access.tex
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,20 @@ \subsection{Query Structure}
\subsubsection{Query structure support macros}
The following macros are provided to support the \refstruct{pmix_query_t} structure.

%%%%
\littleheader{Static initializer for the query structure}
\declaremacro{PMIX_QUERY_STATIC_INIT}

Provide a static initializer for the \refstruct{pmix_query_t} fields.

\versionMarker{4.2}
\cspecificstart
\begin{codepar}
PMIX_QUERY_STATIC_INIT
\end{codepar}
\cspecificend


\littleheader{Initialize the query structure}
\declaremacro{PMIX_QUERY_CONSTRUCT}

Expand Down

0 comments on commit 30e87f3

Please sign in to comment.