150 | | Additionally, you will need to change your running script in order to invoke the program through this trace.sh script. Although you can also edit your running script adding all the environment variables related with the instrumentation, it is preferable to use this extra script to easily change between instrumented and non-instrumented executions. When in need to instrument your execution, simply include trace.sh before the program invocation. Note that the **extrae.xml** file, which is used to configure the Extrae library to get a Paraver trace, is also needed. |
| 150 | Additionally, you will need to change your running script in order to invoke the program through this trace.sh script so that it looks like: |
| 151 | |
| 152 | `./trace.sh ./application` |
| 153 | |
| 154 | Although you can also edit your running script adding all the environment variables related with the instrumentation, it is preferable to use this extra script to easily change between instrumented and non-instrumented executions. When in need to instrument your execution, simply include trace.sh before the program invocation. Note that the **extrae.xml** file, which is used to configure the Extrae library to get a Paraver trace, is also needed. |
511 | | |
| 515 | To get traces of this benchmark using Extrae firstly load the corresponding module: |
| 516 | |
| 517 | `module load Extrae/3.6.1` |
| 518 | |
| 519 | and charge the Extrae environment in your active session: |
| 520 | |
| 521 | `source /usr/local/software/skylake/Stages/2018b/software/Extrae/3.6.1-ipsmpi-2018b-mt/etc/extrae.sh` |
| 522 | |
| 523 | Then copy a preconfigured ''extrae.xml'' file to instrument !OmpSs-2 to your current working directory ''multisaxpy/'': |
| 524 | |
| 525 | `cp /usr/local/software/skylake/Stages/2018b/software/Extrae/3.6.1-ipsmpi-2018b-mt/share/example/OMPSS/extrae.xml .` |
| 526 | |
| 527 | The next step is to create a new file ''trace.sh'': |
| 528 | |
| 529 | `touch trace.sh` |
| 530 | |
| 531 | with the necessary permission to be executed: |
| 532 | |
| 533 | `chmod +x trace.sh` |
| 534 | |
| 535 | and fill it with the following text: |
| 536 | |
| 537 | {{{#!bash |
| 538 | #!/bin/bash |
| 539 | export EXTRAE_CONFIG_FILE=extrae.xml |
| 540 | export NANOS6="extrae" |
| 541 | $* |
| 542 | }}} |
| 543 | |
| 544 | Now execute the benchmark keeping its original size but only 20 iterations with the following command: |
| 545 | |
| 546 | `taskset -c 12-23 ./trace.sh ./03.multisaxpy_task 16777216 8192 20` |