Outils pour utilisateurs

Outils du site


sunfluidh:makefile_configuration

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
sunfluidh:makefile_configuration [2021/04/28 17:25] yannsunfluidh:makefile_configuration [2021/04/30 18:47] (Version actuelle) – [Compiler options] yann
Ligne 1: Ligne 1:
 ===== How to configure the makefile ===== ===== How to configure the makefile =====
 +[[sunfluidh:sunfluidh_install_limsi|Click here to come back to the previous page]]
 +-----
  
 ==== Fortran compilers ==== ==== Fortran compilers ====
 The code sunfluidh is programmed in fortran 95 and 2003. The code sunfluidh is programmed in fortran 95 and 2003.
 A makefile (named makefile) is present in the directory 'TRUNK/DATA/MAKEFILE_DIR' in order to help you to compile the code. Two compilers are available : A makefile (named makefile) is present in the directory 'TRUNK/DATA/MAKEFILE_DIR' in order to help you to compile the code. Two compilers are available :
-   * the inlet compiler (ifort)+   * the intel compiler (ifort)
    * the GNU compiler (gfortran)    * the GNU compiler (gfortran)
  
Ligne 26: Ligne 28:
    * AMD_OPT=YES or NO : enable (or not) some additional optimization options for AMD architecture (Intel CPU). Options are : -mavx2. Default value is NO    * AMD_OPT=YES or NO : enable (or not) some additional optimization options for AMD architecture (Intel CPU). Options are : -mavx2. Default value is NO
    * ADD_USER_OPT= .... . The user can add its own compiler's options    * ADD_USER_OPT= .... . The user can add its own compiler's options
-   HOSTNAME=LOCAL, DEFAULT or GRAPPE : define how to access to external libraries used by the code (i.e lapack) in regard to the host environment (the computer). At present, three cases are predefined :+   HOSTLIBS=LOCAL, AUTO or GRAPPE : define how to access to external libraries used by the code (i.e lapack) in regard to the host environment (the computer). At present, three cases are predefined :
        * LOCAL (the default value) : the access path to external libraries is implicitly defined in the Operating System of the host. The usual fortran option "-l" is used.        * LOCAL (the default value) : the access path to external libraries is implicitly defined in the Operating System of the host. The usual fortran option "-l" is used.
-       DEFAULT : the access path to external libraries is enabled by means of the "module" command (see the host'documentation about "module"). No specific action in the makefile is required. +       MODULE : the access path to external libraries is enabled by means of the "module" command (see the documentation about "module"). No specific action in the makefile is required. 
-       * 'hostname' (i.e. GRAPPE) : the access path must be explicitly stated in the makefile. This procedure is defined for the cluster Grappe at present.+       * 'hostname' (i.e. GRAPPE) : the access path must be explicitly stated in the makefile. This procedure is made for the cluster Grappe at present.
  
-==== Code configuration options ====+==== Labels for the code configuration ====
  
-In order to configure the code in the suitable form (2D, 3D, parallelisation mode,...), labels are used to set the variable "CODE_CONFIG" defined inside the makefile.+In order to configure the code in the suitable form (2D, 3D, parallelisation mode,...), labels are used to set the variable "CODE_CONFIG" defined inside the makefile. \\ 
 So, this variable must just be set as CODE_CONFIG= LABEL1 LABEL2 ... So, this variable must just be set as CODE_CONFIG= LABEL1 LABEL2 ...
 +
 The common labels to use are : The common labels to use are :
    * -DDIM3D   : for 3D geometrical configuration    * -DDIM3D   : for 3D geometrical configuration
Ligne 51: Ligne 54:
 The default configuration proposed in the makefile is : CODE_CONFIG= -DSHARED_DISK -DDIM2D The default configuration proposed in the makefile is : CODE_CONFIG= -DSHARED_DISK -DDIM2D
    
 +[[sunfluidh:sunfluidh_install_limsi|Click here to come back to the previous page]]
sunfluidh/makefile_configuration.1619623543.txt.gz · Dernière modification : 2021/04/28 17:25 de yann

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki