We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f30a79 commit a151a75Copy full SHA for a151a75
libclc/ptx-nvidiacl/libspirv/math/tanh.cl
@@ -14,8 +14,8 @@
14
int __clc_nvvm_reflect_arch();
15
int __clc_nvvm_reflect_approx_tanh();
16
17
-float __my_tanhf (float x){
18
- if(__clc_nvvm_reflect_approx_tanh()) {
+float __select_tanhf (float x){
+ if(__clc_nvvm_reflect_approx_tanh() && __clc_nvvm_reflect_arch() >= 800) {
19
return __nvvm_tanh_approx_f(x);
20
} else {
21
return __nv_tanhf(x);
@@ -24,5 +24,5 @@ float __my_tanhf (float x){
24
25
#define __CLC_FUNCTION __spirv_ocl_tanh
26
#define __CLC_BUILTIN __nv_tanh
27
-#define __CLC_BUILTIN_F __my_tanhf
+#define __CLC_BUILTIN_F __select_tanhf
28
#include <math/unary_builtin.inc>
0 commit comments