SWMR feature on Windows

Hello, I find the following description in the SWMR User’s Guide.

The HDF5 SWMR feature was tested on Linux clusters with GPFS and Lustre, Linux systems with ext3/4, FreeBSD with UFS2, OS X with HFS+, and Windows with NTFS and GPFS. The SWMR feature does not work on network file systems (NFS, SMB/Windows file shares, and so on) since write ordering may not be preserved on those systems.

This description suggests that SWMR is supported on Windows. However, another statement indicates that the HDF5 SWMR implementation is currently not being tested on Windows at this time.

The HDF5 SWMR implementation is currently only supported on Unix-like systems. The implementation is not being tested on Windows systems at this time.

Therefore, there is ambiguity regarding whether SWMR is officially supported on Windows.I am using Windows with the NTFS file system. Is it safe to use SWMR in my application?

Hi @1464928815,

it should be fine to use SWMR in your application. The wording there is definitely a bit ambiguous, but it also fairly accurately describes the current situation. SWMR was tested on Windows in the past, but we’re currently only performing very basic testing of the SWMR API, not necessarily the actual functionality, on Windows systems. However, SWMR should be supported on file systems where the POSIX write() semantics are followed.

Thank you for your response. May I inquire whether comprehensive testing and formal support for the Windows platform are included in the future development roadmap of HDF5?

LifeboatLLC/hdf5_swmr: Official HDF5® Library Repository (New)

HDFGroup/hdf5 at feature/vfd_swmr (Old)

Yes, we do plan to do more comprehensive testing on Windows in the future. @hyoklee has also linked to efforts by Lifeboat on another implementation of SWMR which you can read more about at hdf5_swmr/doc/vfd-swmr-user-guide.md at feature/vfd_swmr · LifeboatLLC/hdf5_swmr · GitHub.

1 Like