File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -973,7 +973,7 @@ void goto_set_num_threads(int num_threads) {
973
973
974
974
increased_threads = 1 ;
975
975
976
- for (i = blas_num_threads - 1 ; i < num_threads - 1 ; i ++ ){
976
+ for (i = ( blas_num_threads > 0 ) ? blas_num_threads - 1 : 0 ; i < num_threads - 1 ; i ++ ){
977
977
978
978
atomic_store_queue (& thread_status [i ].queue , (blas_queue_t * )0 );
979
979
thread_status [i ].status = THREAD_STATUS_WAKEUP ;
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ void goto_set_num_threads(int num_threads)
568
568
blas_server_avail = 1 ;
569
569
}
570
570
571
- for (i = blas_num_threads - 1 ; i < num_threads - 1 ; i ++ ){
571
+ for (i = ( blas_num_threads > 0 ) ? blas_num_threads - 1 : 0 ; i < num_threads - 1 ; i ++ ){
572
572
573
573
blas_threads [i ] = CreateThread (NULL , 0 ,
574
574
blas_thread_server , (void * )i ,
You can’t perform that action at this time.
0 commit comments