Changes between Version 37 and Version 38 of Public/User_Guide/OmpSs-2


Ignore:
Timestamp:
Jun 14, 2019, 4:06:17 PM (5 years ago)
Author:
Pedro Martinez-Ferror
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Public/User_Guide/OmpSs-2

    v37 v38  
    5959
    6060!OmpSs-2 has already been installed on DEEP and can be used by simply executing the following commands:
    61 {{{
    62 modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/Core:$modulepath"
    63 modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/Compiler/mpi/intel/2019.0.117-GCC-7.3.0:$modulepath"
    64 modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/MPI/intel/2019.0.117-GCC-7.3.0/psmpi/5.2.1-1-mt:$modulepath"
    65 export MODULEPATH="$modulepath:$MODULEPATH"
    66 module load OmpSs-2
    67 }}}
     61`modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/Core:$modulepath"`
     62
     63`modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/Compiler/mpi/intel/2019.0.117-GCC-7.3.0:$modulepath"`
     64
     65`modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/MPI/intel/2019.0.117-GCC-7.3.0/psmpi/5.2.1-1-mt:$modulepath"`
     66
     67`export MODULEPATH="$modulepath:$MODULEPATH"`
     68
     69`module load OmpSs-2`
    6870
    6971Remember that !OmpSs-2 uses a **thread-pool** execution model which means that it **permanently uses all the threads** present on the system. Users are strongly encouraged to always check the **system affinity** by running the **NUMA command** `srun numactl --show`:
     
    149151----
    150152
    151 = Multisaxpy Benchmark (!OmpSs-2) =
     153= A Step-By-Step Detailed Guide to Execute the Multisaxpy Benchmark (!OmpSs-2) =
    152154
    153155Users must clone/download this example's repository from [https://pm.bsc.es/gitlab/ompss-2/examples/multisaxpy] and transfer it to a DEEP working directory.
     
    168170* `ITERATIONS` is the number of times the SAXPY operation is executed.
    169171
    170 == Example Output ==
     172== Downloading, Building and Executing this Benchmark ==
     173
     174Clone the repository to your local machine:
     175
     176`git clone https://pm.bsc.es/gitlab/ompss-2/examples/multisaxpy`
     177
     178and upload it to the ''/work/cdeep/'' directory of the DEEP cluster:
     179
     180`scp -r multisaxpy/ USERNAME@deep.fz-juelich.de:~/work/cdeep/`
     181
     182Now connect to the DEEP login node:
     183
     184`ssh -X USERNAME@deep.fz-juelich.de`
     185
     186and from there go to the ''multisaxpy'' folder
     187
     188`cd /work/cdeep/multisaxpy`
     189
     190to request an interactive cluster module (CM) node in order to use all the available 48 threads to run a pure !OmpSs-2 application:
     191
     192`srun -p dp-cn -N 1 -n 1 -c 48 --pty /bin/bash -i`
     193
     194Load the !OmpSs-2 module via the following commands:
     195
     196`modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/Core:$modulepath"`
     197
     198`modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/Compiler/mpi/intel/2019.0.117-GCC-7.3.0:$modulepath"`
     199
     200`modulepath="/usr/local/software/skylake/Stages/2018b/modules/all/MPI/intel/2019.0.117-GCC-7.3.0/psmpi/5.2.1-1-mt:$modulepath"`
     201
     202`export MODULEPATH="$modulepath:$MODULEPATH"`
     203
     204`module load OmpSs-2`
     205
     206and check the affinity via the command `srun numactly --show` which should report:
     207{{{
     208policy: default
     209preferred node: current
     210physcpubind: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
     211cpubind: 0 1
     212nodebind: 0 1
     213membind: 0 1
     214}}}
     215
     216
     217
     218
     219`hola
     220
     221holo`
     222
     223
     224
    171225
    172226{{{