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
|
<!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 BLACS</TITLE>
<META NAME="description" CONTENT="Error Handling in the BLACS">
<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="tex2html4151" HREF="node156.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://www.netlib.org/utk/icons/next_motif.gif"></A> <A NAME="tex2html4149" 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="tex2html4143" HREF="node154.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://www.netlib.org/utk/icons/previous_motif.gif"></A> <A NAME="tex2html4153" 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="tex2html4154" 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="tex2html4152" HREF="node156.html">BLACS Warning and Error </A>
<B>Up:</B> <A NAME="tex2html4150" HREF="node145.html">Troubleshooting</A>
<B> Previous:</B> <A NAME="tex2html4144" HREF="node154.html">Error Handling in the </A>
<BR> <P>
<H1><A NAME="SECTION04780000000000000000">Error Handling in the BLACS</A></H1>
<P>
<A NAME="6342"> </A>
<P>
This section describes the BLACS error-handling features. The BLACS error-handling behavior may be changed at compile time by using the C preprocessor
macro <TT>BlacsDebugLvl</TT>.
a call to BLACS_GET (see
[<A HREF="node189.html#lawn94">54</A>] for details) will help determine
what debug level the BLACS
are using.
<P>
If the BLACS are compiled with a BLACS debug level of 0, little
error checking is performed. A few critical items will be checked
(for instance, BLACS_GRIDINIT will still not allow the user to allocate a
process grid with more processes than there are available), but for
performance reasons, the BLACS will not check most of the parameters.
<P>
It is therefore highly recommended that users link their code to a BLACS
library compiled with debug level 1 while debugging their code. BLACS debug
level 1 mainly does parameter checking. A few other services are also
provided. For instance, users will be warned if a process sends a message
to itself. Having a process send to itself is legal, but it displays
poor performance and requires enough buffer space that it can occasionally
cause hangs for large messages. The BLACS therefore issue a warning when
this behavior is detected.
<P>
Many times, the debug level 0 code will simply hang, leaving the developer
without any clue as to what has gone wrong. This may be caused, for
instance, by trying to receive from a process that is not in the current
context. The debug level 1 BLACS can detect this type of user error, and
issue a (we hope helpful) message.
<P>
The BLACS issue three types of messages:
<P>
<OL>
<LI> <EM>BLACS warning</EM>: BLACS detect risky behavior, but attempt to correct
or ignore. Warning message is printed, and execution proceeds.
<LI> <EM>BLACS error</EM>: BLACS detects an error, prints an error message,
and kills the machine via a call to BLACS_ABORT.
<LI> <EM>System error</EM>: The BLACS receive an error message from the underlying
system, which is then passed on to the user, and the BLACS kills the machine.
</OL><BR> <HR>
<UL><A NAME="CHILD_LINKS"> </A>
<LI> <A NAME="tex2html4155" HREF="node156.html#SECTION04781000000000000000">BLACS Warning and Error Messages</A>
</UL>
<HR><A NAME="tex2html4151" HREF="node156.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://www.netlib.org/utk/icons/next_motif.gif"></A> <A NAME="tex2html4149" 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="tex2html4143" HREF="node154.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://www.netlib.org/utk/icons/previous_motif.gif"></A> <A NAME="tex2html4153" 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="tex2html4154" 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="tex2html4152" HREF="node156.html">BLACS Warning and Error </A>
<B>Up:</B> <A NAME="tex2html4150" HREF="node145.html">Troubleshooting</A>
<B> Previous:</B> <A NAME="tex2html4144" HREF="node154.html">Error Handling in the </A>
<P><ADDRESS>
<I>Susan Blackford <BR>
Tue May 13 09:21:01 EDT 1997</I>
</ADDRESS>
</BODY>
</HTML>
|