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
|
<!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>Simplifying Assumptions Used in Example Program</TITLE>
<META NAME="description" CONTENT="Simplifying Assumptions Used in Example Program">
<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="tex2html2483" HREF="node30.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://www.netlib.org/utk/icons/next_motif.gif"></A> <A NAME="tex2html2481" HREF="node28.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://www.netlib.org/utk/icons/up_motif.gif"></A> <A NAME="tex2html2475" HREF="node28.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://www.netlib.org/utk/icons/previous_motif.gif"></A> <A NAME="tex2html2485" 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="tex2html2486" 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="tex2html2484" HREF="node30.html">Notation Used in Example </A>
<B>Up:</B> <A NAME="tex2html2482" HREF="node28.html">Details of Example Program </A>
<B> Previous:</B> <A NAME="tex2html2476" HREF="node28.html">Details of Example Program </A>
<BR> <P>
<H2><A NAME="SECTION04231000000000000000">Simplifying Assumptions Used in Example Program</A></H2>
<P>
Several simplifying assumptions and/or restrictions have been made in
this example program in order to present the most basic example for the user:
<UL>
<LI>
We have chosen a small block size, <I>MB</I>=<I>NB</I>=2; however,
this should not be regarded
as a typical choice of block size in a user's application. For best
performance, a choice of <I>MB</I>=<I>NB</I>=32 or <I>MB</I>=<I>NB</I>=64 is more suitable. Refer to
Chapter <A HREF="node104.html#chapperformance">5</A> for further details.
<LI>
A simplistic subroutine MATINIT is used to assign matrices
<I>A</I> and <I>B</I> to the process grid. Note that this subroutine hardcodes
the local arrays on each process and does not perform communication.
It is not a ScaLAPACK routine and is provided only for the purposes
of this example program.
<LI>
We assume <I>RSRC</I>=<I>CSRC</I>=0<A NAME="764"> </A>,
and thus both
matrices <I>A</I> and <I>B</I> are distributed across the process grid starting
with process (0,0). In general, however, any process in the current
process grid can be assigned to receive the first element of the
distributed matrix.
<LI>
We have set the local leading dimension of local array <I>A</I> and the
local leading dimension of local array <I>B</I> to be
the same over all process rows in the process grid.
The variable <I>MXLLDA</I> is equal to the maximum local leading dimension for
array <I>A</I> (denoted <IMG WIDTH=58 HEIGHT=12 ALIGN=BOTTOM ALT="tex2html_wrap_inline12116" SRC="img17.gif">) over all process
rows. Likewise, variable <I>MXLLDB</I> is the maximum local leading dimension for
array <I>B</I> (denoted <IMG WIDTH=58 HEIGHT=12 ALIGN=BOTTOM ALT="tex2html_wrap_inline12120" SRC="img18.gif">) over all process rows. In general, however,
the local leading dimension of the local array can differ from
process to process in the process grid.
<LI>
The system is solved
by using the entire matrix <I>A</I>, as opposed to a submatrix of <I>A</I>, so the global
indices, denoted by <I>IA</I>, <I>JA</I>, <I>IB</I>, and
<I>JB</I><A NAME="765"> </A><A NAME="766"> </A><A NAME="767"> </A><A NAME="768"> </A><A NAME="769"> </A>,
into the matrix are equal to 1. Refer
to figure <A HREF="node79.html#figview">4.7</A> in section <A HREF="node79.html#subsecargdesc">4.3.5</A>
for more information on the representation of global addressing into a
distributed submatrix.
</UL><HR><A NAME="tex2html2483" HREF="node30.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://www.netlib.org/utk/icons/next_motif.gif"></A> <A NAME="tex2html2481" HREF="node28.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://www.netlib.org/utk/icons/up_motif.gif"></A> <A NAME="tex2html2475" HREF="node28.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://www.netlib.org/utk/icons/previous_motif.gif"></A> <A NAME="tex2html2485" 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="tex2html2486" 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="tex2html2484" HREF="node30.html">Notation Used in Example </A>
<B>Up:</B> <A NAME="tex2html2482" HREF="node28.html">Details of Example Program </A>
<B> Previous:</B> <A NAME="tex2html2476" HREF="node28.html">Details of Example Program </A>
<P><ADDRESS>
<I>Susan Blackford <BR>
Tue May 13 09:21:01 EDT 1997</I>
</ADDRESS>
</BODY>
</HTML>
|