Implement min/max functions in HIP header

Remove using hc::precise_math min and max. Instead we can use ocml directly for device and std:: for host.


[ROCm/hip commit: 47d78e372e]
This commit is contained in:
Aaron Enye Shi
2018-07-05 20:15:41 +00:00
parent 0ea959ba9d
commit 8e1a7fdd09
3 changed files with 12 additions and 9 deletions
-7
View File
@@ -147,11 +147,4 @@ __device__ void* __hip_hc_memset(void* dst, uint8_t val, size_t size) {
// abort
__device__ void abort() { return hc::abort(); }
__host__ __device__ int min(int arg1, int arg2) {
return (int)(hc::precise_math::fmin((float)arg1, (float)arg2));
}
__host__ __device__ int max(int arg1, int arg2) {
return (int)(hc::precise_math::fmax((float)arg1, (float)arg2));
}
__host__ void* __get_dynamicgroupbaseptr() { return nullptr; }