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.

...

Change into the 'gem' directory under which you downloaded your source code and make sure you did export our work directory:

    export MY_WORK_DIR=/path/to/my/work/directory

...

Also, to make things easier further down, set MY_GEM_DIR to the name of your "gem" directory - see above (replace the '...' in the following command!):

    export MY_GEM_DIR=.../gem

Depending on which machine you work and which compiler or environment you want to use the commands differ a little. Here are some options:

...

      module load openmpi/2.1.5-intel-19.0-mkl
      module load utils/misc                                                           
# to get an up to date version of cmake
      cmake -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${MY_WORK_DIR} ${MY_GEM_DIR}/project

If you want to use the GNU compiler (gcc/gfortran) set:

      module load openmpi/3.1.5-gcc-8.3
      cmake -DCOMPILER=gnu -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${MY_WORK_DIR} ${MY_GEM_DIR}/project

On Niagara

using the native environment (recommended)

      module load intel/2019u4 openmpi/4.0.1 fftw/3.3.8 cmake
      cmake -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${MY_WORK_DIR} ${MY_GEM_DIR}/project

using the common environment

      module load CCEnv
      module load nixpkgs/16.09
      module load intel/2019.3
      module load openmpi
      module load cmake/3.16.3
      module load fftw-mpi
      cmake -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${MY_WORK_DIR} ${MY_GEM_DIR}/project

Create executable

...

Once you change the source code follow the steps above, starting from "Set compiler version and compile".