Skip to content

Commit 7bd18e2

Browse files
committed
Update mem management when unfolding
1 parent dcb5186 commit 7bd18e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

smpt/interfaces/unfold.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ def unfold(path_ptnet: str, timeout: Optional[int] = None) -> str:
6666
"""
6767
new_filename = path_ptnet.replace('.pnml', '_unfolded')
6868

69+
environ["GOMEMLIMIT"] = "14GiB"
70+
6971
try:
70-
check_output('export GOMEMLIMIT="14000000KiB"; ulimit -Sv 14000000 ; mcc smpt -i {} -o {}'.format(path_ptnet, new_filename), timeout=timeout, stderr=DEVNULL, shell=True)
72+
check_output('export GOMEMLIMIT="14000000KiB"; mcc smpt -i {} -o {}'.format(path_ptnet, new_filename), timeout=timeout, stderr=DEVNULL, shell=True)
7173
except (TimeoutExpired, CalledProcessError):
7274
return None
7375

0 commit comments

Comments
 (0)