diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-18 15:23:43 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-07-18 15:23:43 +0200 |
commit | 81123aeb67afef73bcfd3571169dd26054906174 (patch) | |
tree | 67bf0dfe6c50bc8d89c2a5eb35f16f9a57f1ce2e | |
parent | cae6837be62750557d7fe05c13c23b0ae55e3300 (diff) |
GEMV baseline: check for numa_alloc errors
-rw-r--r-- | GEMV/baselines/cpu/gemv_openmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
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++ ) { |