Skip to content

Commit

Permalink
Revert "fix cuda half math function is undefined: hpow, htanh (apache…
Browse files Browse the repository at this point in the history
…#6225)" (apache#6249)

This reverts commit ed04cdd.
  • Loading branch information
tqchen authored and Trevor Morris committed Sep 2, 2020
1 parent 3451de0 commit d03de45
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/target/source/literal/cuda_half_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"(
Expand Down

0 comments on commit d03de45

Please sign in to comment.