h5fc
[
OPTIONS ]
compile_line
h5pfc
[
OPTIONS ]
compile_line
h5fc
and h5pfc
can be used in much the
same way mpif90
by MPICH is used to compile
an HDF5 program.
These tools take care of specifying on the command line
the locations of the HDF5 header files and libraries.
h5fc
is for use in serial computing environments;
h5pfc
is for parallel environments.
h5fc
and h5pfc
subsume all other
compiler scripts in that if you have used a set of scripts to compile
the HDF5 Fortran library, then h5fc
and h5pfc
also use those scripts. For example, when
compiling an MPICH program, you use the mpif90
script. If you have built HDF5 using MPICH, then h5fc
uses the MPICH program for compilation.
Some programs use HDF5 in only a few modules. It is not necessary
to use h5fc
and h5pfc
to compile those
modules which do not use HDF5.
In fact, since h5fc
and h5pfc
are only
convenience scripts, you can still compile HDF5 Fortran modules in
the normal manner, though you will have to specify the
HDF5 libraries and include paths yourself.
Use the -show
option to see the details.
An example of how to use h5fc
to compile the program
hdf_prog
, which consists of the modules
prog1.f90
and prog2.f90
and uses the HDF5 Fortran library, would be as follows.
h5pfc
is used in an identical manner.
# h5fc -c prog1.f90 # h5fc -c prog2.f90 # h5fc -o hdf_prog prog1.o prog2.o
-help
-echo
-prefix=DIR
DIR
to find HDF5
lib/
and include/
subdirectories.
-show
h5fc
and h5pfc
use the
same compiler you used to compile HDF5;
check your compiler's manual for more information
on which options are needed.
h5fc
and h5pfc
defaults.
HDF5_FC
HDF5_FLINKER
Release | Command Line Tool |
1.6.0 | Tool introduced in this release. |