Skip to content

Commit

Permalink
[impl]: Fix calculation for the number of threads to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyu-zc committed Sep 24, 2024
1 parent dbc23da commit 13e59ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ccc/coef/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def ccc(

# get number of cores to use
n_jobs = os.cpu_count() if n_jobs is None else n_jobs
default_n_threads = (os.cpu_count() - n_jobs) if n_jobs < 0 else n_jobs
default_n_threads = (os.cpu_count() + n_jobs) if n_jobs < 0 else n_jobs

if internal_n_clusters is not None:
_tmp_list = List()
Expand Down

0 comments on commit 13e59ef

Please sign in to comment.