gibuu is hosted by Hepforge, IPPP Durham
GiBUU

Changes between Version 8 and Version 9 of compiling


Ignore:
Timestamp:
Sep 5, 2011, 10:56:36 AM (13 years ago)
Author:
jweil
Comment:

some corrections and extensions

Legend:

Unmodified
Added
Removed
Modified
  • compiling

    v8 v9  
    55Before compiling, make sure that all [wiki:tools prerequisites] are fulfilled.
    66
    7 If 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.
    8 
    97Note that the whole compilation process is steared by GNU make. GiBUU is always compiled statically, so that we get a monolithic executable which does not depend on system libraries (with the exception of Mac OS X where static linking is not supported).
    108
    119== Choosing a Compiler ==
    1210
    13 By default the Makefile uses the first supported compiler which it finds on your system (ifort, gfortran, g95, sunf95 or lfc - in this order). But you can also tell the Makefile which compiler to use, by doing e.g.:
     11By default the Makefile uses the first supported compiler which is found on your system (ifort, gfortran, g95, sunf95 or pgf95 - in this order). But you can also tell the Makefile which compiler to use, by doing e.g.:
    1412
    1513{{{
     
    3735make MODE=prof
    3836}}}
     37
    3938Currently this only works with ifort & gfortran, and produces an executable which is suitable for profiling with gprof.
    4039
     
    4847}}}
    4948
    50 This sets the level for floating point exceptions, which can be 0-3, where FPE=3 means none and FPE=0 means all. FPE=3 is the default. This flag is only supported with ifort and gfortran.
     49This sets the level for floating point exceptions, which can be 0-3, where FPE=3 means none and FPE=0 means all. FPE=3 is the default. This flag is only supported with ifort and gfortran. Note: We recommend not to use FPE, unless you feel really adventurous. The resulting executable is likely to crash (in particular, PYTHIA has trouble with FPE).
    5150
    5251
     
    6059
    6160This can potentially be up to four times faster than the standard single-threaded make ("-j1"), since four files can be compiled in parallel.
     61
     62== Rebuilding from scratch ==
     63
     64If you want to discard all the object files which have already been generated (e.g. to rebuild with a different compiler or different options, or after making major changes to the code), you should type
     65
     66{{{
     67make renew
     68}}}
     69
     70This will clean up all present object and module files and rebuild the dependencies, giving you a fresh start in building GiBUU.