Skip to content

Commit 2601cd5

Browse files
brada4martin-frbg
authored andcommitted
remove surplus locking code , only enabled w x86, disabled or never enabled on all others
1 parent 35653e3 commit 2601cd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

driver/others/memory.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,7 +2586,7 @@ void *blas_memory_alloc(int procpos){
25862586
printf("Alloc Start ...\n");
25872587
#endif
25882588

2589-
#if defined(WHEREAMI) && !defined(USE_OPENMP)
2589+
/* #if defined(WHEREAMI) && !defined(USE_OPENMP)
25902590
25912591
mypos = WhereAmI();
25922592
@@ -2596,20 +2596,20 @@ void *blas_memory_alloc(int procpos){
25962596
do {
25972597
if (!memory[position].used && (memory[position].pos == mypos)) {
25982598
LOCK_COMMAND(&alloc_lock);
2599-
/* blas_lock(&memory[position].lock);*/
2599+
// blas_lock(&memory[position].lock);
26002600
26012601
if (!memory[position].used) goto allocation;
26022602
26032603
UNLOCK_COMMAND(&alloc_lock);
2604-
/* blas_unlock(&memory[position].lock);*/
2604+
// blas_unlock(&memory[position].lock);
26052605
}
26062606
26072607
position ++;
26082608
26092609
} while (position < NUM_BUFFERS);
26102610
26112611
2612-
#endif
2612+
#endif */
26132613

26142614
position = 0;
26152615

0 commit comments

Comments
 (0)