Subject: Re: [OMPI users] What flags for configure for a single machine installation ?
From: DEVEL Michel (Michel.Devel_at_[hidden])
Date: 2009-06-08 10:38:30


Dear all,

I have finally succeded to build a static openmpi library for my single
machine setup + using it to link and execute a code, either with
gfortran or ifort
I used
./configure --prefix=/usr/local --with-sge --enable-static
--without-openib --without-portals --without-udapl --without-elan
--without-gm --without-mx --disable-dlopen

remark : I have not tried with --without-memory-manager and
--without-libnuma since it already works like that.

Then I built my Scalapack code with
gfortran -m64 -O3 -fPIC -fopenmp -fbounds-check -pthread --static
dtype.o modules.o interfaces_sca.o field_sca.o get_param33.o adin33.o
fillmat33.o lu33.o calpol33.o solve_e033.o t33.o fillpol33.o rotate33.o
propag33.o init_sca.o distrib_par.o matgen_sca.o lu_sca.o solve_sca.o
derf.o -o bin/dfield_gfortran_static -L/usr/local/lib -lscalapack
-lblacsF77 -lblacs -lblacsF77 -I/usr/local/include -L/usr/local/lib
-lmpi_f90 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lm
-ldl /usr/lib64/liblapack.a -L/usr/local/lib -lptcblas -lptf77blas -latlas

or

ifort -Bstatic -fast -C -openmp -check noarg_temp_created dtype.o
modules.o interfaces_sca.o field_sca.o get_param33.o adin33.o
fillmat33.o lu33.o calpol33.o solve_e033.o t33.o fillpol33.o rotate33.o
propag33.o init_sca.o distrib_par.o matgen_sca.o lu_sca.o solve_sca.o
derf.o -o bin/dfield_ifort_static -lmkl_scalapack_lp64
-lmkl_blacs_openmpi_lp64 -I/usr/local/include -L/usr/local/lib -lmpi_f90
-lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -lnsl -lutil -lm -ldl
-Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core
-Wl,--end-group -lguide -lpthread

-- 
Sincerely yours,
Michel DEVEL