From 88b5330ae7fa506f6e92930f0bee951ea7e0065c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 24 Mar 2024 18:33:21 +0100 Subject: [PATCH] Restore outer loop of blas_buffer_inuse setup --- driver/others/blas_server_omp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/driver/others/blas_server_omp.c b/driver/others/blas_server_omp.c index 23110f8076..6f2ea8623d 100644 --- a/driver/others/blas_server_omp.c +++ b/driver/others/blas_server_omp.c @@ -407,6 +407,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){ } #endif +while (true) { for(i=0; i < MAX_PARALLEL_NUMBER; i++) { #ifdef HAVE_C11 _Bool inuse = false; @@ -419,7 +420,9 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){ break; } } - + if (i != MAX_PARALLEL_NUMBER) + break; +} if (openblas_omp_adaptive_env() != 0) { #pragma omp parallel for num_threads(num) schedule(OMP_SCHED) for (i = 0; i < num; i ++) {