Skip to content

Commit 78f44af

Browse files
committed
request: always enable DEBUG_PROGRESS_START/CHECK
Let users always able to set MPIR_CVAR_DEBUG_PROGRESS_TIMEOUT regardless whether --enable-g=progress is enabled during build. It only adds a null if check unless the TIMEOUT cvar is set. Add --enable-g=progress will provide additional request info on timeout dump.
1 parent f9d685f commit 78f44af

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/include/mpir_request.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,12 @@ extern MPIR_Request MPIR_Request_direct[MPIR_REQUEST_PREALLOC];
319319
} \
320320
} while (0)
321321

322+
#else
323+
324+
#define MPIR_REQUEST_SET_INFO(req, ...) do { } while (0)
325+
#define MPIR_REQUEST_DEBUG(req) do { } while (0)
326+
#endif
327+
322328
#define DEBUG_PROGRESS_START \
323329
int iter = 0; \
324330
bool progress_timed_out = false; \
@@ -346,14 +352,6 @@ extern MPIR_Request MPIR_Request_direct[MPIR_REQUEST_PREALLOC];
346352
} \
347353
}
348354

349-
#else
350-
351-
#define MPIR_REQUEST_SET_INFO(req, ...) do { } while (0)
352-
#define MPIR_REQUEST_DEBUG(req) do { } while (0)
353-
#define DEBUG_PROGRESS_START do {} while (0)
354-
#define DEBUG_PROGRESS_CHECK do {} while (0)
355-
#endif
356-
357355
void MPII_init_request(void);
358356

359357
/* To get the benefit of multiple request pool, device layer need register their per-vci lock

0 commit comments

Comments
 (0)