-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMD] Flush denorms to zero in math.rsqrt f32 (#5438)
This commit modified the denorm handling behavior of math.rsqrt. In case of ftz, it calls llvm.amdgcn.rsq.f32 directly to flush the denormalized inputs to zero. Otherwise, it calls __ocml_rsqrt_f32, which will dynamically check the backend to decide ftz or not. | Arch | non-ftz | ftz | | ---- | ---- | ---- | | CUDA | __nv_rsqrtf => rsqrt.approx.f32 | __nv_rsqrtf => rsqrt.approx.ftz.f32 | | AMD | __ocml_rsqrt_f32 | llvm.amdgcn.rsq.f32 |
- Loading branch information
Showing
4 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters