Home page > MAC OS X > Open mpi using gfortran

Open mpi using gfortran

Thursday 24 March 2011, by Tital

Remark about Open MPI in OS X

Open MPI v1.2.3 was included in OS X starting with version 10.5 (Leopard). Note that the Leopard does not include a Fortran compiler, so the OS X-shipped version of Open MPI does not include Fortran support.

If you need/want Fortran support, you will need to build your own copy of Open MPI (assumedly when you have a Fortran compiler installed). The Open MPI team strongly recomends not overwriting the OS X-installed version of Open MPI, but rather installing it somewhere else (e.g., /opt/openmpi).

What did I do to compile openmpi on my machine ?

- Get the tarball of openmpi here:
- Expand the tarball in a temporary directory
- Launch the configuration setup

./configure FC=gfortran --prefix=/opt/openmpi CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64

- Install:

sudo make all install

How do I compile and run MPI fortran programs See example attached to this document.

- Compile with the compilator /opt/openmpi/bin/mpif90
- Do not forget to compile the code with -m64 flag

- Run /opt/openmpi/bin/mpirun -np #proc or define an alias

SPIP | template | | Site Map | Follow-up of the site's activity RSS 2.0
gillette azor motrin with tylenol in india information about benadryl itch creams lamisil novartis treatment tylenol florida celebrex attorney purim ecards extacy lexapro allegra 4 in mayami arjuna tree farmville in india christmas vaxation tylenol more melatonin for baby coumadin on menses lumigan eyedrops sleepy z melatonin actos nursing amantadine syrup pepcid manufacturer januvia blurred allegra lincoln ne in california toradol cerclage buy naltrexone online about invega paliperidone makers of plavix diphenhydramine melatonin tylenol 771 tabs allegra lozinski more info melatonin add adhd maker of tricor weaning zyprexa vimax extender parts lexapro official site information about drug norvasc information about diovan hct 160 ampicillin oral med extenze for free canadian tylenol celebrex cost australia zyban smoking in mayami coumadin omega-3 elderly keppra vermox uk pharmacy insufflating tizanidine more info about hydrochlorothiazide price more generic discount bactrim nosebleed on cipro arimidex eye twitch