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]
Bu işleme şunda yer alıyor:
Aaron Enye Shi committed 2018-07-05 20:15:41 +00:00
1 ebeveyn 0ea959ba9d
işleme 8e1a7fdd09
3 files changed
+12 -9

No files matched your search

-7
Dosyayı Görüntüle
@@ -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; }