Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Hdf5Utils::HInit Class Reference

Class serving as an initializer for HDF. More...

#include <arcane/hdf5/Hdf5Utils.h>

Collaboration diagram for Arcane::Hdf5Utils::HInit:

Static Public Member Functions

static constexpr bool hasParallelHdf5 ()
 True HDF5 is compiled with MPI support.
static void useMutex (bool is_active, IParallelMng *pm)
 Function allowing activation or deactivation of locks on each HDF5 call.

Detailed Description

Class serving as an initializer for HDF.

This object allows safe initialization of HDF5 in multi-thread mode.

Definition at line 110 of file hdf5/Hdf5Utils.h.

Constructor & Destructor Documentation

◆ HInit()

Arcane::Hdf5Utils::HInit::HInit ( )

Definition at line 78 of file Hdf5Utils.cc.

Member Function Documentation

◆ hasParallelHdf5()

constexpr bool Arcane::Hdf5Utils::HInit::hasParallelHdf5 ( )
inlinestaticconstexpr

True HDF5 is compiled with MPI support.

Definition at line 119 of file hdf5/Hdf5Utils.h.

Referenced by Arcane::VtkHdfV2DataWriter::_writeDataSetGeneric().

Here is the caller graph for this function:

◆ useMutex()

void Arcane::Hdf5Utils::HInit::useMutex ( bool is_active,
IParallelMng * pm )
static

Function allowing activation or deactivation of locks on each HDF5 call.

Warning
The environment variable ARCANE_HDF5_DISABLE_MUTEX is prioritized over the parameter of this function.
In hydride, if a hybrid parallelMng is used in parallel and a full MPI parallelMng is used, and useMutex() is changed regularly, be careful not to mix HDF5 calls with the two parallelMngs.
Parameters
is_activetrue if mutexes are activated.

Definition at line 88 of file Hdf5Utils.cc.


The documentation for this class was generated from the following files: