Fixed Dashboard

- Fixed line-truncation (#4461).
- Fixed GCC 8/9/10 (#4460).
This commit is contained in:
Hans Pabst 2025-10-02 08:12:47 +02:00
parent e966546746
commit 67ae283c5d
2 changed files with 5 additions and 2 deletions

View file

@ -26,7 +26,8 @@
* \brief Wrapper for printf, passed to dbm_library_print_stats.
* \author Ole Schuett
******************************************************************************/
static void print_func(const char *msg, int /*msglen*/, int output_unit) {
static void print_func(const char *msg, int msglen, int output_unit) {
(void)msglen; // mark used
if (output_unit == 0) { // i.e. my_rank == 0
printf("%s", msg);
}

View file

@ -358,7 +358,9 @@ CONTAINS
NULLIFY (predicted_xblock)
CALL torch_dict_get(model_outputs, "xblock", predicted_xblock_tensor)
CALL torch_tensor_data_ptr(predicted_xblock_tensor, predicted_xblock)
CPASSERT(SIZE(predicted_xblock, 1) == n .AND. SIZE(predicted_xblock, 2) == m .AND. SIZE(predicted_xblock, 3) == 1)
CPASSERT(SIZE(predicted_xblock, 1) == n)
CPASSERT(SIZE(predicted_xblock, 2) == m)
CPASSERT(SIZE(predicted_xblock, 3) == 1)
IF (PRESENT(block_X)) THEN
block_X = RESHAPE(predicted_xblock, [n*m, 1])
END IF