summaryrefslogtreecommitdiff
path: root/src/cuda-sim
diff options
context:
space:
mode:
authortgrogers <[email protected]>2018-05-04 12:04:19 -0400
committertgrogers <[email protected]>2018-05-04 12:04:19 -0400
commit2be06dee25a11f9c37e94ed8d92cdeac71cf504e (patch)
treef2b9f9fa6a38a2aaf33bd424afc8404d0e607fc1 /src/cuda-sim
parentcdb59de6dc329ce5777e3c961c09d26f37d32fec (diff)
Getting the simulator to compile with older versions of g++
Diffstat (limited to 'src/cuda-sim')
-rw-r--r--src/cuda-sim/cuda-math.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cuda-sim/cuda-math.h b/src/cuda-sim/cuda-math.h
index a3db0df..afac330 100644
--- a/src/cuda-sim/cuda-math.h
+++ b/src/cuda-sim/cuda-math.h
@@ -67,6 +67,8 @@
#ifndef CUDA_MATH
#define CUDA_MATH
+#include <cmath>
+
// cuda math implementations
#undef max
#undef min
@@ -148,6 +150,7 @@ float __ll2float_rd(long long int a) {
#include <device_types.h>
#include <fenv.h>
+
// 32-bit integer to float
float __int2float_rn(int a) {
int orig_rnd_mode = fegetround();