This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git


The following commit(s) were added to refs/heads/master by this push:
     new 7174ac2  Revert "fix cuda half math function is undefined: hpow, htanh 
(#6225)" (#6249)
7174ac2 is described below

commit 7174ac27c670c84c3b4a9783649f3e9e31754dd9
Author: Tianqi Chen <[email protected]>
AuthorDate: Tue Aug 11 17:32:57 2020 -0700

    Revert "fix cuda half math function is undefined: hpow, htanh (#6225)" 
(#6249)
    
    This reverts commit ed04cdd35f1990959ec788be0131b1388fd11d31.
---
 src/target/source/literal/cuda_half_t.h | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/target/source/literal/cuda_half_t.h 
b/src/target/source/literal/cuda_half_t.h
index 422d2c0..baf4ba7 100644
--- a/src/target/source/literal/cuda_half_t.h
+++ b/src/target/source/literal/cuda_half_t.h
@@ -293,19 +293,6 @@ __pack_half2(const half x, const half y) {
   unsigned v1 = *((unsigned short *)&y);
   return (v1 << 16) | v0;
 }
-
-static inline __device__ __host__ half hpow(half x, half y) {
-  float tmp_x = __half2float(x);
-  float tmp_y = __half2float(y);
-  float result = powf(tmp_x, tmp_y);
-  return __float2half(result);
-}
-
-static inline __device__ __host__ half htanh(half x) {
-  float tmp_x = __half2float(x);
-  float result = tanhf(tmp_x);
-  return __float2half(result);
-}
 )";
 
 static constexpr const char* _cuda_warp_intrinsic_util = R"(

Reply via email to