old opencl sample_z_ab_from_edge to use float64