Update memory.c
This commit is contained in:
parent
6fb5b73320
commit
a5c9b4e7e0
|
@ -1117,10 +1117,10 @@ void *blas_memory_alloc(int procpos){
|
||||||
memory[position].used = 1;
|
memory[position].used = 1;
|
||||||
#if defined(SMP) && !defined(USE_OPENMP)
|
#if defined(SMP) && !defined(USE_OPENMP)
|
||||||
UNLOCK_COMMAND(&alloc_lock);
|
UNLOCK_COMMAND(&alloc_lock);
|
||||||
|
#else
|
||||||
|
blas_unlock(&memory[position].lock);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* blas_unlock(&memory[position].lock);*/
|
|
||||||
|
|
||||||
if (!memory[position].addr) {
|
if (!memory[position].addr) {
|
||||||
do {
|
do {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
Loading…
Reference in New Issue