Restore outer loop of blas_buffer_inuse setup

This commit is contained in:
Martin Kroeker 2024-03-24 18:33:21 +01:00 committed by GitHub
parent 52b71a1673
commit 88b5330ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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 ++) {