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.
Цей коміт міститься в:
Aaron Enye Shi
2018-07-05 20:15:41 +00:00
джерело 930a16bccd
коміт 47d78e372e
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; }