Truncation toward zero produces incorrect interpolation indices for negative border coordinates. Use nearest-even rounding so OpenCL remap matches the CPU behavior.
<math.h>