summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-07-18 15:23:43 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-07-18 15:23:43 +0200
commit81123aeb67afef73bcfd3571169dd26054906174 (patch)
tree67bf0dfe6c50bc8d89c2a5eb35f16f9a57f1ce2e
parentcae6837be62750557d7fe05c13c23b0ae55e3300 (diff)
GEMV baseline: check for numa_alloc errors
-rw-r--r--GEMV/baselines/cpu/gemv_openmp.c7
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++ ) {