From bc8e7ddafe8324730039dbdcf87c296bc631d511 Mon Sep 17 00:00:00 2001 From: "msc23h24 Diyou Shen (dishen)" Date: Mon, 11 Dec 2023 09:44:04 +0100 Subject: [PATCH] WIP [MemPool-Spatz] Fix a bug in sp-axpy test --- software/apps/sp-axpy/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/software/apps/sp-axpy/main.c b/software/apps/sp-axpy/main.c index 14ddc0ab7..d8897b1d8 100644 --- a/software/apps/sp-axpy/main.c +++ b/software/apps/sp-axpy/main.c @@ -158,10 +158,12 @@ int main() { if (cid == 0) { int error = verify_matrix(y, r, esize, cid); printf("Errors: %d\n", error); + if (error != 0) + return error } // Wait for core 0 to finish displaying results mempool_barrier(num_cores); - return error; + return 0; }