summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++ ) {