Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

 For GEM4 with:   . s.ssmuse.dot GEM/x/4.8.lts12 or the alias 4812
 For GEM5 with:   . r.load.dot GEM/x/5.0         or the alias 500


a) Open experiment

First you have to "open the experiment" to do the initial setup, create files to find original source code, create links to the building directory and Makefiles etc. with:

...

     ouv_exp_gem

...

rdemklink

...

-v

...

You have to do this only once!


b) Duplicating another executable directory (optional!)

If you want to duplicate another executable directory (from yourself or someone else) you must copy ONLY the source code, nothing else!
To copy all relevant files copy all files matching:

 *.[Ffchi]*


c) Create dependency

Then you need to create the dependencies (which routines include which include files and, vice versa, which include files are included in which routines). You need to redo this whenever you include another include file or add a routine!!!:

 make dep

It never hurts to redo this. It just takes time.


d) Compile

Whenever you modified or added one or more source code files you need to compile them to create the object file(s). To compile all routines that need compiling or to compile a modified module or include file execute:

 make obj
To speed up this compilation on Beluga you can also use 3 cpus with :
 make -j3 obj

...

You can also compile several routines in the same "make" command: make subroutine1.o subroutine2.o

e) Create the executable

To (re)create the executable you need to load and link it with:

...