[libc-commits] [libc] 7c8a52f - [libc][Obvious] Fix AMDGPU control constant for vendor sqrt
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Tue Jul 25 05:59:35 PDT 2023
Author: Joseph Huber
Date: 2023-07-25T07:59:23-05:00
New Revision: 7c8a52f90c3eaa70297e784c4b5dce7375facee9
URL: https://github.com/llvm/llvm-project/commit/7c8a52f90c3eaa70297e784c4b5dce7375facee9
DIFF: https://github.com/llvm/llvm-project/commit/7c8a52f90c3eaa70297e784c4b5dce7375facee9.diff
LOG: [libc][Obvious] Fix AMDGPU control constant for vendor sqrt
Summary:
This is supposed to be enabled to say that we want correct sqrt by
default.
Added:
Modified:
libc/src/math/gpu/vendor/amdgpu/platform.h
Removed:
################################################################################
diff --git a/libc/src/math/gpu/vendor/amdgpu/platform.h b/libc/src/math/gpu/vendor/amdgpu/platform.h
index ae2890bbb1db28..6ec47c24a93a2d 100644
--- a/libc/src/math/gpu/vendor/amdgpu/platform.h
+++ b/libc/src/math/gpu/vendor/amdgpu/platform.h
@@ -25,7 +25,7 @@ extern const uint8_t __oclc_unsafe_math_opt = 0;
extern const uint8_t __oclc_daz_opt = 0;
// Disable rounding optimizations for 32-bit square roots.
-extern const uint8_t __oclc_correctly_rounded_sqrt32 = 0;
+extern const uint8_t __oclc_correctly_rounded_sqrt32 = 1;
// Disable finite math optimizations.
extern const uint8_t __oclc_finite_only_opt = 0;
More information about the libc-commits
mailing list