From 81123aeb67afef73bcfd3571169dd26054906174 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 18 Jul 2024 15:23:43 +0200 Subject: GEMV baseline: check for numa_alloc errors --- GEMV/baselines/cpu/gemv_openmp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GEMV/baselines/cpu/gemv_openmp.c b/GEMV/baselines/cpu/gemv_openmp.c index 464dcb1..1a3eed1 100644 --- a/GEMV/baselines/cpu/gemv_openmp.c +++ b/GEMV/baselines/cpu/gemv_openmp.c @@ -165,6 +165,13 @@ int main(int argc, char *argv[]) } stop(&timer, 1); + if (x_local == NULL) { + return 1; + } + if (A_local == NULL) { + return 1; + } + start(&timer, 2, 0); if (!numa_node_in_is_local) { //for (size_t i=0; i < rows; i++ ) { -- cgit v1.2.3