You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2025/07/14 11:56:38 UTC
(tvm) branch main updated: [CodeGen][CUDA] Add sinhf CUDA Math API for CodeGen (#18144)
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new a3194e5fad [CodeGen][CUDA] Add sinhf CUDA Math API for CodeGen (#18144)
a3194e5fad is described below
commit a3194e5fad9da16fb28a2b60cddc2169c7782f9c
Author: ConvolutedDog <ya...@nudt.edu.cn>
AuthorDate: Mon Jul 14 19:56:31 2025 +0800
[CodeGen][CUDA] Add sinhf CUDA Math API for CodeGen (#18144)
Add sinhf CUDA Math API for codegen
---
src/target/source/literal/cuda_half_t.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/target/source/literal/cuda_half_t.h b/src/target/source/literal/cuda_half_t.h
index f8519bc6c1..3f1fcbc2dc 100644
--- a/src/target/source/literal/cuda_half_t.h
+++ b/src/target/source/literal/cuda_half_t.h
@@ -318,6 +318,7 @@ static inline __device__ __host__ half HALF_MATH_NAME(half x) { \
#if (__CUDA_ARCH__ >= 530)
CUDA_UNSUPPORTED_HALF_MATH_BINARY(hpow, powf)
#if ((__CUDACC_VER_MAJOR__ < 12) || ((__CUDACC_VER_MAJOR__ == 12) && (__CUDACC_VER_MINOR__ < 8)))
+CUDA_UNSUPPORTED_HALF_MATH_UNARY(hsinh, sinhf)
CUDA_UNSUPPORTED_HALF_MATH_UNARY(htanh, tanhf)
#endif
CUDA_UNSUPPORTED_HALF_MATH_UNARY(htan, tanf)
@@ -361,6 +362,7 @@ static inline __device__ __host__ nv_bfloat16 HALF_MATH_NAME(nv_bfloat16 x) {
CUDA_UNSUPPORTED_HALF_MATH_BINARY(hpow, powf)
#if ((__CUDACC_VER_MAJOR__ < 12) || ((__CUDACC_VER_MAJOR__ == 12) && (__CUDACC_VER_MINOR__ < 8)))
+CUDA_UNSUPPORTED_HALF_MATH_UNARY(hsinh, sinhf)
CUDA_UNSUPPORTED_HALF_MATH_UNARY(htanh, tanhf)
#endif
CUDA_UNSUPPORTED_HALF_MATH_UNARY(htan, tanf)