Stop inserting static casts in Hipify (#14853)
authorJunjie Bai <bai@in.tum.de>
Thu, 6 Dec 2018 21:17:28 +0000 (13:17 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 6 Dec 2018 21:19:33 +0000 (13:19 -0800)
commitf82f4de2291aed18f7b8f1519e3f6ce3491dde09
tree23b5377ca70b96be9501231c9b403d6f1364d78b
parentb5db6ac9f1a3c8ee5584b671bfad080b2c12c912
Stop inserting static casts in Hipify (#14853)

Summary:
Latest hcc can now properly cast to correct type internally, so there is no need to insert static_cast in hipify scripts anymore.
However the hcc included in the latest ROCm release (1.9.2) doesn't have this fix, so leaving a flag to continue doing static_cast for those using the official ROCm releases.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14853

Differential Revision: D13363171

Pulled By: bddppq

fbshipit-source-id: a36476a8511222ff3c933d31788e8a0ffb04f5ca
tools/amd_build/build_amd.py
tools/amd_build/pyHIPIFY/hipify_python.py