\batchmode

\documentclass[twoside]{phstyle}
\makeatletter
\usepackage{graphics} 
\usepackage{epsfig}





                                                       

\makeindex






\newcommand {\be}{\begin{equation}}

\newcommand {\ee}{\end{equation}}

\newcommand {\dst}{\everymath{\displaystyle}}

\newcommand {\Nuclide}[2]{${}^{#2}$#1}

\renewcommand {\SS}[1]{${}^{#1}$}

\newcommand {\STRUT}{\rule{0in}{3ex}}

\newcommand {\dotprod}{{\scriptscriptstyle \stackrel{\bullet}{{}}}}

\def\putfig#1#2{\mbox{ \def  \epsfsize##1##2{#2##1} \epsfbox{#1}}}

\makeatother
\newenvironment{tex2html_wrap}{}{}
\newwrite\lthtmlwrite
\def\lthtmltypeout#1{{\let\protect\string\immediate\write\lthtmlwrite{#1}}}%
\newbox\sizebox
\begin{document}
\pagestyle{empty}
\setcounter{page}{1}
\stepcounter{chapter}
\stepcounter{section}
\stepcounter{section}
\stepcounter{subsection}
{\newpage
\clearpage
\samepage \begin{figure}[tbp]
  \begin{center}
    \leavevmode
    \psfig{figure=./zgs/group.eps,height=1.5in}
    
    \label{fig:group}
  \end{center}
\end{figure}
}

\stepcounter{subsection}
{\newpage
\clearpage
\samepage \begin{figure}[tbp]
  \begin{center}
    \leavevmode
    \psfig{figure=./zgs/descriptor.eps}
    
    \label{fig:descriptor}
  \end{center}
\end{figure}
}

{\newpage
\clearpage
\samepage \begin{figure}[bp]
  \begin{center}
    \leavevmode
    \psfig{figure=./zgs/map.eps}
    
    \label{fig:mapping}
  \end{center}
\end{figure}
}

{\newpage
\clearpage
\samepage \begin{figure}[tbp]
  \begin{center}
    \leavevmode
    \psfig{figure=./zgs/layer.eps}
    
    \label{fig:layer}
  \end{center}
\end{figure}
}

{\newpage
\clearpage
\samepage \begin{table}[tbp]
  \begin{center}
    
    \vspace{0.1in}
    \leavevmode
    \small
    \begin{tabular}[c]{|l|ll|} 
      \hline
      \textbf{global var}& \textbf{array section} & \textbf{type} \\  
      \hline
      2-dimension & \texttt{c} & \texttt{float [[,]]} \\  
      & \texttt{c[[:,:]]} & \texttt{float [[,]]} \\  
      \hline
      1-dimension & \texttt{c[[i,:]]} & \texttt{float [[]]} \\  
      & \texttt{c[[i,1::2]]} & \texttt{float [[]]} \\  
      \hline
      scalar(0-dim) & \texttt{c[[i,j]]} & \texttt{float \#} \\  
      \hline
    \end{tabular}
    \normalsize
    \label{tab:section}
  \end{center}
\end{table}
}

\stepcounter{subsection}
\stepcounter{subsection}
\stepcounter{section}
{\newpage
\clearpage
\samepage \setbox\sizebox=\hbox{$0,\ldots,n-1$}\lthtmltypeout{latex2htmlSize :tex2html_wrap_inline447: \the\ht\sizebox::\the\dp\sizebox.}\box\sizebox
}

{\newpage
\clearpage
\samepage \begin{figure}[tbp]
  \begin{center}
    \leavevmode
    \psfig{figure=./zgs/arrays.eps,height=2.4in} 
    
    \label{fig:arrays}
  \end{center}
\end{figure}
}

\stepcounter{section}
{\newpage
\clearpage
\samepage \begin{figure}[tbp]
  \begin{center}
\begin{small}
\begin{verbatim}  Procs1 p = new Procs1(4);
  on(p) {
    Range x = new CyclicRange(n, p.dim(0));
    float a[[*,]] = new float [[n, x]];
    ... some code to initialise `a' ...
    float b[[*]] = new float [[n]]; // buffer

    for(int k = 0 ; k < N - 1 ; k++) {
      at(l = x[k]) {
        float d =  Math.sqrt(a[k,l]) ;
        a[k,l] = d ;
        for(int s = k + 1 ; s < N ; s++)
          a[s,l] /= d ;
      }
      Adlib.remap(b[[k+1:]], a[[k+1:,  k]]);

      overall(m = x [k + 1 :] )
        for(int i = x.idx(m) ; i < N ; i++)
          a[i,m] -= b[i] * b[x.idx(m)] ;
    }
    at(l = x [N - 1])
      a[N - 1,l] = Math.sqrt(a[N-1,l]) ;
  }\end{verbatim}
\end{small}
    
    \label{fig:choleski}
  \end{center}
\end{figure}
}

{\newpage
\clearpage
\samepage \begin{figure}[tbp]
  \begin{center}
\begin{small}
\begin{verbatim}  Procs2 p = new Procs2(2, 4);
  Range x = new BlockRange(100, p.dim(0), 1),
        y = new BlockRange(200, p.dim(1), 1); 
  on(p) {
    float [[,]] a = new float [[x,y]], b = new float [[x,y]];
    ... some code to initialize `a'

    Adlib.writeHalo(a);

    overall(i=x)
      overall(j=y)
        b[i,j] = 0.25 * (a[i-1,j] + a[i+1,j] + a[i,j-1] + a[i,j+1]);
    overall(i=x)
      overall(j=y)
        a[i,j] = b[i,j];
  }\end{verbatim}
\end{small}
    
    \label{fig:Jacobi}
  \end{center}
\end{figure}
}

\stepcounter{section}
\stepcounter{subsection}
\stepcounter{subsection}
\stepcounter{subsection}
\stepcounter{section}
{\newpage
\clearpage
\samepage \begin{figure}[tbp]
  \begin{center}
    \leavevmode
    \psfig{figure=./zgs/Jacobi4.eps, height=1.8in}
    
    \label{fig:performance}
  \end{center}
\end{figure}
}

\stepcounter{section}
{\newpage
\clearpage
\samepage \begin{figure}[tbp]
  \begin{center}
    \leavevmode
    \psfig{figure=./zgs/HPspmdLayers.eps} 
    
    \label{fig:hpspmd}
  \end{center}
\end{figure}
}

\stepcounter{chapter}

\end{document}
