Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
fnrizzi committed Nov 18, 2023
1 parent 2779b29 commit 17af2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unit_test/TestDeviceAndThreads.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def GetFlag(flag, *extra_args):

def GetNumThreads(max_threads):
#phys_cores_count = psutil.cpu_count(logical=False)
args = ['sysctl', '-n', 'hw.physicalcpu_max']
args = ['nproc', '--all'] #'sysctl', '-n', 'hw.physicalcpu_max']
if os.name == 'nt':
args = ['wmic', 'cpu', 'get', 'NumberOfCores']

Expand Down

0 comments on commit 17af2f3

Please sign in to comment.