File: node34.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 (71 lines) | stat: -rw-r--r-- 3,891 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
<!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>Initialize the Process Grid</TITLE>
<META NAME="description" CONTENT="Initialize the Process Grid">
<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="tex2html2543" HREF="node35.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://www.netlib.org/utk/icons/next_motif.gif"></A> <A NAME="tex2html2541" HREF="node33.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://www.netlib.org/utk/icons/up_motif.gif"></A> <A NAME="tex2html2535" HREF="node33.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://www.netlib.org/utk/icons/previous_motif.gif"></A> <A NAME="tex2html2545" 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="tex2html2546" 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="tex2html2544" HREF="node35.html">Distribute the Matrix on </A>
<B>Up:</B> <A NAME="tex2html2542" HREF="node33.html">Four Basic Steps Required </A>
<B> Previous:</B> <A NAME="tex2html2536" HREF="node33.html">Four Basic Steps Required </A>
<BR> <P>
<H2><A NAME="SECTION04241000000000000000">Initialize the Process Grid</A></H2>
<A NAME="797">&#160;</A>
<P>
A call to the ScaLAPACK TOOLS routine SL_INIT initializes
the process grid.  This routine initializes a <IMG WIDTH=57 HEIGHT=25 ALIGN=MIDDLE ALT="tex2html_wrap_inline12182" SRC="img25.gif">
(denoted <IMG WIDTH=165 HEIGHT=22 ALIGN=MIDDLE ALT="tex2html_wrap_inline12614" SRC="img51.gif"> in the source code)
process grid by using a row-major ordering of the processes, and obtains
a default system <EM>context</EM><A NAME="801">&#160;</A>.
For more information on contexts, refer to section&nbsp;<A HREF="node71.html#secblacscontext">4.1.2</A>
or [<A HREF="node189.html#lawn94">54</A>].
<P>
The user can then query the process
grid to identify each process's coordinates
(<I>MYROW</I>,<I>MYCOL</I>)<A NAME="804">&#160;</A><A NAME="805">&#160;</A>)<A NAME="806">&#160;</A><A NAME="807">&#160;</A> via a call
to BLACS_GRIDINFO<A NAME="808">&#160;</A>.
<P>
A typical code fragment (as obtained from the example program in
section&nbsp;<A HREF="node28.html#example1">2.3</A>) to accomplish this task would be the following:
<PRE>      CALL SL_INIT( ICTXT, NPROW, NPCOL )
      CALL BLACS_GRIDINFO( ICTXT, NPROW, NPCOL, MYROW, MYCOL )</PRE>
<P>
where details of the calling sequence for SL_INIT are provided below.
Detailed descriptions of calling sequences
for each BLACS routine can be found in [<A HREF="node189.html#lawn94">54</A>] and
Appendix&nbsp;<A HREF="node185.html#chapqrefblacs">D.3</A>.  <EM>Note
that underlined arguments in the calling sequence denote output arguments</EM>.
<P>
<UL>
<LI> SL_INIT( <U>, NPROW, NPCOL )<BR> 
<A NAME="815">&#160;</A>
<DL COMPACT><DT>ICTXT
<DD> (global output) INTEGER <BR> 
ICTXT specifies the BLACS context identifying the created process grid.
<DT>NPROW
<DD> (global input) INTEGER <BR> 
NPROW specifies the number of process rows in the process grid to
be created.
<DT>NPCOL
<DD> (global input) INTEGER <BR> 
NPCOL specifies the number of process columns in the process grid
to be created.
<P>
</DL></UL></U>
<P>
For a description of these variables names, please refer to the
example program notation in section&nbsp;<A HREF="node28.html#example1">2.3</A> and&nbsp;[<A HREF="node189.html#lawn94">54</A>].
<P>
<BR> <HR>
<P><ADDRESS>
<I>Susan Blackford <BR>
Tue May 13 09:21:01 EDT 1997</I>
</ADDRESS>
</BODY>
</HTML>