Skip to content

Commit 75e1ee8

Browse files
committed
bring back to sm_75 considering intel#5642
1 parent 5db0f72 commit 75e1ee8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/BuiltinsNVPTX.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ BUILTIN(__nvvm_cos_approx_f, "ff", "")
220220

221221
// Tanh
222222

223-
TARGET_BUILTIN(__nvvm_tanh_approx_f, "ff", "", AND(SM_80,PTX70))
223+
TARGET_BUILTIN(__nvvm_tanh_approx_f, "ff", "", AND(SM_75,PTX70))
224224
TARGET_BUILTIN(__nvvm_tanh_approx_f16, "hh", "", AND(SM_75, PTX70))
225225
TARGET_BUILTIN(__nvvm_tanh_approx_f16x2, "V2hV2h", "", AND(SM_75, PTX70))
226226

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4728,7 +4728,7 @@ def fno_sycl_device_lib_EQ : CommaJoined<["-"], "fno-sycl-device-lib=">, Group<s
47284728
"are libc, libm-fp32, libm-fp64, all">;
47294729
defm nvvm_cuda_approx_tanh : BoolFOption<"sycl-cuda-approx-tanh",
47304730
TargetOpts<"NVVMCudaApproxTanhf">, DefaultFalse,
4731-
PosFlag<SetTrue, [CC1Option], "Use the built-in fast approximation of tanh function. Device needs to have a compute capability >= 8.0">,
4731+
PosFlag<SetTrue, [CC1Option], "Use the built-in fast approximation of tanh function for devices having c.c.>=7.5">,
47324732
NegFlag<SetFalse>>;
47334733
//===----------------------------------------------------------------------===//
47344734
// FLangOption + CoreOption + NoXarchOption

0 commit comments

Comments
 (0)