summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_sim.h
diff options
context:
space:
mode:
authoraamir <[email protected]>2018-06-01 09:52:12 -0700
committeraamir <[email protected]>2018-06-01 09:52:12 -0700
commite5f532a3b65e17f49991ed08a275f87ac2d68d0a (patch)
tree9f6ad33986611788965665592ce35c75faf2c054 /src/cuda-sim/ptx_sim.h
parent03de5ae03420ba5666d669c6f76faccf2704fa58 (diff)
wmma load working
Diffstat (limited to 'src/cuda-sim/ptx_sim.h')
-rw-r--r--src/cuda-sim/ptx_sim.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cuda-sim/ptx_sim.h b/src/cuda-sim/ptx_sim.h
index 403ce5b..fbd7881 100644
--- a/src/cuda-sim/ptx_sim.h
+++ b/src/cuda-sim/ptx_sim.h
@@ -28,7 +28,7 @@
#define ptx_sim_h_INCLUDED
#include <stdlib.h>
-
+#include "half.hpp"
#include "../abstract_hardware_model.h"
#include "../tr1_hash_map.h"
@@ -53,6 +53,8 @@ struct param_t {
#include "memory.h"
+using half_float::half;
+
union ptx_reg_t {
ptx_reg_t() {
bits.ms = 0;
@@ -126,7 +128,7 @@ union ptx_reg_t {
unsigned short u16;
unsigned int u32;
unsigned long long u64;
- float f16;
+ half f16;
float f32;
double f64;
struct {