From a5c9b4e7e0475a542a856d739a8aa99f1f47c6e7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 20 Feb 2018 16:36:03 +0100 Subject: [PATCH] Update memory.c --- driver/others/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index 5c389f9ee..b4e10f4c5 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -1117,10 +1117,10 @@ void *blas_memory_alloc(int procpos){ memory[position].used = 1; #if defined(SMP) && !defined(USE_OPENMP) UNLOCK_COMMAND(&alloc_lock); +#else + blas_unlock(&memory[position].lock); #endif - -/* blas_unlock(&memory[position].lock);*/ - + if (!memory[position].addr) { do { #ifdef DEBUG