Skip to content
Snippets Groups Projects
Commit adb30f3c authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

add finer control of vtune/aps commands

parent ed4f104c
No related branches found
No related tags found
No related merge requests found
Pipeline #83171 passed
......@@ -766,9 +766,13 @@ class _code(_base):
else:
executable_launcher = 'srun'
if host_info['use_vtune']:
executable_launcher = 'srun vtune -collect hpc-performance -trace-mpi -quiet -result-dir=vtune_${SLURM_JOB_NAME}'
if 'vtune_executable' not in host_info.keys():
host_info['vtune_executable'] = 'vtune'
executable_launcher = 'srun ' + host_info['vtune_executable'] + ' -collect hpc-performance -trace-mpi -quiet -result-dir=vtune_${SLURM_JOB_NAME}'
if host_info['use_aps']:
executable_launcher = 'srun aps --result-dir=aps_${SLURM_JOB_NAME} --collection-mode=all'
if 'aps_executable' not in host_info.keys():
host_info['aps_executable'] = 'aps'
executable_launcher = 'srun ' + host_info['aps_executable'] + ' --result-dir=aps_${SLURM_JOB_NAME} --collection-mode=all'
script_file.write(executable_launcher + ' {0}\n'.format(' '.join(command_atoms)))
if host_info['use_aps']:
script_file.write('aps-report aps_${SLURM_JOB_NAME}\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment