Peano
Loading...
Searching...
No Matches
PrecisionControl.h
Go to the documentation of this file.
1
// This file is part of the ExaHyPE2 project. For conditions of distribution and
2
// use, please see the copyright notice at www.peano-framework.org
3
#pragma once
4
5
namespace
exahype2
{
6
enum class
PrecisionCommand
{
7
Long_double
=
sizeof
(
long
double
),
8
Double
=
sizeof
(
double
),
9
Single
=
sizeof
(float),
10
Float
=
Single
,
11
Half
=
sizeof
(
float
) / 2,
12
Float16_t
=
Half
,
13
FP16
=
Half
,
14
Bfloat
= -1,
15
Bfloat16_t
=
Bfloat
,
16
BF16
=
Bfloat
,
17
Custom
18
};
19
23
PrecisionCommand
getDefaultPrecisionCommand
();
24
}
// namespace exahype2
double
const double
Definition
DiscontinuousGalerkinDiscretisation.Abstract.template.cpp:8
exahype2
For the generic kernels that I use here most of the time.
Definition
CellAccess.h:13
exahype2::getDefaultPrecisionCommand
PrecisionCommand getDefaultPrecisionCommand()
The default is double as this is the highest precision available per default.
Definition
PrecisionControl.cpp:3
exahype2::PrecisionCommand
PrecisionCommand
Definition
PrecisionControl.h:6
exahype2::PrecisionCommand::Float
@ Float
exahype2::PrecisionCommand::Long_double
@ Long_double
exahype2::PrecisionCommand::Bfloat
@ Bfloat
exahype2::PrecisionCommand::Single
@ Single
exahype2::PrecisionCommand::Bfloat16_t
@ Bfloat16_t
exahype2::PrecisionCommand::Custom
@ Custom
exahype2::PrecisionCommand::FP16
@ FP16
exahype2::PrecisionCommand::Half
@ Half
exahype2::PrecisionCommand::Double
@ Double
exahype2::PrecisionCommand::Float16_t
@ Float16_t
exahype2::PrecisionCommand::BF16
@ BF16
src
exahype2
PrecisionControl.h
Generated on Sat Dec 21 2024 12:32:56 for Peano by
1.10.0