KMP_stacksize problem...help me please

Problems running VASP: crashes, internal errors, "wrong" results.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
baolkvn

KMP_stacksize problem...help me please

#1 Post by baolkvn » Tue Feb 26, 2008 8:50 am

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>
Last edited by baolkvn on Tue Feb 26, 2008 8:50 am, edited 1 time in total.

admin
Administrator
Administrator
Posts: 2921
Joined: Tue Aug 03, 2004 8:18 am
License Nr.: 458

KMP_stacksize problem...help me please

#2 Post by admin » Tue Feb 26, 2008 3:16 pm

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)
Last edited by admin on Tue Feb 26, 2008 3:16 pm, edited 1 time in total.

baolkvn

KMP_stacksize problem...help me please

#3 Post by baolkvn » Tue Feb 26, 2008 4:24 pm

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
Last edited by baolkvn on Tue Feb 26, 2008 4:24 pm, edited 1 time in total.

baolkvn

KMP_stacksize problem...help me please

#4 Post by baolkvn » Thu Feb 28, 2008 5:50 pm

I have already known how to do. Thanks.
Last edited by baolkvn on Thu Feb 28, 2008 5:50 pm, edited 1 time in total.

baolkvn

KMP_stacksize problem...help me please

#5 Post by baolkvn » Fri Feb 29, 2008 4:30 am

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

baolkvn

KMP_stacksize problem...help me please

#6 Post by baolkvn » Tue Mar 04, 2008 1:47 am

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.
Last edited by baolkvn on Tue Mar 04, 2008 1:47 am, edited 1 time in total.

ibixap

KMP_stacksize problem...help me please

#7 Post by ibixap » Fri Mar 21, 2008 11:17 am

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)
Last edited by ibixap on Fri Mar 21, 2008 11:17 am, edited 1 time in total.

komsa
Newbie
Newbie
Posts: 1
Joined: Thu Jul 02, 2009 7:58 pm
License Nr.: 5-538

KMP_stacksize problem...help me please

#8 Post by komsa » Thu Jul 02, 2009 8:19 pm

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.
Last edited by komsa on Thu Jul 02, 2009 8:19 pm, edited 1 time in total.

Post Reply