Merge commit '0dde3ce5898815296008b8461a5396a5c3c25a07' into develop

This commit is contained in:
systems-assistant[bot]
2025-08-12 00:25:16 +00:00
4 changed files with 50 additions and 53 deletions
@@ -44,6 +44,26 @@ THE SOFTWARE.
#define HIP_PRINT_STATUS(status) INFO(hipGetErrorName(status) << " at line: " << __LINE__);
#define CHAR_BUF_SIZE 512
#define CONSOLE_PRINT(fmt, ...) \
do { \
std::printf(fmt "\n", ##__VA_ARGS__); \
} while (0)
// DEBUG_PRINT: If ENABLE_DEBUG is defined, prints immediately to console.
// Otherwise, uses Catch2 INFO() - debug messages will only appear if the test fails.
#if defined(ENABLE_DEBUG)
#define DEBUG_PRINT(fmt, ...) CONSOLE_PRINT("[DEBUG]: " fmt, ##__VA_ARGS__)
#else
#define DEBUG_PRINT(fmt, ...) \
do { \
char buf[CHAR_BUF_SIZE]; \
std::snprintf(buf, CHAR_BUF_SIZE, "[INFO]: " fmt, ##__VA_ARGS__); \
INFO(buf); \
} while (0)
#endif
// Not thread-safe
#define HIP_CHECK(error) \
{ \