From bgiacoma at aei.mpg.de Tue Aug 7 12:46:17 2007 From: bgiacoma at aei.mpg.de (Bruno Giacomazzo) Date: Tue, 7 Aug 2007 19:46:17 +0200 (CEST) Subject: [Users] [Developers] problems compiling cactus on mac osx with ifort In-Reply-To: References: Message-ID: Hi, I was finally able to compile Cactus on my Mac (OS X Version 10.4.10) using the fortran Intel compiler. I had to modify two files: 1) Cactus/lib/make/extras/MPI/MPICH using a patch that was created by Steve White one year ago and which solves a problem with mpich2 since tarch is not installed anymore. It use mpich2version instead (see mpich2.diff attached). Why this patch was not committed? 2) Cactus/lib/make/known-architectures/darwin since when using gcc to link, it tries to use icrt.link which is not installed. (see darwin.diff attached). I have also attached the config-info file used to build the executable that runs without any problem. Note that I had to add the following option in the config file: LIBS=pmpich imf svml ifcore I have used the following version of the compilers and libraries: gcc version 4.0.1 (Apple Computer, Inc. build 5367) ifort Version 10.0 hdf5 Version 1.6.5 mpich2 Version 1.0.5 Cheers, Bruno -- Dr. Bruno Giacomazzo Max Planck Institute for Gravitational Physics Albert Einstein Institute Am Muehlenberg 1 D-14476 Potsdam Germany Tel. : +49 331 567 7183 Fax : +49 331 567 7252 cell. : +49 173 826 4488 email : bgiacoma at aei.mpg.de ------------------------------------------------- There are only 10 types of people in the world: Those who understand binary, and those who don't ------------------------------------------------- -------------- next part -------------- Index: lib/make/extras/MPI/MPICH =================================================================== RCS file: /cactusdevcvs/Cactus/lib/make/extras/MPI/MPICH,v retrieving revision 1.25 diff -u -r1.25 MPICH --- lib/make/extras/MPI/MPICH 24 Oct 2005 09:12:21 -0000 1.25 +++ lib/make/extras/MPI/MPICH 21 Apr 2006 09:57:16 -0000 @@ -43,15 +43,23 @@ # Find the MPICH architecture if test -z "$MPICH_ARCH" ; then - if test -x "$MPICH_DIR/bin/tarch" ; then - MPICH_ARCH=`$MPICH_DIR/bin/tarch` - echo " MPICH architecture is $MPICH_ARCH" - else - echo " Cannot execute $MPICH_DIR/bin/tarch" - exit 2 + # MPICH2 doesn't install tarch + if test ! -x "$MPICH_DIR/bin/mpich2version" ; then + if test -x "$MPICH_DIR/bin/tarch" ; then + MPICH_ARCH=`$MPICH_DIR/bin/tarch` + echo " MPICH architecture is $MPICH_ARCH" + else + echo " Cannot execute $MPICH_DIR/bin/tarch" + exit 2 + fi fi fi +if test -x "$MPICH_DIR/bin/mpich2version" ; then + # see MPICH2 User's Guide, sect. 5.3: Special Issues for C++ + CXXFLAGS="$CXXFLAGS -DMPICH_IGNORE_CXX_SEEK" +fi + # Find the MPICH device - this isn't necessary for mpich-1.2.0 if test -d "$MPICH_DIR/build/$MPICH_ARCH" ; then @@ -176,7 +184,13 @@ fi # Set the MPI version name -MPI_VERSION="MPICH_$MPICH_DEVICE" +if test -x "$MPICH_DIR/bin/mpich2version" ; then + MPICH2_VERSION=`mpich2version -v` + MPICH2_DEVICE=`mpich2version -d` + MPI_VERSION="MPICH2 ${MPICH2_VERSION} (${MPICH2_DEVICE})" +else + MPI_VERSION="MPICH_$MPICH_DEVICE" +fi # Finally set the library lines. MPI_LIBS="$MPICH_LIB $MPICH_DEVICE_LIBS" ------------------------------------------------------------------------ * Previous message: [Users] trouble building cactus <001800.html> * Next message: [Users] problem with CactusEinstein/ADMConstraints and AEIThorns/Exact <001801.html> * *Messages sorted by:* [ date ] [ thread ] [ subject ] [ author ] ------------------------------------------------------------------------ More information about the Users mailing list -------------- next part -------------- Index: darwin =================================================================== RCS file: /cactusdevcvs/Cactus/lib/make/known-architectures/darwin,v retrieving revision 1.18 diff -r1.18 darwin 283c283 < : ${LDFLAGS="-Qy $intel_dir/lib/icrt.link"} --- > : ${LIBS=""} #LDFLAGS="-Qy $intel_dir/lib/icrt.link" -------------- next part -------------- # CONFIGURATION : Whisky_carpet_ifort # CONFIG-DATE : Tue Aug 7 16:32:08 2007 (GMT) # CONFIG-HOST : dhcp-104.aei.mpg.de # CONFIG-STATUS : 0 # CONFIG-OPTIONS : BLAS_DIR=/usr/lib CFLAGS=-Drestrict= -std=c99 -DMPICH_IGNORE_CXX_SEEK CPPFLAGS=-DMPICH_IGNORE_CXX_SEEK CXXFLAGS=-DMPICH_IGNORE_CXX_SEEK F77=ifort F90=ifort FPP=${PERL} ${CCTK_HOME}/lib/sbin/cpp.pl GSL_DIR=/sw HDF5=yes HDF5_DIR=/usr/local LAPACK=yes LAPACK_DIR=/Library/Frameworks/Intel_MKL.framework/Versions/Current/lib/32 LIBS=pmpich imf svml ifcore MPI=MPICH MPICH_DIR=/usr/local/mpich2 PERL=perl THORNLIST=Whisky_carpet.th THORNLIST_DIR=thornlists From tradke at aei.mpg.de Wed Aug 8 07:10:32 2007 From: tradke at aei.mpg.de (Thomas Radke) Date: Wed, 08 Aug 2007 14:10:32 +0200 Subject: [Users] [Developers] problems compiling cactus on mac osx with ifort In-Reply-To: References: Message-ID: <46B9B2B8.8070806@aei.mpg.de> Bruno Giacomazzo wrote: > Hi, > I was finally able to compile Cactus on my Mac (OS X Version > 10.4.10) using the fortran Intel compiler. I had to modify two files: > > 1) Cactus/lib/make/extras/MPI/MPICH using a patch that was created by > Steve White one year ago and which solves a problem with mpich2 since > tarch is not installed anymore. It use mpich2version instead (see > mpich2.diff attached). Why this patch was not committed? I don't know and just did it, after testing it on my own MPICH2 installation. > 2) Cactus/lib/make/known-architectures/darwin since when using gcc to > link, it tries to use icrt.link which is not installed. (see darwin.diff > attached). > > I have also attached the config-info file used to build the > executable that runs without any problem. Note that I had to add the > following option in the config file: LIBS=pmpich imf svml ifcore The pmpich library should be automatically added to MPI_LIBS by the MPICH configure script. The other libraries are added already by the current known-architectures configure script for darwin, you just had commented out too much in your patched version. All necessary changes are in CVS now so that Cactus should build automatically on Darwin with MPICH2, without the need for users to patch anything manually. -- Cheers, Thomas. From schnetter at cct.lsu.edu Fri Aug 24 21:43:35 2007 From: schnetter at cct.lsu.edu (Erik Schnetter) Date: Fri, 24 Aug 2007 21:43:35 -0500 Subject: [Users] Output timer reports to a file instead of stdout Message-ID: Thorn CactusUtils/TimerReport can output periodic timer reports of a Cactus simulation. This lists all routines which are called from schedule.ccl, plus information from all available timers for these routines, which includes normally the amount of wall time and CPU time spent in these routines. This information can be very useful to determine where time is spent in a simulation. Thorn TimerReport now understands a new parameter "out_filename", allowing to redirect these reports into separate files. This is convenient because it allows easily accessing timer reports from all processors, not only the root processor. It also makes it easier to find the timing information without having to look through all of stdout. You can use this thorn e.g. with the following settings: ActiveThorns = "TimerReport" TimerReport::out_every = 512 TimerReport::out_filename = "TimerReport" This will create output files called "TimerReport.0000" etc., one file for each processor. -erik -- Erik Schnetter My email is as private as my paper mail. I therefore support encrypting and signing email messages. Get my PGP key from www.keyserver.net. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://www.cactuscode.org/pipermail/users/attachments/20070824/a004dd8e/attachment.bin