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.

...

Create yourself a directory under your home for the source code, preferably under ~/SPS/v_6.1.1/Absand change into it, for example:

a) Create directory for executable

Volet
mkdir -p ~/SPS/v_6.1.1/Abs/SPSMy_UQAM_developmentAbs
cd
~/SPS/v_6.1.1/Abs/SPS_UQAM_development

...

My_Abs

b) Get the basename of abs-directory

Get the basename (last part of your directory path) of your abs-directory for later use:

             base_dir=$( basename $PWD )

'base_dir' should now be set to 'My_Abs'. You can verify it with:

            echo $base_dir

...

c) Clone the SPS Git repository you want to start from

, for example:

Volet
git clone ~winger/SPS/v_6.1.1/Abs/SPS_UQAM_development/sps

d) Create working directories

So the object files, libraries and executables will not be under your home, create links for the directories 'build' and 'work'. Pick a place under which you want to keep the object files, libraries and executables under your data space, or example:

            work_space=/.../${USER}/GEM_WORK_DIR

Create the directories and the links (using ${base_dir} from above) :

            mkdir -p ${work_space}/${base_dir}/build
            mkdir -p ${work_space}/${base_dir}/work
            ln -s ${work_space}/${base_dir}/build
            ln -s ${work_space}/${base_dir}/work

e) Acquire a compiler

Only needed once per window/terminal. Same as for GEM 5.1.1.

            module add intel/2021.2.0  fftw-intel-2021

f) Set the variable 'abs_dir'

Set the variable 'abs_dir' to the name of your executable directory, including the 'gem' directory (needed under e))

            abs_dir=$PWD

g) Change into 'build' directory:

            cd build

h) Create make files and dependencies

Only need once at the beginning and whenever you add any new routines or add include files or module "use" lines to an existing routine.

            cmake   -DCOMPILER=intel   -DCMAKE_VERBOSE_MAKEFILE=ON    -DWORK_PREFIX=${abs_dir}/work    ${abs_dir}/project

i) Compile and create executable

            make -j4 mainspsdm

The key '-jn' makes the command use n cores in parallel. But you can also compile on one core only with:

            make mainspsdm


Config files

You need the following config files:

...