Skip to content

Commit 05aa882

Browse files
authored
add status variable for openblas_set_num_threads
1 parent 9f9d001 commit 05aa882

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

driver/others/blas_server_omp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ static void adjust_thread_buffers() {
100100

101101
void goto_set_num_threads(int num_threads) {
102102

103+
blas_num_threads_set = 1;
104+
if (num_threads < 0) blas_num_threads_set = 0;
103105
if (num_threads < 1) num_threads = blas_num_threads;
104106

105107
if (num_threads > MAX_CPU_NUMBER) num_threads = MAX_CPU_NUMBER;

0 commit comments

Comments
 (0)