MemoryError: std::bad_alloc #130
Answered
by
hczhai
Shovan-Physics
asked this question in
Q&A
-
In some cases I get the following error:
Just wondering if this is running out of RAM or stack memory, or something else? (I'm using a scratch filesystem.) |
Beta Was this translation helpful? Give feedback.
Answered by
hczhai
Oct 4, 2024
Replies: 1 comment 1 reply
-
As I explained in #129 (comment), you may set the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Shovan-Physics
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As I explained in #129 (comment), you may set the
stack_mem
to some reasonable large value, it does not mean that you should setstack_mem
to an arbitrarily large value. For example, if you run 16 jobs in a node, and the node has 256 GB free memory in total, thestack_mem
for each job should not exceed 256 / 16 = 16 GB.