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

📄 node11.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 Fortran</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<HR><H2><A NAME="Node11">Compiling and linking with Fortran</a></H2>
<A HREF="node10.htm#Node10"><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="node12.htm#Node12"><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="node12.htm#Node12"> Compiling and linking with gcc or g77</a>
<b>Previous: </b><A HREF="node10.htm#Node10"> Compiling with VC++ from the command line</a>
<P>
To compile with Visual Fortran, follow the same steps as in the Visual C++   
Section <a href="node9.htm#Node9">Compiling and linking with Microsoft Developer Studio (VC++ 6.x) 
</a>.  Visual Fortran uses the same linker as MS Visual C++.    
<P> 
The <TT>mpich</TT> dlls contain the following interfaces for Fortran:  
<ol> 
 
1. <tt> MPI_INIT@4</tt> - example symbol in the mpich dll  
<P> 
Uppercase externals using the standard calling convention with mixed string length   
parameters.  This is the default for Visual Fortran.  But, it doesn't allow passing   
strings to any of the message passing functions like MPI_SEND because strings cause   
the function signature to change.  To use strings you must use the C calling convention.  
 
<BR> 
2. <tt> MPI_INIT</tt>  
<P> 
Uppercase externals using the C calling convention with string length parameters at the   
end of the list.  This is the default for the Intel Fortran compiler.  You can also use   
this interface with Visual Fortran by adding the following compiler flags:   
<tt>/iface:cref /iface:nomixed_str_len_arg</tt>  
 
<BR> 
3. <tt> mpi_init__</tt>  
<P> 
Lowercase double underscore externals using the C calling convention with string   
length parameters at the end of the argument list.  This is the default for g77.  
</ol> 
If your Fortran compiler is not compatible with any of these interfaces then you will   
have to re-build the mpich libraries from the source distribution, <em>mpich.nt.1.2.5.src.exe</em>, and   
change the linkage to match your compiler.  See Section <a href="node44.htm#Node44">Rebuilding the <TT>mpich</TT> dlls from the source distribution 
</a> for details   
on re-building the mpich libraries.  
<P> 

<P>
<HR>
<A HREF="node10.htm#Node10"><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="node12.htm#Node12"><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="node12.htm#Node12"> Compiling and linking with gcc or g77</a>
<b>Previous: </b><A HREF="node10.htm#Node10"> Compiling with VC++ from the command line</a>
<P>
</BODY>
</HTML>

⌨️ 快捷键说明

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