CUDA version with new backend running but gives wrong results