gibuu is hosted by Hepforge, IPPP Durham
GiBUU

Changes between Initial Version and Version 1 of compiling


Ignore:
Timestamp:
May 19, 2009, 5:13:10 PM (15 years ago)
Author:
jweil
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • compiling

    v1 v1  
     1= Compiling GiBUU =
     2
     3Compiling GiBUU usually is as easy as typing '''make''' in the GiBUU base directory. However, a couple of options are available for special situations.
     4
     5If you compile GiBUU for the first time, you should start with '''make renew'''. This is also helpful sometimes when you want to redo the whole compilation instead of doing an incremental make or rebuild the dependencies.
     6
     7Note that the whole compilation process is steared by GNU make. GiBUU is always compiled statically, so that we get a monolitic executable which does not depend on system libraries (with the exception of Mac OS X with static compilation is not supported).
     8
     9== Choosing a Compiler ==
     10
     11By default the Makefile uses the first supported compiler which it finds on your system (ifort, gfortran, g95, sunf95, lahey - in this order). But you can also tell the Makefile which compiler to use, by doing e.g.:
     12
     13{{{
     14make FORT=gfortran-4.5
     15}}}
     16
     17In this way you can also specify the explicit path of the compiler:
     18
     19{{{
     20make FORT=/opt/g95-install/bin/g95
     21}}}
     22
     23
     24== Choosing an Optimization Level ==
     25
     26By default GiBUU is compiled with debugging flags, which is good for development and bugtracking, but the produced executable may be quite slow. If you want an optimized exectutable, you should compile with
     27
     28{{{
     29make MODE=opt3
     30}}}
     31
     32This works with all compilers and lets you specify the optimization level (0-3). Another option is to use profiling flags:
     33
     34{{{
     35make MODE=prof
     36}}}
     37Currently this only works with ifort & gfortran, and produces an executable which is suitable for profiling with gprof.
     38
     39
     40== Floating Point Exceptions ==
     41
     42Checks for floating point exceptions are turned off by default. To change this you can use e.g.
     43
     44{{{
     45make FPE=0
     46}}}
     47
     48This sets the level for floating point exceptions, which can be 0-3, where FPE=3 means none and FPR=0 means all. FPE=3 is the default. This flag is only supported with ifort and gfortran.