Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit afdb1ef

Browse files
committed
fix for 16+ CPU
1 parent 453237b commit afdb1ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/mplib/MPSharedList.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(self, sh_b, data_list ):
117117

118118
#override
119119
def process_info_generator(self):
120-
for i in range(multiprocessing.cpu_count()):
120+
for i in range(min(multiprocessing.cpu_count(), 8)):
121121
yield 'CPU%d' % (i), {}, {'sh_b':self.sh_b}
122122

123123
#override

0 commit comments

Comments
 (0)