hpfnpb sample case report "segmentation violation"

Hi,
I downloaded the hpfnpb sample case, and compiled it with pghpf.
[c445f1n03][/u/xiachsh/learning/fortran/hpfnpb/is/sp2]> pghpf -c …/src/appis.hpf
[c445f1n03][/u/xiachsh/learning/fortran/hpfnpb/is/sp2]> pghpf -c …/src/init_keys.hpf
[c445f1n03][/u/xiachsh/learning/fortran/hpfnpb/is/sp2]> pghpf -c …/src/mainis.hpf
[c445f1n03][/u/xiachsh/learning/fortran/hpfnpb/is/sp2]> pghpf *.o -o lgl.out.pgi

But when I tried to run it, it will give the following error:
[c445f1n03][/u/xiachsh/learning/fortran/hpfnpb/is]> ./sp2/lgl.out.pgi -unsafe yes -stat mems ulimit -a
address space limit (kbytes) (-M) unlimited
core file size (blocks) (-c) 0
cpu time (seconds) (-t) unlimited
data size (kbytes) (-d) unlimited
file size (blocks) (-f) unlimited
locks (-L) unlimited
locked address space (kbytes) (-l) unlimited
nofile (-n) 1024
nproc (-u) 257684
pipe buffer size (bytes) (-p) 4096
resident set size (kbytes) (-m) unlimited
socket buffer size (bytes) (-b) 4096
stack size (kbytes) (-s) unlimited
threads (-T) not supported
process size (kbytes) (-v) unlimited

Does anybody know why?

Another question. I have a Fortran MPICH2 library. It could support Fortran 77/90/95/99. Could it be able to support HPF as well? Is there any special requirement to make a Fortran MPI library to support HPF?
Thanks in advance for your help.

Hi guanglei,

There may be some output missing since I don’t see an error here. This is just the output from the 'ulimit -a" command. Here’s my output:

% ./sp -pghpf -np 2 -unsafe yes -stat mems < ./src/inputsp.test01
Verification test for SP PASSED

memory    local    global  res size  pag flts  pag flts voluntary  involunt
           heap      heap   (pages)     minor     major  switches  switches
   0*     361KB       1KB         0       527         0       847         5
   1      321KB       1KB         0       504         0      1013         4
total     681KB       1KB         0      1031         0      1860         9



Another question. I have a Fortran MPICH2 library. It could support Fortran 77/90/95/99. Could it be able to support HPF as well? Is there any special requirement to make a Fortran MPI library to support HPF?

I believe you can but it’s not something I’ve done myself. Let me do some investigation.

  • Mat

Hi Mat,
Here is the output:

%ulimit -c
unlimited
%./sp2/lgl.out.pgi -unsafe yes -stat mems < src/inputis.classA
0: segmentation violation
%