Browse Source

initialize status variable for openblas_set_num_threads

tags/v0.3.22^2
Martin Kroeker GitHub 2 years ago
parent
commit
e298d613fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      driver/others/memory.c
  2. +1
    -0
      driver/others/memory_qalloc.c

+ 4
- 0
driver/others/memory.c View File

@@ -422,6 +422,8 @@ This value is equal or large than blas_cpu_number. This means some threads are s
*/
int blas_num_threads = 0;

int blas_num_threads_set = 0;

int goto_get_num_procs (void) {
return blas_cpu_number;
}
@@ -1994,6 +1996,8 @@ This value is equal or large than blas_cpu_number. This means some threads are s
*/
int blas_num_threads = 0;

int blas_num_threads_set = 0;

int goto_get_num_procs (void) {
return blas_cpu_number;
}


+ 1
- 0
driver/others/memory_qalloc.c View File

@@ -283,6 +283,7 @@ The numbers of threads in the thread pool.
This value is equal or large than blas_cpu_number. This means some threads are sleep.
*/
int blas_num_threads = 0;
int blas_num_threads_set = 0;

int goto_get_num_procs (void) {
return blas_cpu_number;


Loading…
Cancel
Save