Skip to content

Commit 767aa77

Browse files
committed
Ensure DBL_EPSILON and FLT_EPSILON are defined
1 parent 4be129e commit 767aa77

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

include/ceed/jit-source/cuda/cuda-jit.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@
1313
#define CeedPragmaSIMD
1414
#define CEED_Q_VLA 1
1515

16+
#ifndef DBL_EPSILON
17+
#define DBL_EPSILON 2.22044604925031308084726333618164062e-16
18+
#endif
19+
#ifndef FLT_EPSILON
20+
#define FLT_EPSILON 1.19209289550781250000000000000000000e-7F
21+
#endif
22+
1623
#include "cuda-types.h"

include/ceed/jit-source/hip/hip-jit.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@
1313
#define CeedPragmaSIMD
1414
#define CEED_Q_VLA 1
1515

16+
#ifndef DBL_EPSILON
17+
#define DBL_EPSILON 2.22044604925031308084726333618164062e-16
18+
#endif
19+
#ifndef FLT_EPSILON
20+
#define FLT_EPSILON 1.19209289550781250000000000000000000e-7F
21+
#endif
22+
1623
#include "hip-types.h"

include/ceed/jit-source/sycl/sycl-jit.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@
1313
#define CeedPragmaSIMD
1414
#define CEED_Q_VLA 1
1515

16+
#ifndef DBL_EPSILON
17+
#define DBL_EPSILON 2.22044604925031308084726333618164062e-16
18+
#endif
19+
#ifndef FLT_EPSILON
20+
#define FLT_EPSILON 1.19209289550781250000000000000000000e-7F
21+
#endif
22+
1623
// Need quotes for recursive header inclusion
1724
#include "sycl-types.h"

0 commit comments

Comments
 (0)