72.html
来自「国外MPI教材」· HTML 代码 · 共 37 行
HTML
37 行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> body { font-family: Verdana, Arial, Helvetica, sans-serif;} a.at-term { font-style: italic; } </style> <title>Multi-Level Parallel Programming Procedure</title> <meta name="Generator" content="ATutor"> <meta name="Keywords" content=""></head><body> <p>Writing an MLP program is actually fairly simple. You can do it by combining the MPI calls used in the MPI version of your program with the OpenMP directives used in the OpenMP version of your program. You use the same syntax with both of these parallel libraries.</p>
<p>Specifically,</p>
<ul>
<li>Be sure to call all the include files, intialization procedures, and closing procedures/directives required of both the message-passing and loop-level parallel libraries
</li>
<li>When compiling an MLP program be sure to use whatever compiler options were needed to use <em>each</em> separate parallel library. Of course, other options related to optimization, output reports/messages, etc., can also be used.</li>
<li>For example, all the MLP codes shown in this online course use MPI as the message passing parallel library and OpenMP as the parallel loop library. On the Origin 2000 at the Ohio Supercomputer Center, the <em>combined</em> compilation would be:
<pre><code>f90 -03 -mp search.f90 -lmpi
</code></pre>
where the -03 option is included for compiler optimization of code.</li>
<li>
<em>WARNING:</em> Use of MPI processes and OpenMP threads has to be limited to what each is designed to do. For example, an OpenMP thread should not send or receive a message. This entire subject is addressed in Chapter 10.
</li>
</ul></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?