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