POV-Ray : Newsgroups : povray.beta-test : Might need a bigger stack for refraction & glass : Re: Might need a bigger stack for refraction & glass Server Time
17 May 2024 06:01:20 EDT (-0400)
  Re: Might need a bigger stack for refraction & glass  
From: Thorsten Froehlich
Date: 22 Jul 2012 14:00:01
Message: <web.500c3f44433eec419ab80c680@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> On 22.07.12 11:28, Le_Forgeron wrote:
> > I was afraid of that: tried it already (before posting first post of
> > this thread: ulimit -s has no effect (tried: it's a limit, not an
> > allocation size which is done by the compiler/linker code...)
> >
> > One hope which remains is recompiling with specific options.
> > I have to try -fstack-check , and maybe -fno-stack-limit
> > ... for gnu.
> >
> > I wonder about the flag (if any) for intel compiler (icpc)
>
> Neither compiler nor linker have anything to do with it. The flags you list
> have nothing to do with the stack size set for threads either.
>
> You need superuser rights to set the limit higher than the maximum set by
> the superuser. As user you can only set it to the maximum the superuser has
> permitted.

Note that you need a 2.6 kernel and a not ancient gcc. See
http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_create.3.html and
http://en.wikipedia.org/wiki/Native_POSIX_Thread_Library . It explains how to
use ulimit -s correctly and work with threads as expected.

Thorsten


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.