Skip to content

Commit 87d6470

Browse files
authored
Merge pull request #523 from rhc54/topic/errata
Errata: fix a couple of spots in server upcall functions
2 parents 4143cee + 2cbf923 commit 87d6470

File tree

4 files changed

+45
-46
lines changed

4 files changed

+45
-46
lines changed

Chap_API_Event.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ \section{Notification and Management}
4343
%
4444
\end{itemize}
4545

46-
Users can specify the callback order of a handler within its category at the time of registration.
47-
Users can specify that a given handler be executed before or after another target handler should both handlers appear in the event chain (the ordering is ignored if the other handler isn't included).
46+
Users can specify the callback order of a handler within its category at the time of registration.
47+
Users can specify that a given handler be executed before or after another target handler should both handlers appear in the event chain (the ordering is ignored if the other handler isn't included).
4848
The ordering is dictated by providing the event handler name of the target. The name must have been assigned when the target handler was registered.
4949
Note that ordering does not imply immediate relationships. For example, multiple handlers registered to be serviced after event handler \textit{A} will all be executed after \textit{A}, but are not guaranteed to be executed in any particular order amongst themselves.
5050

@@ -115,7 +115,7 @@ \subsection{\code{PMIx_Register_event_handler}}
115115
\end{itemize}
116116
\returnend
117117

118-
The callback function must not be executed prior to returning from the \ac{API}, and no events corresponding to this registration may be delivered prior to the completion of the registration callback function (\refarg{cbfunc}).
118+
No events corresponding to this registration may be delivered prior to the completion of the registration callback function (\refarg{cbfunc}).
119119

120120
\reqattrstart
121121
The following attributes are required to be supported by all \ac{PMIx} libraries:
@@ -507,7 +507,7 @@ \subsection{\code{PMIx_Notify_event}}
507507
%%%%
508508
\descr
509509

510-
Report an event for notification via any registered event handler. This function can be called by any \ac{PMIx} process, including application processes, \ac{PMIx} servers, and \ac{SMS} elements.
510+
Report an event for notification via any registered event handler. This function can be called by any \ac{PMIx} process, including application processes, \ac{PMIx} servers, and \ac{SMS} elements.
511511

512512
The \ac{PMIx} server calls this \ac{API} to report events it detected itself so that the host \ac{SMS} daemon can distribute and handle them, and to pass events given to it by its host down to any attached client processes for processing. Examples might include notification of the failure of another process, detection of an impending node failure due to rising temperatures, or an intent to preempt the application. Events may be locally generated or come from anywhere in the system.
513513

@@ -578,7 +578,7 @@ \subsubsection{Completion Callback Function Status Codes}
578578
\begin{constantdesc}
579579
%
580580
\declareconstitemvalue{PMIX_EVENT_ACTION_COMPLETE}{-334}
581-
Event handler: Action complete.
581+
Event handler: Action complete.
582582
\end{constantdesc}
583583
%
584584

Chap_API_Query.tex

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ \chapter{Query Operations}
66

77
This chapter presents mechanisms for generalized queries that
88
access information about the host environment and the system in general.
9-
The chapter presents the concept of a query followed by a detailed explanation
9+
The chapter presents the concept of a query followed by a detailed explanation
1010
of the query \acp{API} provided. The chapter compares the use of these \acp{API} with \refapi{PMIx_Get}. The chapter concludes with detailed information about how to use
1111
the query interface to access information about what \ac{PMIx} \acp{API} an implementation supports as well as what attributes each supported \ac{API} supports.
1212

1313
\section{PMIx_Query_info}
1414
As the level of interaction between applications and the host \ac{SMS} grows, so too does the need for the application to query the \ac{SMS} regarding its capabilities and state information. \ac{PMIx} provides a generalized query interface for this purpose, along with a set of standardized attribute keys to support a range of requests. This includes requests to determine the status of scheduling queues and active allocations, the scope of \ac{API} and attribute support offered by the \ac{SMS}, namespaces of active jobs, location and information about a job's processes, and information regarding available resources.
1515

16-
An example use-case for the \refapi{PMIx_Query_info_nb} \ac{API} is to ensure clean job completion. Time-shared systems frequently impose maximum run times when assigning jobs to resource allocations. To shut down gracefully (e.g., to write a checkpoint before termination) it is necessary for an application to periodically query the resource manager for the time remaining in its allocation. This is especially true on systems for which allocation times may be shortened or lengthened from the original time limit. Many resource managers provide \acp{API} to dynamically obtain this information, but each \ac{API} is specific to the resource manager.
17-
\ac{PMIx} supports this use-case by defining an attribute key (\refattr{PMIX_TIME_REMAINING}) that can be used with the \refapi{PMIx_Query_info_nb} interface to obtain the number of seconds remaining in the current job allocation.
16+
An example use-case for the \refapi{PMIx_Query_info_nb} \ac{API} is to ensure clean job completion. Time-shared systems frequently impose maximum run times when assigning jobs to resource allocations. To shut down gracefully (e.g., to write a checkpoint before termination) it is necessary for an application to periodically query the resource manager for the time remaining in its allocation. This is especially true on systems for which allocation times may be shortened or lengthened from the original time limit. Many resource managers provide \acp{API} to dynamically obtain this information, but each \ac{API} is specific to the resource manager.
17+
\ac{PMIx} supports this use-case by defining an attribute key (\refattr{PMIX_TIME_REMAINING}) that can be used with the \refapi{PMIx_Query_info_nb} interface to obtain the number of seconds remaining in the current job allocation.
1818

19-
\ac{PMIx} sometimes provides multiple methods by which an application can obtain information or services. For this example,
20-
note that one could alternatively use the \refapi{PMIx_Register_event_handler} \ac{API} to register for an event indicating incipient job termination, and then use the \refapi{PMIx_Job_control_nb} \ac{API} to request that the host \ac{SMS} generate an event a specified amount of time prior to reaching the maximum run time.
19+
\ac{PMIx} sometimes provides multiple methods by which an application can obtain information or services. For this example,
20+
note that one could alternatively use the \refapi{PMIx_Register_event_handler} \ac{API} to register for an event indicating incipient job termination, and then use the \refapi{PMIx_Job_control_nb} \ac{API} to request that the host \ac{SMS} generate an event a specified amount of time prior to reaching the maximum run time.
2121

2222
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2323
\subsection{Query Structure}
@@ -105,7 +105,7 @@ \subsection{\code{PMIx_Query_info}}
105105
\pasteAttributeItem{PMIX_HOST_ATTRIBUTES}
106106
\pasteAttributeItem{PMIX_TOOL_ATTRIBUTES}
107107

108-
Note that inclusion of both the \refattr{PMIX_PROCID} directive and either the \refattr{PMIX_NSPACE} or the \refattr{PMIX_RANK} attribute will return a \refconst{PMIX_ERR_BAD_PARAM} result, and that the inclusion of a process identifier must apply to all keys in that \refstruct{pmix_query_t}. Queries for information on multiple specific processes therefore requires submitting multiple \refstruct{pmix_query_t} structures, each referencing one process. Directives which are not applicable to a key are ignored.
108+
Note that inclusion of both the \refattr{PMIX_PROCID} directive and either the \refattr{PMIX_NSPACE} or the \refattr{PMIX_RANK} attribute will return a \refconst{PMIX_ERR_BAD_PARAM} result, and that the inclusion of a process identifier must apply to all keys in that \refstruct{pmix_query_t}. Queries for information on multiple specific processes therefore requires submitting multiple \refstruct{pmix_query_t} structures, each referencing one process. Directives which are not applicable to a key are ignored.
109109

110110
% Use of pmix_server_query_fn is covered in server interfaces chapter
111111
\reqattrend
@@ -187,8 +187,7 @@ \subsection{\code{PMIx_Query_info_nb}}
187187
\end{arglist}
188188

189189
A successful return indicates that the request has been accepted for processing.
190-
The provided callback function will only be executed upon successful return of the operation.
191-
Note that the library must not invoke the callback function prior to returning from the \ac{API}.
190+
The provided callback function will only be executed upon successful completion of the operation.
192191

193192
\returnsimple
194193

@@ -228,7 +227,7 @@ \subsection{\code{PMIx_Query_info_nb}}
228227
\pasteAttributeItem{PMIX_HOST_ATTRIBUTES}
229228
\pasteAttributeItem{PMIX_TOOL_ATTRIBUTES}
230229

231-
Note that inclusion of both the \refattr{PMIX_PROCID} directive and either the \refattr{PMIX_NSPACE} or the \refattr{PMIX_RANK} attribute will return a \refconst{PMIX_ERR_BAD_PARAM} result, and that the inclusion of a process identifier must apply to all keys in that \refstruct{pmix_query_t}. Queries for information on multiple specific processes therefore requires submitting multiple \refstruct{pmix_query_t} structures, each referencing one process. Directives which are not applicable to a key are ignored.
230+
Note that inclusion of both the \refattr{PMIX_PROCID} directive and either the \refattr{PMIX_NSPACE} or the \refattr{PMIX_RANK} attribute will return a \refconst{PMIX_ERR_BAD_PARAM} result, and that the inclusion of a process identifier must apply to all keys in that \refstruct{pmix_query_t}. Queries for information on multiple specific processes therefore requires submitting multiple \refstruct{pmix_query_t} structures, each referencing one process. Directives which are not applicable to a key are ignored.
232231

233232
% Use of pmix_server_query_fn is covered in server interfaces chapter
234233
\reqattrend
@@ -267,7 +266,7 @@ \subsection{\code{PMIx_Query_info_nb}}
267266

268267
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
269268
%% NOTE: This is not used anywhere. If this is supposed to be returned by
270-
%% the query API's, it was never indicated. They currently return
269+
%% the query API's, it was never indicated. They currently return
271270
%% PMIX_ERR_PARTIAL_SUCCESS
272271
%%\subsection{Query-specific constants}
273272
%%\label{api:struct:constants:query}
@@ -384,7 +383,7 @@ \subsection{Query keys}
384383
\subsection{Query attributes}
385384
\label{api:struct:attributes:query}
386385

387-
Attributes used to direct behavior of the
386+
Attributes used to direct behavior of the
388387
\refapi{PMIx_Query_info} and \refapi{PMIx_Query_info_nb} \acp{API}:
389388

390389
\declareAttribute{PMIX_QUERY_RESULTS}{"pmix.qry.res"}{pmix_data_array_t}{

0 commit comments

Comments
 (0)