File: node154.html

package info (click to toggle)
scalapack-doc 1.5-11
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 10,336 kB
  • ctags: 4,931
  • sloc: makefile: 47; sh: 18
file content (81 lines) | stat: -rw-r--r-- 5,455 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>Error Handling in the PBLAS</TITLE>
<META NAME="description" CONTENT="Error Handling in the PBLAS">
<META NAME="keywords" CONTENT="slug">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="slug.css">
</HEAD>
<BODY LANG="EN" >
 <A NAME="tex2html4139" HREF="node155.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://www.netlib.org/utk/icons/next_motif.gif"></A> <A NAME="tex2html4137" HREF="node145.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://www.netlib.org/utk/icons/up_motif.gif"></A> <A NAME="tex2html4131" HREF="node153.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://www.netlib.org/utk/icons/previous_motif.gif"></A> <A NAME="tex2html4141" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="http://www.netlib.org/utk/icons/contents_motif.gif"></A> <A NAME="tex2html4142" HREF="node190.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="http://www.netlib.org/utk/icons/index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html4140" HREF="node155.html">Error Handling in the </A>
<B>Up:</B> <A NAME="tex2html4138" HREF="node145.html">Troubleshooting</A>
<B> Previous:</B> <A NAME="tex2html4132" HREF="node153.html">Wrong Results</A>
<BR> <P>
<H1><A NAME="SECTION04770000000000000000">Error Handling in the PBLAS</A></H1>
<P>
<A NAME="6333">&#160;</A>
<P>
If a PBLAS routine is called with an invalid value for
any of its arguments, it must report the fact
and terminate the execution of the program. In the
model implementation, each routine, on detecting an
error, calls a common error-handling PBLAS routine<A NAME="6334">&#160;</A><A NAME="6335">&#160;</A>,
passing to it the current BLACS
context, the name of the routine and the number of
the first argument that is in error. If an error is
detected in the <IMG WIDTH=20 HEIGHT=32 ALIGN=MIDDLE ALT="tex2html_wrap_inline19432" SRC="img736.gif"> entry of a descriptor array,
which is the <IMG WIDTH=17 HEIGHT=15 ALIGN=BOTTOM ALT="tex2html_wrap_inline19434" SRC="img737.gif"> argument in the parameter list, the
number passed to the PBLAS error-handler routine has been arbitrarily
chosen to be <IMG WIDTH=76 HEIGHT=25 ALIGN=MIDDLE ALT="tex2html_wrap_inline19471" SRC="img738.gif">. This allows the user to
distinguish an error on a descriptor entry from an
error on a scalar argument. For efficiency purposes,
the PBLAS routines performs only a local validity
check of their argument list. If an error is detected
in at least one process of the current context, the
program execution is stopped.
<P>
A global validity check of the input arguments passed
to a PBLAS routine must be performed in the higher-level
calling procedure. To understand the need and cost of
global checking, as well as the reason why this type
of checking is not performed in the PBLAS, consider
the following example. The value of a global input
argument is legal but differs from one process to
another. The results are unpredictable. In order to
detect this kind of error situation, a synchronization
point would be necessary, which may result in a
significant performance degradation. Since every
process must call the same routine to perform the
desired operation successfully, it is natural and
safe to restrict somewhat the amount of checking
operations performed in the PBLAS routines.
<P>
Specialized implementations may call system-specific
exception-handling facilities, either via an auxiliary
routine for error handling or directly from the routine.
In addition, the testing programs can take advantage
of this exception handling mechanism by simulating
specific erroneous input argument lists and then
verifying that particular errors are correctly
detected.
<P>
For complete details on the specification of all routines, please
refer to&nbsp;[<A HREF="node189.html#lawn100">26</A>].  Appendix&nbsp;<A HREF="node184.html#chapqrefpblas">D.2</A> contains the
Quick Reference Guide to the PBLAS.  An <EM>html</EM> version of this
Quick Reference Guide, along with the leading comments from each
of the routines, is available on the ScaLAPACK homepage.
<P>
<HR><A NAME="tex2html4139" HREF="node155.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://www.netlib.org/utk/icons/next_motif.gif"></A> <A NAME="tex2html4137" HREF="node145.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://www.netlib.org/utk/icons/up_motif.gif"></A> <A NAME="tex2html4131" HREF="node153.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://www.netlib.org/utk/icons/previous_motif.gif"></A> <A NAME="tex2html4141" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="http://www.netlib.org/utk/icons/contents_motif.gif"></A> <A NAME="tex2html4142" HREF="node190.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="http://www.netlib.org/utk/icons/index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html4140" HREF="node155.html">Error Handling in the </A>
<B>Up:</B> <A NAME="tex2html4138" HREF="node145.html">Troubleshooting</A>
<B> Previous:</B> <A NAME="tex2html4132" HREF="node153.html">Wrong Results</A>
<P><ADDRESS>
<I>Susan Blackford <BR>
Tue May 13 09:21:01 EDT 1997</I>
</ADDRESS>
</BODY>
</HTML>