diff options
| author | Ahmad Alawneh <[email protected]> | 2023-07-06 01:18:20 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-06 01:18:20 -0400 |
| commit | a42b72214b92b6a97f16c180ad09631cbe50da33 (patch) | |
| tree | 61bba4462fde2ba21e00a166a952edd1087b9ca9 /src/cuda-sim/instructions.cc | |
| parent | 58beccb510bb892de56b466ac764f24297affebd (diff) | |
| parent | 1ce9febc61ab0e50c01ceea424cbf3e12a149366 (diff) | |
Merge pull request #59 from LAhmos/all_warn
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))) { |
