Skip to content

Commit

Permalink
fix current thread count in omp query (#2763)
Browse files Browse the repository at this point in the history
  • Loading branch information
TorreZuk authored Nov 8, 2024
1 parent 28e218b commit 37a9bde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clients/common/client_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ void rocblas_client_init()
const int processor_count = std::thread::hardware_concurrency();
if(processor_count > 0)
{

const int omp_current_threads = omp_get_num_procs();
const int omp_current_threads = omp_get_max_threads();
if(omp_current_threads >= processor_count)
{
int limiter = processor_count > 4 ? processor_count - 2 : processor_count;
Expand Down

0 comments on commit 37a9bde

Please sign in to comment.