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
5namespace 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,
13 FP16 = Half,
14 Bfloat = -1,
16 BF16 = Bfloat,
17 Custom
18 };
19
24} // namespace exahype2
For the generic kernels that I use here most of the time.
Definition CellAccess.h:13
PrecisionCommand getDefaultPrecisionCommand()
The default is double as this is the highest precision available per default.