We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5975c69 commit 27b7d4cCopy full SHA for 27b7d4c
src/vt/trace/trace.cc
@@ -232,9 +232,13 @@ void Trace::registerUserEventManual(
232
user_event_.user(name, id);
233
}
234
235
-void reducedEventsHan(const UserEventRegistry& gathered_user_events) {
236
- vtAssert(theContext()->getNode() == 0, "Must be node 0");
+void reducedEventsHan(
+ [[maybe_unused]] const UserEventRegistry& gathered_user_events
237
+) {
238
+ #if vt_check_enabled(trace_enabled)
239
+ vtAssert(theContext()->getNode() == 0, "User events must be gathered on node 0");
240
theTrace()->setUserEvents(gathered_user_events);
241
+ #endif
242
243
244
void insertNewUserEvent(
0 commit comments