Skip to Content.
Sympa Menu

h5part - AW: [H5part] H5Hut fortran compiling

h5part AT lists.psi.ch

Subject: H5Part development and discussion

List archive

AW: [H5part] H5Hut fortran compiling


Chronological Thread  
  • From: "Koch, Benjamin" <benjamin.koch2 AT rwth-aachen.de>
  • To: "Gsell Achim (PSI)" <achim.gsell AT psi.ch>
  • Cc: "h5part AT lists.psi.ch" <h5part AT lists.psi.ch>
  • Subject: AW: [H5part] H5Hut fortran compiling
  • Date: Tue, 2 Mar 2021 19:03:33 +0000
  • Accept-language: de-DE, en-US
  • Ironport-sdr: ZU4uZXxnJKmSfPy1xnTb5+PlnO3EiVEBrauXJT/QzYalS7LxLAouGZd1EORCdIL72C89USejha JayBTH9LtBAg==

Hey Achim,


I'm working on the standard linux cluster @RWTH.


With --enable-examples --enable-parallel compiling the examples worked.
After that I browsed through the Makefiles of the examples and found the error. I did not include the C library -lH5hut.

Now i have learned how to compile Fortran and C Code together 😅


Because of the test error, I still attached the h5cc output. The h5pcc command could not be found on the cluster.

Can the test error create problems? Where should I expect errors?



Thank you very much and best regards

Benjamin Koch


Von: Gsell Achim (PSI) <achim.gsell AT psi.ch>
Gesendet: Montag, 1. März 2021 16:39:56
An: Koch, Benjamin
Cc: h5part AT lists.psi.ch
Betreff: Re: [H5part] H5Hut fortran compiling
 
Hi Benjamin,

I just tried with GCC without any problems. With Intel I still have to test.


On 1 Mar 2021, at 11:56, Koch, Benjamin <benjamin.koch2 AT rwth-aachen.de> wrote:

I'm working on a linux cluster. 

Anything special on this cluster? Or just some standard Linux cluster @RWTH? 

Today, i tried it again, to have a clean environement.
Here is a list of how I installed H5hut, did I something wrong?

  1. git clone https://gitlab.psi.ch/H5Hut/src.git
  2. ./autogen.sh (in the src folder of course)
  3. ./configure --enable-fortran (Is this what you mean by how I call the configure script?)

Yes.

If you want to build the example, you can run configure with ‘--enable-examples’.

  1. make
  2. make test (Ouput: Nothing to do for test)
  3. Tried the tests in the test folder. The h5u_test gives an error for "read4" that the values are incorrect.

Which hdf5 version are you using? Please send the output of

h5cc -showconfig

and

h5pcc -showconfig


  1. make install

After that, I call al little script in the examples folder:
<Script.png>
In a similar way I was able to compile the C code, but maybe I'm missing something for Fortran?

In the script you are using the MPI wrapper of the Intel Fortran compiler but you compiled H5hut without MPI! To compile H5hut with MPI you have to run something like

configure --enable-parallel --enable-fortran ...

On some systems you have to set the environment variables CC and FC:
CC=mpiicc FC=mpiifort ./configure ...
make
...




Best

Achim


Best regards
Benjamin Koch

Of topic:
One could say, because the institute for Combustion Technology is known for the thermodynamics lecture. But there is also another Institute for technical thermodynamics.



Von: Gsell Achim (PSI) <achim.gsell AT psi.ch>
Gesendet: Freitag, 26. Februar 2021 13:29
An: Koch, Benjamin
Cc: h5part AT lists.psi.ch
Betreff: Re: [H5part] H5Hut fortran compiling
 
Hi Benjamin,

I just tried to reproduce on macOS 10.15 with gcc8 from Macports. For me everything compiled and linked fine.

On which system (Linux (distribution?), macOS, ...) are you compiling?

How do you call the configure script?

From where did you downloaded/cloned H5hut? The "official" URL is:

https://gitlab.psi.ch/H5hut/src


Best

Achim
--
Of topic: is the Institute for Combustion Technology the former Institut für Thermodynamik?


> On 25 Feb 2021, at 11:45, Koch, Benjamin <benjamin.koch2 AT rwth-aachen.de> wrote:
> 
> Hello team of H5Hut,
> 
> I'm a master student of the RWTH-Aachen and I work for the Institute for Combustion Technology. My supervisor and I are interested in data management via HDF5.
> We are working on the simulation of nano-particle combustion. Because the current method for writing out particle quantities could be faster, we discover your program on github.
> Our simulation program uses fortran code, so we try to include the fortran part of H5Hut.
> 
> I tried to run the examples and it worked for the C part of the code, but I can't get the fortran code working.
> 
> I think there is a problem with the linking of the library. The library seems to be linked, but then the error messages follow that some functions are not found. For example "pathto/src/build/lib/libH5hutF.so: undefined reference to `h5_flush_iteration'".
> 
> Before I get too deep into the solving this problem, I like to ask:
> The last updates of the fortran code seem to be some time ago, is it still up to date?
> 
> Best regards
> Benjamin Koch

Senior Scientist
Paul Scherrer Institut
Laboratory for Scientific Computing and Modeling
OHSA/D04
5232 Villigen PSI

SUMMARY OF THE HDF5 CONFIGURATION
=================================

General Information:
-------------------
HDF5 Version: 1.8.12
Configured on: Sat Jan 30 04:34:05 UTC 2021
Configured by:
mockbuild AT buildvm-x86-25.iad2.fedoraproject.org
Configure mode: production
Host system: x86_64-redhat-linux-gnu
Uname information: Linux buildvm-x86-25.iad2.fedoraproject.org
5.10.6-200.fc33.x86_64 #1 SMP Mon Jan 11 20:05:21 UTC 2021 x86_64 x86_64
x86_64 GNU/Linux
Byte sex: little-endian
Libraries: static, shared
Installation point: /usr

Compiling Options:
------------------
Compilation Mode: production
C Compiler: /usr/bin/gcc ( gcc (GCC) 4.8.5 20150623 )
CFLAGS: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic
H5_CFLAGS: -std=c99 -pedantic -Wall -Wextra -Wundef
-Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align
-Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
-Wnested-externs -Winline -Wfloat-equal -Wmissing-format-attribute
-Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat=2
-Wunreachable-code -Wendif-labels -Wdeclaration-after-statement
-Wold-style-definition -Winvalid-pch -Wvariadic-macros -Winit-self
-Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros
-Wunsafe-loop-optimizations -Wc++-compat -Wstrict-overflow -Wlogical-op
-Wlarger-than=2048 -Wvla -Wsync-nand -Wframe-larger-than=16384
-Wpacked-bitfield-compat -Wstrict-overflow=5 -Wjump-misses-init
-Wunsuffixed-float-constants -Wdouble-promotion -Wsuggest-attribute=const
-Wtrampolines -Wstack-usage=8192 -Wvector-operation-performance
-Wsuggest-attribute=pure -Wsuggest-attribute=noreturn
-Wsuggest-attribute=format -O3 -fomit-frame-pointer -finline-functions
AM_CFLAGS:
CPPFLAGS:
H5_CPPFLAGS: -D_POSIX_C_SOURCE=199506L -DNDEBUG
-UH5_DEBUG_API
AM_CPPFLAGS: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_BSD_SOURCE
Shared C Library: yes
Static C Library: yes
Statically Linked Executables: no
LDFLAGS: -Wl,-z,relro
H5_LDFLAGS:
AM_LDFLAGS:
Extra libraries: -lsz -lz -ldl -lm
Archiver: ar
Ranlib: ranlib
Debugged Packages:
API Tracing: no

Languages:
----------
Fortran: yes
Fortran Compiler: /usr/bin/gfortran ( GNU Fortran (GCC) 4.8.5
20150623 )
Fortran 2003 Compiler: yes
Fortran Flags: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules
H5 Fortran Flags:
AM Fortran Flags:
Shared Fortran Library: yes
Static Fortran Library: yes

C++: yes
C++ Compiler: /usr/bin/g++ ( g++ (GCC) 4.8.5 20150623 )
C++ Flags: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic
H5 C++ Flags:
AM C++ Flags:
Shared C++ Library: yes
Static C++ Library: yes

Features:
---------
Parallel HDF5: no
High Level library: yes
Threadsafety: no
Default API Mapping: v18
With Deprecated Public Symbols: yes
I/O filters (external): deflate(zlib),szip(encoder)
I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
MPE: no
Direct VFD: no
dmalloc: no
Clear file buffers before write: yes
Using memory checker: no
Function Stack Tracing: no
GPFS: no
Strict File Format Checks: no
Optimization Instrumentation: no
Large File Support (LFS): yes



Archive powered by MHonArc 2.6.19.

Top of Page