Indicate that lttng-ust 2.13+ is required
[deliverable/lttng-ust-mpi.git] / check
1 #!/bin/sh
2 #
3 # SPDX-License-Identifier: MIT
4 #
5 # SPDX-FileCopyrightText: 2023 Olivier Dion <odion@efficios.com>
6
7 TRACE_OUTPUT=traces
8
9 lttng create --output $TRACE_OUTPUT
10
11 # Enable all MPI event types.
12 lttng enable-event --userspace 'mpi:*'
13
14 # Add MPI rank as a application context to every event.
15 lttng add-context --userspace --type '$app.MPI:rank'
16
17 lttng start
18
19 if command -v mpirun;
20 then
21 mpirun --n 4 ./run-test-mpi 100
22 else
23 srun -p cray --ntasks=4 ./run-test-mpi 1000
24 fi
25
26 lttng destroy
27
28 babeltrace2 $TRACE_OUTPUT
This page took 0.038157 seconds and 4 git commands to generate.