diff options
| author | Ahmad Alawneh <[email protected]> | 2023-06-20 14:42:00 -0400 |
|---|---|---|
| committer | Ahmad Alawneh <[email protected]> | 2023-06-20 14:42:00 -0400 |
| commit | 68a91076b2aab8f60bae551d6df6b3a8aa411463 (patch) | |
| tree | d380fa98c220285ef4f3fc5b152ba1d314f04fdb /src/cuda-sim/instructions.cc | |
| parent | 24a35fbd683606efabae8d60a3283dc2bd2a66b0 (diff) | |
fix most c warnings
Diffstat (limited to 'src/cuda-sim/instructions.cc')
| -rw-r--r-- | src/cuda-sim/instructions.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc index e22d88a..4981c99 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -1948,7 +1948,7 @@ void mma_impl(const ptx_instruction *pI, core_t *core, warp_inst_t inst) { hex_val = (v[k / 2].s64 & 0xffff); else hex_val = ((v[k / 2].s64 & 0xffff0000) >> 16); - nw_v[k].f16 = *((half *)&hex_val); + nw_v[k].f16 = *(reinterpret_cast<half*>(hex_val)); } } if (!((operand_num == 3) && (type2 == F32_TYPE))) { |
