more tolerant comparison when running CUDA backend