ROCm / HIP

HIP: C++ Heterogeneous-Compute Interface for Portability
https://rocmdocs.amd.com/projects/HIP/
MIT License
3.77k stars 539 forks source link

shift count >= width of type warning in amd_device_functions.h #3663

Open ET3D-ET3D opened 2 weeks ago

ET3D-ET3D commented 2 weeks ago

I'm using HIP 6.1.2 in Windows, VS2019.

Investigating another issue, I tried to move the hip includes to another location, and when compiling them there I get some minor warnings/errors.

In amd_device_functions.h I get "shift count >= width of type" for functions mul64hi and umul64hi. These all refer to ">> 32" done on ulong variables.

ppanchad-amd commented 2 weeks ago

Hi @ET3D-ET3D. Internal ticket has been created to assist with your issue. Thanks!

schung-amd commented 2 weeks ago

Hi @ET3D-ET3D, it looks like this has been fixed in ROCm 6.2.x: https://github.com/ROCm/clr/commit/74cae705aea88a3b8f438582755ef0d8ad0ea8e8. I'm not sure when the next version of the HIP SDK or ROCm for WSL2 will be out to provide this fix.