diff options
| author | Tim Rogers <[email protected]> | 2018-06-22 23:05:17 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-22 23:05:17 -0400 |
| commit | 4a4def2c34dc1e749d163f473810f4047bf308bf (patch) | |
| tree | f2b9f9fa6a38a2aaf33bd424afc8404d0e607fc1 /src | |
| parent | cdb59de6dc329ce5777e3c961c09d26f37d32fec (diff) | |
| parent | 2be06dee25a11f9c37e94ed8d92cdeac71cf504e (diff) | |
Merge pull request #72 from tgrogers/dev
Getting the simulator to compile with older versions of g++
Diffstat (limited to 'src')
| -rw-r--r-- | src/cuda-sim/cuda-math.h | 3 |
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(); |
