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/clr commit: b362c53475]
此提交包含在:
Aaron Enye Shi
2018-07-05 20:15:41 +00:00
父節點 f78a8d7fd6
當前提交 94cc27d4d6
共有 3 個檔案被更改,包括 12 行新增 和 9 行删除
-7
查看文件
@@ -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; }