Corrected hp_from_double() for both cpu/gpu. Now get identical sums.