⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node12.htm

📁 空间物理学研究需要有并行的环境
💻 HTM
字号:
<HTML>
<HEAD>
<!-- This file was generated by tohtml from mpichntman.tex -->
<!-- with the command
tohtml -default -dosnl -gaudy -basedef mpiman.def mpichntman.tex 
-->
<TITLE>Compiling and linking with gcc or g77</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<HR><H2><A NAME="Node12">Compiling and linking with gcc or g77</a></H2>
<A HREF="node11.htm#Node11"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node13.htm#Node13"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<b>Next: </b><A HREF="node13.htm#Node13"> Debugging</a>
<b>Previous: </b><A HREF="node11.htm#Node11"> Compiling and linking with Fortran</a>
<P>
<ol> 
 
1. Create a makefile.  
 
<BR> 
2. Add <tt> -I.../MPICH/SDK.gcc/include</tt>  
 
<BR> 
3. Add <tt> -L.../MPICH/SDK.gcc/lib</tt>  
 
<BR> 
4. Add <tt> -lmpich</tt>  
 
<BR> 
5. Add the rules for your source files.  
 
<BR> 
6. make  
 
<BR> 
7. Copy the executable and use <tt> mpirun</tt> to run the application.  
</ol> 

<P>
<HR>
<A HREF="node11.htm#Node11"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node13.htm#Node13"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<b>Next: </b><A HREF="node13.htm#Node13"> Debugging</a>
<b>Previous: </b><A HREF="node11.htm#Node11"> Compiling and linking with Fortran</a>
<P>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -