TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Parallel_io_parameters.h
1/****************************************************************************
2* Copyright (c) 2025, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Parallel_io_parameters_included
17#define Parallel_io_parameters_included
18#include <Interprete.h>
19#include <LataTools.h> // For 'Size_t'
20
22{
23 Declare_instanciable(Parallel_io_parameters);
24
25public:
26 Entree& interpreter(Entree&) override;
27 static Size_t get_max_block_size() { return max_block_size_; }
28 static int get_nb_writing_processes();
29
30protected:
31 static void run_bench_read(const Nom& ijk_splitting);
32 static void run_bench_write(const Nom& ijk_splitting);
33
34 // File writes will be performed by chunks of this size (in bytes)
35 // The size should be a multiple of the GPFS block size or lustre stripping size
36 // (typically several megabytes).
37 static Size_t max_block_size_;
38
39 // This is the number of processes that will write concurrently to the file system
40 // (this must be set according to the capacity of the filesystem, set to 1 on
41 // small computers, can be up to 64 or 128 on very large systems).
43};
44#endif
Classe de base des objets "interprete".
Definition Interprete.h:38
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:76
static void run_bench_write(const Nom &ijk_splitting)
static void run_bench_read(const Nom &ijk_splitting)
Entree & interpreter(Entree &) override