Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

HDF5 2.1.0

Eldhuset
初心者
947件の閲覧回数

I am running Fortran 2021.7.1 with oneAPI and Visual Studio 2022. I want to use HDF5 2.1.0. 

I think I can put file names from HDF5 into QWin Property Pages. Which file names do I need ?

Do I need a more recent Fortran version ?

 

Kind regards,

Knut Eldhuset

6 返答(返信)
Steve_Lionel
名誉コントリビューター III
925件の閲覧回数

Can you explain in more detail what you want to do, what you have tried, and what goes wrong? HDF5 is just a file format - Intel Fortran and Quickwin doesn't know anything about it, nor should it. If you're looking to do file selection, then you may want to look at the filename filter component of the GETOPENFILENAME structure.

Eldhuset
初心者
849件の閲覧回数

Hi Steve

Thanks for your reply. I try to explain.

I want to read NISAR (JPL/NASA - ISRO) data on HDF5 file format.

ChatGPT has told me following:

 

In QWin1 Property Pages:

In Fortran - General - Additional Include Directories:   Put C:\Program Files\HDF5\2.1.0\include  and   C:\ProgramFiles\HDF5\2.1.0\mod\shared

In Linker - Input -Additional Dependencies : Put C:\Program Files\HDF_Group\HDF5\2.1.0\lib\hdf5.lib  and 

C:\Program Files\HDF_Group\HDF5\2.1.0\lib\hdf5_fortran.lib 

 

Then I take Build - BuildQWin1

I then get:  error#7012: The module file cannot be read. Its format requires a more recent F90.

 

My question is: Has ChatGPT told me the correct input files. Or do I need a more recent Fortran version ?

 

 

Kind regards Knut

Norwegian Defence Research Establishment

Steve_Lionel
名誉コントリビューター III
792件の閲覧回数

There is a .mod file in the HDF5 \mod\shared folder that is not in the format expected by the compiler. It could be that it was compiled for a 32-bit compiler and the current Intel Fortran is 64-bit only. If the .f90 source for the module(s) is available, you can just add those source files to your project.

If you'll provide a link to where you downloaded HDF5 I can take a look.

Eldhuset
初心者
758件の閲覧回数

Thanks Steve

 

Download HDF5® - The HDF Group - ensuring long-term access and usability of HDF data and supporting users of HDF technologies

hdf5-2.1.0-win-vs2022_intel.msi

 

The installation files I use:

one_w_BaseKit_p_2022.2.0.252

one_HPCKit_p_2022.3.1.19755

 

I think I use 64-bit compiler

 

I try to compile again when you have looked at this.

 

Regards ,

Knut

 

PS. I have tried to read NISAR  HDF5 SLC (complex pixels) file with IDL, however, it is hanging,  24GB data file. The metafile is OK.

 

 

 

 

Steve_Lionel
名誉コントリビューター III
691件の閲覧回数

I just tried it - no issue with the modules and I did not get the error you did. The library and modules are indeed 64-bit. I could compile all the sources of one of the examples.

If you have problems running a program using the library, we can't help with that.

Eldhuset
初心者
651件の閲覧回数

Rubenquantum

Sorry, I cant help you

 

Regards Knut

返信