Skip to content

Commit

Permalink
Merge pull request #110 from AlecThomson/master
Browse files Browse the repository at this point in the history
Use cpu_count over sched_getaffinity
  • Loading branch information
o-smirnov authored May 31, 2023
2 parents d1de7ad + 5e5a923 commit 07910cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shade_ms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# set default number of renderers to half the available cores
DEFAULT_CNUM = 16
DEFAULT_NUM_RENDERS = max(1, len(os.sched_getaffinity(0))//2)
DEFAULT_NUM_RENDERS = max(1, os.cpu_count()//2)

from .__main__ import cli, parse_plot_spec, parse_slice_spec # noqa

Expand Down

0 comments on commit 07910cf

Please sign in to comment.