Merge 65dcb85450
into 2263d3906c
This commit is contained in:
commit
da3566292a
|
@ -2560,7 +2560,7 @@ void *blas_memory_alloc(int procpos){
|
||||||
printf("Alloc Start ...\n");
|
printf("Alloc Start ...\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WHEREAMI) && !defined(USE_OPENMP)
|
/* #if defined(WHEREAMI) && !defined(USE_OPENMP)
|
||||||
|
|
||||||
mypos = WhereAmI();
|
mypos = WhereAmI();
|
||||||
|
|
||||||
|
@ -2570,12 +2570,12 @@ void *blas_memory_alloc(int procpos){
|
||||||
do {
|
do {
|
||||||
if (!memory[position].used && (memory[position].pos == mypos)) {
|
if (!memory[position].used && (memory[position].pos == mypos)) {
|
||||||
LOCK_COMMAND(&alloc_lock);
|
LOCK_COMMAND(&alloc_lock);
|
||||||
/* blas_lock(&memory[position].lock);*/
|
// blas_lock(&memory[position].lock);
|
||||||
|
|
||||||
if (!memory[position].used) goto allocation;
|
if (!memory[position].used) goto allocation;
|
||||||
|
|
||||||
UNLOCK_COMMAND(&alloc_lock);
|
UNLOCK_COMMAND(&alloc_lock);
|
||||||
/* blas_unlock(&memory[position].lock);*/
|
// blas_unlock(&memory[position].lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
position ++;
|
position ++;
|
||||||
|
@ -2583,7 +2583,7 @@ void *blas_memory_alloc(int procpos){
|
||||||
} while (position < NUM_BUFFERS);
|
} while (position < NUM_BUFFERS);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif */
|
||||||
|
|
||||||
position = 0;
|
position = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue