Skip to content

Commit 64c3dea

Browse files
committed
fix current thread count in omp query (#2763)
(cherry picked from commit 37a9bde)
1 parent 669065c commit 64c3dea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: clients/common/client_utility.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ void rocblas_client_init()
6565
const int processor_count = std::thread::hardware_concurrency();
6666
if(processor_count > 0)
6767
{
68-
69-
const int omp_current_threads = omp_get_num_procs();
68+
const int omp_current_threads = omp_get_max_threads();
7069
if(omp_current_threads >= processor_count)
7170
{
7271
int limiter = processor_count > 4 ? processor_count - 2 : processor_count;

0 commit comments

Comments
 (0)