Changes between Version 2 and Version 3 of Public/User_Guide/IA
- Timestamp:
- Jul 23, 2018, 2:15:53 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Public/User_Guide/IA
v2 v3 4 4 5 5 === Load the necessary modules === 6 $ module load Intel\\ 7 $ module load Advisor\\ 6 {{{ 7 $ module load Intel 8 $ module load Advisor 9 }}} 8 10 9 11 === Analysis === … … 11 13 The analysis is done in several steps. The results of each step are accumulated into the current display.\\ 12 14 All steps can be done using the Advisor GUI:\\ 13 $ advixe-gui \\ 15 {{{ 16 $ advixe-gui 17 }}} 14 18 For analysis on clusters it may be good to do these steps using the command line interface because there might be no X connection.\\ 15 19 16 20 * Getting help:\\ 17 $ advixe-cl -help > advisor_help.txt\\ 21 {{{ 22 $ advixe-cl --help > advisor_help.txt 23 }}} 18 24 19 25 * Getting help on collection:\\ 20 $ advixe-cl -help collect > advisor_help_collect.txt\\ 26 {{{ 27 $ advixe-cl --help collect > advisor_help_collect.txt 28 }}} 21 29 22 30 * Survey analysis (light weight profiling): \\ 23 $ advixe-cl --collect survey --project-dir ADV -- $PRG $FLAGS\\ 31 {{{ 32 $ advixe-cl --collect survey --project-dir ADV -- $PRG $FLAGS 33 }}} 24 34 25 35 * Analyse survey results - subset of loops printed in csv format:\\ 26 $ advixe-cl -report=survey -format=csv --project-dir ADV | cut -d "," -f 1,2,3,5,6 > survey_short.txt\\ 36 {{{ 37 $ advixe-cl --report=survey -format=csv --project-dir ADV | cut -d "," -f 1,2,3,5,6 > survey_short.txt 38 }}} 27 39 --> Shows all loops. Loops that are not vectorised are marked with "SCALAR". Note the IDs (first column) of the top scalar loops for later use.\\ 28 40 --> Can be also viewed by the GUI.\\ 29 41 30 42 * Trip count and flops analysis:\\ 31 $ advixe-cl --collect tripcounts -flops-and-masks --project-dir ADV -- $PRG $FLAGS\\ 43 {{{ 44 $ advixe-cl --collect tripcounts -flops-and-masks --project-dir ADV -- $PRG $FLAGS 45 }}} 32 46 33 47 * Dependency analysis for Loop ID=5 shows to be scalar in survey above (for example, you may have other IDs): \\ 34 $ advixe-cl --collect dependencies --mark-up-list=5 --project-dir ADV -- $PRG $FLAGS\\ 48 {{{ 49 $ advixe-cl --collect dependencies -mark-up-list=5 --project-dir ADV -- $PRG $FLAGS 50 }}} 35 51 36 52 * Map (memory) analyis for the above loop showing stride:\\ 37 $ advixe-cl --collect map --mark-up-list=5 --project-dir ADV -- $PRG $FLAGS\\ 53 {{{ 54 $ advixe-cl --collect map -mark-up-list=5 --project-dir ADV -- $PRG $FLAGS 55 }}} 38 56 --> view results with GUI or ASCII report\\ 39 57 40 58 * Generate snapshot (compressed result file). Can be copied to another computer and analysed:\\ 41 $ advixe-cl --snapshot --project-dir ADV --pack --cache-sources --cache-binaries -- snapshot_01\\ 59 {{{ 60 $ advixe-cl --snapshot --project-dir ADV --pack --cache-sources --cache-binaries -- snapshot_01 61 }}} 42 62 --> Open snapshot by starting the GUI and select "open result".