Was accidentally passing a sizeof(double) call to cuda_return_from_gpu