From 12a44d1c1e15f8cce3c5be17f3d8f36aae371ff2 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Thu, 19 Sep 2024 21:07:31 +0000 Subject: [PATCH] fix mpi colleen --- xprof/xprof.rb.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xprof/xprof.rb.in b/xprof/xprof.rb.in index e2aed6d5..9b115c23 100755 --- a/xprof/xprof.rb.in +++ b/xprof/xprof.rb.in @@ -517,7 +517,12 @@ end def enable_events_mpi(channel_name, tracing_mode: 'default', profiling: true) lttng_enable = "lttng enable-event --userspace --session=#{lttng_session_uuid} --channel=#{channel_name}" - exec("#{lttng_enable} lttng_ust_mpi:*") + case tracing_mode + when 'full' + exec("#{lttng_enable} lttng_ust_mpi:*") + when 'default' + exec("#{lttng_enable} lttng_ust_mpi:* -x lttng_ust_mpi:MPI_WTime*") + end exec("#{lttng_enable} lttng_ust_mpi_type:*") end