[Pw_forum] stack.c in Mac OS X/Intel

Axel Kohlmeyer akohlmey at cmm.chem.upenn.edu
Tue Mar 4 15:59:12 CET 2008


On Tue, 4 Mar 2008, Paolo Giannozzi wrote:

PG> Cesar R.S. da Silva wrote:
PG> 
PG> > Problem: Mac OS X does not allow regular users to set stack limits above
PG> > certain maximum. Therefore, the esprsso-distribution clib/stack.c fails.
PG> 
PG> I have an Intel Mac OS-X (10.4) and I never had any problem with
PG> clib/stack.c, apart from the annoying message "Cannot set stack ..."

dear paolo,

to make the confusion about intel software products complete,
the strategy of allocating automatic arrays on the heap can be 
avoided with recent intel compilers (10.0) using the -heap-arrays
flag. a choice of -heap-arrays 32  (everything above 32kb gets
allocated via malloc(3) instead of alloca(3)) seems to be a
reasonable choice.

cheers,
   axel.

PG> 
PG> Paolo
PG> 

-- 
=======================================================================
Axel Kohlmeyer   akohlmey at cmm.chem.upenn.edu   http://www.cmm.upenn.edu
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.



More information about the users mailing list