hyperlink - compiling with HDF5: unable to link library files (fortran 90) -
hyperlink - compiling with HDF5: unable to link library files (fortran 90) -
i seek compile these files using hdf5 have straight linked , included necessary ( think) still compile unable find files needed
this makefile:
cc = h5cc fc = h5fc ld = h5fc fdebug = -std -g -traceback cflags = -g -o0 -wall -pedantic fflags = -g -o0 -wall -i$(h5dir)/include -l$(h5dir)/lib/libhdf5hl_fortran.a ldflags = -i$(h5dir)/include -l$(h5dir)/lib/libhdf5hl_fortran.a #ldflags = -i$(mklroot)/include -l$(mklroot) -mkl=sequential # -opt-block-factor=16 -opt-prefetch=4 \ .suffixes: .suffixes: .c .f .f90 .f90 .o objs = timing.o \ kinds.o \ rw_matrix.o \ exe = matmul_omp.exe all: $(exe) $(exe): $(objs) matmul_omp.o $(ld) $(ldflags) -o $@ $^ .f90.o: -$(rm) -f $*.o $*.mod $(fc) $(fflags) -c $< .c.o: $(cc) $(cflags) -c $< .phoney: clean clean:
this err:
h5fc -i/curc/tools/x_86_64/rh6/hdf5/1.8.13/szip/2.1/zlib/1.2.8/jpeglib/9a/openmpi/1.8.2/intel/13.0.0/include -l/curc/tools/x_86_64/rh6/hdf5/1.8.13/szip/2.1/zlib/1.2.8/jpeglib/9a/openmpi/1.8.2/intel/13.0.0/lib/libhdf5hl_fortran.a -o matmul_omp.exe timing.o matmul_omp.o gfortran: /usr/lib64/libhdf5hl_fortran.a: no such file or directory gfortran: /usr/lib64/libhdf5_hl.a: no such file or directory gfortran: /usr/lib64/libhdf5_fortran.a: no such file or directory gfortran: /usr/lib64/libhdf5.a: no such file or directory
as can see straight link libhdf5hl_fortran.a. dont know why error giving different directory /usr/lib64/
i think have couple of things wrong here.
if using h5fc
shouldn't need add together include , lib paths. whole point of helper applications.
you adding paths have intel, yet h5fc
has gnu (gfortran) error.
the gfortran build of hdf5 looks if not have fortran bindings built.
i suggest trying following. using total paths (as have done) phone call ifort
instead of h5fc
:
ifort -i/curc/tools/x_86_64/rh6/hdf5/1.8.13/szip/2.1/zlib/1.2.8/jpeglib/9a/openmpi/1.8.2/intel/13.0.0/include \ -l/curc/tools/x_86_64/rh6/hdf5/1.8.13/szip/2.1/zlib/1.2.8/jpeglib/9a/openmpi/1.8.2/intel/13.0.0/lib/libhdf5hl_fortran.a \ -o matmul_omp.exe timing.o matmul_omp.o
hyperlink fortran hdf5
Comments
Post a Comment