0

Setting stack sizes when running v3.32-OMP in Linux environments

Hey everyone,

I've noticed that the only way I've successfully been able to run simulations with TOUGHREACT v3.32-OMP in a Linux environment was by setting the stack size to unlimited ('ulimit -s unlimited').  This is true even for relatively simple problems.  I can set the stack size to a hard limit of whatever size (e.g., 'ulimit -s 204800'), and I still get a segmentation fault.  Is there perhaps a compiler or linker option to overcome this?  Running on my own machine is fine, but I'm also attempting to install this on our servers, where I don't have the authority to set stack sizes to unlimited.

If I find a workaround for this, I'll be sure to post it here.

1 reply

null
    • TOUGHREACT Developer
    • Eric_Sonnenthal
    • 4 yrs ago
    • Reported - view

    Hi Mikey,

    Yes, ulimit -s unlimited must used because of OpenMP parallelism. However, any user can put this command in their.bashrc file.  We don't have issues on any of the lab-managed clusters, and the memory actually used is not very much  for most problems.

    Eric

Content aside

  • 4 yrs agoLast active
  • 1Replies
  • 79Views
  • 2 Following