"docs/source/en/using-diffusers/reusing_seeds.md" did not exist on "7fe88613fa15d230d59482889c440c7befa17c25"
Commit a3d2a407 authored by rocking's avatar rocking
Browse files

[What] use builtin function for sqrt

[Why] compiler will not use v_sqrt_f64_e64 if we use ::sqrt()
parent e7489f97
...@@ -158,9 +158,9 @@ static inline __device__ bool isnan(half_t x) ...@@ -158,9 +158,9 @@ static inline __device__ bool isnan(half_t x)
return (xx & 0x7FFF) > 0x7C00; return (xx & 0x7FFF) > 0x7C00;
}; };
static inline __device__ float sqrt(float x) { return ::sqrtf(x); }; static inline __device__ float sqrt(float x) { return __builtin_amdgcn_sqrtf(x); };
static inline __device__ double sqrt(double x) { return ::sqrt(x); }; static inline __device__ double sqrt(double x) { return __builtin_amdgcn_sqrt(x); };
} // namespace math } // namespace math
} // namespace ck } // namespace ck
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment