[cam-users] CAM2 or CAM3 on opteron 64bit cpu & pgi compiler

Hyeong Seog Kim dol153 at cpl.snu.ac.kr
Thu Aug 12 14:45:08 MDT 2004


Dear Anant and David

Thanks for your comments.
I found the solution of my problem.
It was a stack size problem.

1 cpu serial runs case
$ulimit -s 10240   (default)
 ==> segmentation fault

$ulimit -s unlimited
 ==> working well !!

2 cpu openMP run case
$ulimit -s 10240   (default)
 ==> segmentation fault

$ulimit -s unlimited
 ==> segmentation fault

$ulimit -s 102400   
 ==> working well !!

For CAM3 openMP working well on my computer,  proper values should be set to
the stack size...





===========================================================
Be Happy!

Kim Hyeong Seog
School of Earth and Environmental Sciences 
Seoul National University
Seoul. Rep. of Korea 
Tel : 82-2-880-5705 Fax : 82-2-876-6795 
Email : dol153 at cpl.snu.ac.kr


-----Original Message-----
From: David Noone [mailto:dcn at Colorado.EDU] 
Sent: Thursday, August 12, 2004 12:43 AM
To: Hyeong Seog Kim
Cc: cam-users at ucar.edu
Subject: Re: [cam-users] CAM2 or CAM3 on opteron 64bit cpu & pgi compiler


Hi Kim,

cam2 and cam3 CAN run on Opteron systems with the pgi compiler, with
compilation at either 32 or 64 bit (64 bit compilation runs about 20%
faster in parallel, almost only about 5% faster in serial runs).
However, I have had no success using the (default) SMP paralelization
(exits with a segmentation fault). I was able to work around this with
cam2 by modifying the Makefile, however, have not yet found a solution
for cam3. In any case, a simple work around is to use pure SPMD, for
both on-node and cross-node parallelization. Tests with cam2 show there
is only trivial difference in speed (something like 5% from memory).

Try setting the environment variable "setenv OMP_NUM_THREADS 1", as a
test.

The Makefile change I used for cam2_0_2 was to have -mp=openmp, rather
than just -mp, however, this did not work for cam3_0.

Good luck,

David




On Wed, 11 Aug 2004, Hyeong Seog Kim wrote:

> Cam is compiled with no error ...on Linux , Opteron 64bit cpu  & PGI
> compiler
> But cam stop with mesaage "Segment fault"
> same cam2 as cam3
> Who know a solution of  this problem?
> Cam cannot run on Opteron???
>
> ===========================================================
> Be Happy!
>
> Kim Hyeong Seog
> School of Earth and Environmental Sciences
> Seoul National University
> Seoul. Rep. of Korea
> Tel : 82-2-880-5705 Fax : 82-2-876-6795
> Email : dol153 at cpl.snu.ac.kr
>
>
>
> _______________________________________________
> cam-users mailing list
> cam-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/cam-users
>

-- 
------------------------------------------------------------------------
PAOS & CIRES, University of Colorado, Boulder, UCB 311, CO 80309-0311
Ph: (303) 735-6073  Fax: (303) 492-3524
http://paos.colorado.edu/~dcn




More information about the cam-users mailing list