Browse Source

revert accidental changes

tags/v0.3.25^2
Martin Kroeker GitHub 2 years ago
parent
commit
2dba455d2e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common_thread.h

+ 2
- 2
common_thread.h View File

@@ -141,14 +141,14 @@ static __inline int num_cpu_avail(int level) {

#ifdef USE_OPENMP
int openmp_nthreads;
openmp_nthreads=omp_get_max_threads(void);
openmp_nthreads=omp_get_max_threads();
#endif

#ifndef USE_OPENMP
if (blas_cpu_number == 1
#endif
#ifdef USE_OPENMP
if (openmp_nthreads == 1 || omp_in_parallel(void)
if (openmp_nthreads == 1 || omp_in_parallel()
#endif
) return 1;



Loading…
Cancel
Save