File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -973,7 +973,7 @@ void goto_set_num_threads(int num_threads) {
973973
974974 increased_threads = 1 ;
975975
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 ++ ){
977977
978978 atomic_store_queue (& thread_status [i ].queue , (blas_queue_t * )0 );
979979 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)
568568 blas_server_avail = 1 ;
569569 }
570570
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 ++ ){
572572
573573 blas_threads [i ] = CreateThread (NULL , 0 ,
574574 blas_thread_server , (void * )i ,
You can’t perform that action at this time.
0 commit comments