diff options
| author | aamir <[email protected]> | 2018-06-01 09:52:12 -0700 |
|---|---|---|
| committer | aamir <[email protected]> | 2018-06-01 09:52:12 -0700 |
| commit | e5f532a3b65e17f49991ed08a275f87ac2d68d0a (patch) | |
| tree | 9f6ad33986611788965665592ce35c75faf2c054 /src/cuda-sim/ptx_sim.h | |
| parent | 03de5ae03420ba5666d669c6f76faccf2704fa58 (diff) | |
wmma load working
Diffstat (limited to 'src/cuda-sim/ptx_sim.h')
| -rw-r--r-- | src/cuda-sim/ptx_sim.h | 6 |
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 { |
