Page 1 of 1

KMP_stacksize problem...help me please

Posted: Tue Feb 26, 2008 8:50 am
by baolkvn
Dear everyone,

please help me overcome this problem with stacksize. This appeared when running vasp.

"OMP abort: Unable to set worker thread stack size to 2098176 bytes
Try reducing KMP_STACKSIZE or increasing the shell stack limit. "

Please tell me detail as much as possible.
Note: I'm a user, not the Admin of the computer system.

Thank you very much.
<span class='smallblacktext'>[ Edited ]</span>

KMP_stacksize problem...help me please

Posted: Tue Feb 26, 2008 3:16 pm
by admin
KMP_STACKSIZE is an environment variable in Open MP, it gives the available stack size for each thread.
please try (one of) the following
a) set KMP_STACKSIZE explicitely
(setenv KMP_STACKSIZE=2m would e.g. set it to 2 Megabytes)
please ask your sys admin about the maximum available stack size and/or to increase the stack size maximum..
b) check the stack limit of your shell ("ulimit -s"); if it is limited, please set "ulimit -s unlimited" for your shell (in the .bashrc file for example)

KMP_stacksize problem...help me please

Posted: Tue Feb 26, 2008 4:24 pm
by baolkvn
Thank admin very much for your prompt reply

How to set KMP_stacksize? Which file this command "setenv KMP_STACKSIZE=..." is in?

Thank you once again.

TA Quoc Bao

KMP_stacksize problem...help me please

Posted: Thu Feb 28, 2008 5:50 pm
by baolkvn
I have already known how to do. Thanks.

KMP_stacksize problem...help me please

Posted: Fri Feb 29, 2008 4:30 am
by baolkvn
Huhu, I though I did. But my "setenv", "limit", "ulimit" commands didn't work. I'm trying to contact with sys admin now. :(

KMP_stacksize problem...help me please

Posted: Tue Mar 04, 2008 1:47 am
by baolkvn
Dear vaspmaster,
I am really in trouble. I don't know to to set KMP_stacksize or stack shell,.... (I don't know where to execute these commands : "limit stacksize 256m" Or "ulimit -s unlimited" Or "setenv KMP_STACKSIZE=2m",...

Please Please Please help me.

KMP_stacksize problem...help me please

Posted: Fri Mar 21, 2008 11:17 am
by ibixap
Dear everyone,
I have a problem
"OMP abort: Unable to set worker thread stack size to 2098176 bytes
Try reducing KMP_STACKSIZE or increasing the shell stack limit. "
but with boot parameter "acpi=off" this problem disappears
(I have OpenSUSE 10.3)

KMP_stacksize problem...help me please

Posted: Thu Jul 02, 2009 8:19 pm
by komsa
I came across this same problem when I accessed my work computer through SSH. When I use VASP on it "interactively" it works just fine. Setting KMP_STACKSIZE or using ulimit didn't work for me either. However, when I ran VASP in a new screen (just write 'screen') everything worked fine again. Hope this helps somebody, although perhaps not really the correct solution.