Skip to content

Commit

Permalink
Merge pull request #935 from ronawho/set-memThreshold
Browse files Browse the repository at this point in the history
Avoid tracking small allocations by setting `memThreshold`
  • Loading branch information
glitch authored Sep 30, 2021
2 parents dc41935 + 88192c7 commit db8c105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CHPL_FLAGS += --no-checks --no-loop-invariant-code-motion --no-fast-followers --
else
CHPL_FLAGS += --fast
endif
CHPL_FLAGS += -smemTrack=true
CHPL_FLAGS += -smemTrack=true -smemThreshold=1048576
CHPL_FLAGS += -lhdf5 -lhdf5_hl -lzmq

# We have seen segfaults with cache remote at some node counts
Expand Down
1 change: 1 addition & 0 deletions tests/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def test_get_mem_used(self):
expected or the call to ak.client.get_mem_used() fails
'''
try:
a = ak.ones(1024*1024)
mem_used = ak.client.get_mem_used()
except Exception as e:
raise AssertionError(e)
Expand Down

0 comments on commit db8c105

Please sign in to comment.