summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_sim.h
diff options
context:
space:
mode:
authoraamir <[email protected]>2018-06-06 16:31:03 -0700
committeraamir <[email protected]>2018-06-06 16:31:03 -0700
commita089ac9ed1c798108bd0866e422392d6873f6681 (patch)
tree4e7da79beed2270f1ba8095154a49ef7489591f3 /src/cuda-sim/ptx_sim.h
parent4161ccba0d4a99157afed3cdccef0e9c2a6d89e6 (diff)
added profilling xls and changes for regression
Diffstat (limited to 'src/cuda-sim/ptx_sim.h')
-rw-r--r--src/cuda-sim/ptx_sim.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_sim.h b/src/cuda-sim/ptx_sim.h
index fbd7881..ea87e59 100644
--- a/src/cuda-sim/ptx_sim.h
+++ b/src/cuda-sim/ptx_sim.h
@@ -42,6 +42,12 @@
#include "memory.h"
+#define GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100 \
+ + __GNUC_PATCHLEVEL__)
+
+
+
struct param_t {
const void *pdata;
int type;
@@ -128,7 +134,12 @@ union ptx_reg_t {
unsigned short u16;
unsigned int u32;
unsigned long long u64;
+ //gcc 4.7.0
+ #if GCC_VERSION >= 40700
half f16;
+ #else
+ float f16;
+ #endif
float f32;
double f64;
struct {