Skip to content

Commit

Permalink
Merge pull request #57 from gpilab/develop
Browse files Browse the repository at this point in the history
Bugfix for Windows memory allocation
  • Loading branch information
borupdaniel authored Jun 24, 2021
2 parents 5910715 + 1fc24b9 commit d8301f8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/gpi/sysspecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,14 @@ def findAndSetMaxOpenFilesLimit(self):
import resource
lim = resource.getrlimit(resource.RLIMIT_NOFILE)[0]
hard_lim = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
# if the hard limit is infinite (unlimited resources) cap it at 10000
if hard_lim == resource.RLIM_INFINITY:
lim = 10000
hard_lim = 10000
else:
lim = 10000
hard_lim = 10000

# if the hard limit is infinite (unlimited resources) cap it at 10000
if hard_lim == resource.RLIM_INFINITY:
lim = 10000
hard_lim = 10000

while (not self._inWindows) and (not maxFound):
try:
lim += 10
Expand Down

0 comments on commit d8301f8

Please sign in to comment.