@@ -140,7 +140,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
140
140
#endif
141
141
142
142
#ifndef BUFFERS_PER_THREAD
143
- #ifdef USE_OPENMP
143
+ #ifdef USE_OPENMP_UNUSED
144
144
#define BUFFERS_PER_THREAD (MAX_CPU_NUMBER * 2 * MAX_PARALLEL_NUMBER)
145
145
#else
146
146
#define BUFFERS_PER_THREAD NUM_BUFFERS
@@ -363,7 +363,7 @@ int blas_get_cpu_number(void){
363
363
#endif
364
364
365
365
// blas_goto_num = 0;
366
- #ifndef USE_OPENMP
366
+ #ifndef USE_OPENMP_UNUSED
367
367
blas_goto_num = openblas_num_threads_env ();
368
368
if (blas_goto_num < 0 ) blas_goto_num = 0 ;
369
369
@@ -494,7 +494,7 @@ static const int allocation_block_size = BUFFER_SIZE + sizeof(struct alloc_t);
494
494
#endif
495
495
496
496
/* Holds pointers to allocated memory */
497
- #if defined(SMP ) && !defined(USE_OPENMP )
497
+ #if defined(SMP ) && !defined(USE_OPENMP_UNUSED )
498
498
/* This is the number of threads than can be spawned by the server, which is the
499
499
server plus the number of threads in the thread pool */
500
500
# define MAX_ALLOCATING_THREADS MAX_CPU_NUMBER * 2 * MAX_PARALLEL_NUMBER +1
@@ -532,7 +532,7 @@ static BLASULONG alloc_lock = 0UL;
532
532
533
533
/* Returns a pointer to the start of the per-thread memory allocation data */
534
534
static __inline struct alloc_t * * get_memory_table () {
535
- #if defined(SMP ) && !defined(USE_OPENMP )
535
+ #if defined(SMP ) && !defined(USE_OPENMP_UNUSED )
536
536
# if !defined(HAS_COMPILER_TLS )
537
537
# if defined(OS_WINDOWS )
538
538
int local_memory_table_pos = (int )::TlsGetValue (local_storage_key );
@@ -1057,7 +1057,7 @@ static volatile int memory_initialized = 0;
1057
1057
/* 2 : Thread */
1058
1058
1059
1059
static void blas_memory_init (){
1060
- #if defined(SMP ) && !defined(USE_OPENMP )
1060
+ #if defined(SMP ) && !defined(USE_OPENMP_UNUSED )
1061
1061
next_memory_table_pos = 0 ;
1062
1062
# if !defined(HAS_COMPILER_TLS )
1063
1063
# if defined(OS_WINDOWS )
0 commit comments