After enabling Detectron files hipification and building in PR #295, there are warnings while building the project from the following files:
sigmoid_focal_loss_op_hip.cc
ps_roi_pool_op_hip.cc
smooth_l1_loss_op_hip.cc
The warnings are because HIP does not overload max and abs functions.
Please add appropriate checks #if defined (__HIP_PLATFORM_HCC__) and use more specific HIP functions like fmaxf and fabsfin the corresponding CUDA files.
After enabling Detectron files hipification and building in PR #295, there are warnings while building the project from the following files:
sigmoid_focal_loss_op_hip.cc
ps_roi_pool_op_hip.cc
smooth_l1_loss_op_hip.cc
The warnings are because HIP does not overload
maxandabsfunctions.Please add appropriate checks
#if defined (__HIP_PLATFORM_HCC__)and use more specific HIP functions likefmaxfandfabsfin the corresponding CUDA files.