[mpich-discuss] Problem with compiling mpi fortran programs (btiobenchmark)
Rajeev Thakur
thakur at mcs.anl.gov
Fri May 8 15:13:20 CDT 2009
Configure and build MPICH2 with the environment variables F77 and F90 both
set to gfortran.
Rajeev
> -----Original Message-----
> From: mpich-discuss-bounces at mcs.anl.gov
> [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of
> Christina Patrick
> Sent: Friday, May 08, 2009 2:53 PM
> To: mpich-discuss-digest at mcs.anl.gov;
> mpich-discuss at mcs.anl.gov Discuss
> Subject: [mpich-discuss] Problem with compiling mpi fortran
> programs (btiobenchmark)
>
> Hi All,
>
> I am trying to use the BTIO benchmark (included in NAS Parallel
> Benchmark 3.2 suite) on Linux ... basically trying to compile the mpi
> programs in NPB3.2/NPB3.2-MPI/BT benchmark dir with the command line:
>
> # make bt NPROCS=4 CLASS=D SUBTYPE=full
>
> When I specify
> MPIF77 = f77 (which is the compiler used by mpif77), I get
> the compile error:
>
> -->randi8.f: In function `randlc':
> -->randi8.f:23:
> --> data i246m1/X'00003FFFFFFFFFFF'/
> --> ^
> -->Integer at (^) too large
> -->randi8.f: In subroutine `vranlc':
> -->randi8.f:53:
> --> data i246m1/X'00003FFFFFFFFFFF'/
> --> ^
> -->Integer at (^) too large
> -->make[1]: *** [../common/randi8.o] Error 1
>
>
> Basically, I think that f77 is not supporting the datatype "integer*8"
> since the var i246m1 is declared as integer*8
> I am able to circumvent this error if I use the compiler MPIF77 =
> gfortran and use the the compiler flag "-fno-range-check"
> However, now I get a compiler error:
>
>
> -->/usr/bin/ld: skipping incompatible
> mpich2-1.0.8/install/lib/libfmpich.a when searching for -lfmpich
> -->/usr/bin/ld: cannot find -lfmpich
> -->collect2: ld returned 1 exit status
> -->make[2]: *** [bt-full] Error 1
>
>
> Then I tried compiling the programs under "mpich2-1.0.8/examples/f77"
> and I get the same problem.
>
> If anybody has compiled the mpi part in the btio benchmark or if you
> have experience with compiling fortran programs, could you please help
> me?
>
> Thanks and Regards,
> Christina.
>
More information about the mpich-discuss
mailing list