diff options
| author | Ahmad Alawneh <[email protected]> | 2023-06-12 17:31:05 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-12 17:31:05 -0400 |
| commit | b471b3481b2399222ffd9ee0f007628834e68767 (patch) | |
| tree | 267f112f3608ce7f4caa898250a3eb24a90814b6 /src/cuda-sim/ptx_sim.cc | |
| parent | 73db3f79467cb918c6ac11796268e2492c69b101 (diff) | |
fixing bunch of formatting warnings (#53)
* fixing bunch of formating warrnings
* remove unintialized and unused results warnnings
* revert the changes , as it doenst fix the warning
---------
Co-authored-by: Fangjia Shen <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_sim.cc')
| -rw-r--r-- | src/cuda-sim/ptx_sim.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc index dc801f8..6503499 100644 --- a/src/cuda-sim/ptx_sim.cc +++ b/src/cuda-sim/ptx_sim.cc @@ -369,7 +369,7 @@ static void print_reg(FILE *fp, std::string name, ptx_reg_t value, fprintf(fp, ".u64 %llu [0x%llx]\n", value.u64, value.u64); break; case F16_TYPE: - fprintf(fp, ".f16 %f [0x%04x]\n", value.f16, (unsigned)value.u16); + fprintf(fp, ".f16 %f [0x%04x]\n", static_cast<float>(value.f16), (unsigned)value.u16); break; case F32_TYPE: fprintf(fp, ".f32 %.15lf [0x%08x]\n", value.f32, value.u32); |
