During the last years, I have been using the GNU Fortran 95 compiler,
gFortran
, and its MPI parallel version mpif90
, to debug and compile my programs on Intel machines under Mac OS X operating systems. The gFortran
compiler provides a free and open-source GNU compiler environment for Mac OS X systems.Hi, I am trying to compile some code I wrote for my research on an Intel Mac Pro running Mac OS X Tiger 10.4.11 using ifort. As I managed to this before on Fedora 8 with ifort, as well as on this Mac Pro using gfortran 4.3, I expected no problems. Ifort by itself includes only the coarray support version of MPI. For that reason it's common to build openmpi or some other open source MPI against ifort. I don't know of any MPI other than openmpi which names its wrapper mpifort, not any other than Intel MPI which has a separate ifort wrapper named mpiifort along with a gfortran wrapper named. It looks like your MPI installation is configured to use ifort instead of gfortran, you should either change that or switch on the appropriate flags for the ifort compiler (beware though, -ffast-math turns off checks that can lead to unreliable results. Here it is, an option by option equivalence table: ifort gfortran Commentary - -Vaxlib Enables old VAX library compatibility (should not be necessary with gfortran and newer ifort versions) -CB -fbounds-check Enables array bounds check at run-time -mcmode=large -mcmodel=large Enables large memory model -O -O2 Enables optimisaiton -openmp -fopenmp Enables OpenMP support -DOMP -DOMP.
However, when debugging and compiling my programs using
gFortran
on Mc OS X Leopard and then Snow Leopard, the built executables are found to be poorly debugged. For this reason, I have been aiming at trying a non-commercial distribution of the well-known Intel Fortran compiler,
iFort
. Unfortunately, Intel does not provide such distribution for the Mac OS X systems, but only for Linux.That is why I’m trying the non commercial distribution of the
iFort
compiler for Linux. It can be found here, under Compilers and Libraries: Intel® Fortran Composer XE 2013 for Linux.Step 1 : Downloading the Package
In order to download the installation package, you are asked to provide an Email adress, in which a downloading link as well as a serial number will be provided.
After downloading the file, unpack it:
Coovadia Paediatrics And Child Health Free Pdf Download - tinourl.com/16jhwa.
Aug 06, 2020 Coovadia’s Paediatrics & Child Health. A manual for health professionals in developing countries – Sixth edition. The PDF file you selected should load here if your Web browser has a PDF reader plug-in installed (for example, a recent version of Adobe Acrobat Reader).
![Coovadia paediatrics pdf download Coovadia paediatrics pdf download](https://images-eu.ssl-images-amazon.com/images/I/51VbBgE5afL.jpg)
tar -zxvf l_fcompxe_2013.3.163.tgz
cd l_fcompxe_2013.3.163
If you are using a
IA-32
architecture, libstdc++.so.5
or higher should be already installed in your system. This libraries package is installed by default under EM64T
Linux systems. If not done by default, please consider installing it before continuing.Step 2 : Installing the
iFort
Compiler for LinuxInstall the
iFort
Compiler package by running the script, using root previlegies:sudo ./install.sh
Nxp nearfieldproximity provider driver. After choosing the suitable installation options, related to your system architecture,
IA-32
or EM64T
, you are asked to enter your Intel Fortran compiler for Linux
serial number.After provinding it, the installation process will continue. You are asked to accept further agreements… Afte registration, the installation script exits.
Step 3 : Setting Up the Compiler Environment
In order to set up the compilation environment, the installation script already created compiler environment script files
ifortvars.sh/idbvars.sh
, that you have to run.sudo ifortvars.sh/idbvars.sh
To use the
iFort
compiler, you need to set up its environment:source [install-dir]/bin/ifortvars.sh
The compiler configuration files
[install-dir]/bin/ifort.cfg
are also created. You can edit them to add additional default options.This procedure was successfully tested on a
Linux Ubuntu 12.04 LTS
system.Credit : Detailed procedure from Illinois NCSA‘s website.
gfortran for Mac
DISCLAIMER: I provide this information here to aid my memory and in thehope that others will find it a useful resource based on my experiences of installing a gfortran compiler on Macs. I am not a computer scientist orFortran guru and, as such, am unlikely to be able to help you with Fortran code,compilation or runtime problems.
There are several options available for installing gfortran for Mac OS X,other than installing from source code.
GCC Wiki
I currently choose to use the relevant gfortran installer (.dmg) packagesprovided through the GCC Wiki (opens in new window). Note that the files areinstalled in /usr/local system directories which require the administratorpassword.
HPC
There are also various tar-files of gfortran distributions provided at the High PerformanceComputing web page. There are up-to-date distributions for some systems(only Mac OS X 10.7 (Lion), 10.8 (Mountain Lion), 10.9 (Mavericks) and 10.10(Yosemite) as of the last update of this page).
I recommend not to choose a package containing a version that is not a stable version accordingto the main GCC web site. Furthermore, for simplicity, I would recommendonly to install the relevant 'gfortran only' distributions.
The files are gzip'd tar-files which should be unpacked, for instance byusing the Terminal application, as follows:
sudo tar xvfz[tar-file] -C /
Note that the files are installed in /usr/local system directories whichrequire the administrator password.
The R Project
Previously, I had preferred to use the gfortran packages distributed inassociation with the R Project. These can be found in the 'Apple Xcode gcc-42add-ons' section of their Tools web page (opens in new window) or via the direct linksbelow. These gfortran packages and updates are specifically built to matchApple's own gcc builds. This does mean that the version is back at GCC 4.2,which is undoubtedly where it will stay since GCC changed their licensing andApple has stopped updating their GCC distribution with Xcode. Nonetheless, myexperience shows that this distribution is one that always works.
There are several packages relevant to particular Mac OS X and Xcodeinstallations. Run gcc-v to find out which Apple gcc build is currently installed as part of theXcode tools.
- Mac OS X 10.7 (Lion) and 10.8 (Mountain Lion): One may need to apply a link after installing one of these packages so 'gfortran' may be used as a command, e.g.sudo ln -s /usr/bin/gfortran-4.2 /usr/bin/gfortranOtherwise, simply use the explicit command 'gfortran-4.2'.
- Mac OS X 10.6 (Snow Leopard):
- Mac OS X 10.5 (Leopard):
The files for builds 5564 and 5566 are gzip'd tar-files which should beunpacked, for instance by using the Terminal application, as follows:
sudo tar xvfz[tar-file] -C /
Note that the files are installed in /usr system directories which requirethe administrator password.
Packages for older OS X and Xcode versions are also available on the pagelinked to above.
Compatibility and uninstalling
Note that each of these distributions has different associated libraries andother installed files which may conflict with or be wholly or partiallyoverwritten by one another. It is therefore advisable to ensure that you haveonly one distribution installed at any one time.
It is straightforward to uninstall the GCC Wiki distribution and instructionsare provided on the detailed instructions web page. Simply run the command:
sudo rm -r/usr/local/gfortran /usr/local/bin/gfortran
It is slightly more difficult to uninstall the R Project or HPC distribution. HPC distributes gfortran as a tar-file. Therefore each file contained in thetar-file should be removed. The easiest way to do this is probably to run thecommand:
For sh/bash:
for file in $(tar tfz[tar-file]); do sudo rm -f /$file; done
for file in $(tar tfz[tar-file]); do sudo rm -f /$file; done
For csh/tcsh:
foreach file ( `tar tfz[tar-file]` )
sudo rm -f /$file
end
foreach file ( `tar tfz[tar-file]` )
sudo rm -f /$file
end
where [tar-file] is the package, for example gfortran-4.7-bin.tar.gz,gfortran-lion.tar.gz, gfortran-snwleo-intel-bin.tar.gz, etc. This will removeall files but not directories, which may contain other files that are not to be removed. To remove empty directories only, then run the command:
For sh/bash:
for file in $(tar tfz[tar-file]); do sudo rmdir -p /$file; done
for file in $(tar tfz[tar-file]); do sudo rmdir -p /$file; done
Ifort Macros
For csh/tcsh:
foreach file ( `tar tfz[tar-file]` )
sudo rmdir -p /$file
end
foreach file ( `tar tfz[tar-file]` )
sudo rmdir -p /$file
end
The R Project distribution is a .pkg file and this adds another level ofcomplication. To list the files that were installed from this package, oneneeds to locate the 'receipt', which is a .bom file. On my system (Mac OS X10.8, Mountain Lion) the file is located at/private/var/db/receipts/org.r-project.gcc-42.darwin11.pkg.bom (was/private/var/db/receipts/org.r-project.gnuFortran42.lion.usr.pkg.bom for Mac OSX 10.7, Lion; or /private/var/db/receipts/org.r-project.mac.tools.gfortran.bom for Mac OS X 10.6, Snow Leopard). To find the file, run a command such as:
sudo find / -iname'*fortran*.bom'
Once the appropriate file has been located, a list of files that have beeninstalled can be found by running the command:
lsbom -pF [bom-file]
Fort Mackenzie
Therefore, similarly to removing the HPC distribution, the files can beremoved by running commands such as:
For sh/bash:
for file in $(lsbom -pF[bom-file]); do sudo rm -f $file; done
for file in $(lsbom -pF[bom-file]); do sudo rmdir -p $file; done
for file in $(lsbom -pF[bom-file]); do sudo rm -f $file; done
for file in $(lsbom -pF[bom-file]); do sudo rmdir -p $file; done
For csh/tcsh:
foreach file ( `lsbom-pF [bom-file]` )
sudo rm -f $file
end
foreach file ( `lsbom-pF [bom-file]` )
sudo rmdir -p $file
end
foreach file ( `lsbom-pF [bom-file]` )
sudo rm -f $file
end
foreach file ( `lsbom-pF [bom-file]` )
sudo rmdir -p $file
end
Ifort Mac And Cheese
Note that these commands should be run from the root directory (cd / first).
Last updated: 2020-09-02, M.Floyd (MIT)
Accessibility
Accessibility