From df27fe0afae1cd3694d36cdd28059330954b7d52 Mon Sep 17 00:00:00 2001 From: Jed Brown Date: Mon, 2 May 2022 19:21:45 -0600 Subject: [PATCH] WIP: backends/cuda: fix type mismatch --- backends/cuda-ref/ceed-cuda-vector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/cuda-ref/ceed-cuda-vector.c b/backends/cuda-ref/ceed-cuda-vector.c index c67db91f71..3e605abb68 100644 --- a/backends/cuda-ref/ceed-cuda-vector.c +++ b/backends/cuda-ref/ceed-cuda-vector.c @@ -375,7 +375,7 @@ static int CeedVectorTakeArrayGeneric_Cuda(CeedVector vec, CeedMemType mem_type, bool need_sync = false; ierr = CeedVectorNeedSync_Cuda(vec, mem_type, &need_sync); CeedChkBackend(ierr); if (need_sync) { - ierr = CeedVectorSync_Cuda(vec, mem_type); CeedChkBackend(ierr); + ierr = CeedVectorSync_Cuda(vec, prec, mem_type); CeedChkBackend(ierr); } // Update pointer @@ -415,7 +415,7 @@ static int CeedVectorGetArrayCore_Cuda(const CeedVector vec, CeedChkBackend(ierr); if (need_sync) { // Sync array to requested mem_type - ierr = CeedVectorSync_Cuda(vec, mem_type); CeedChkBackend(ierr); + ierr = CeedVectorSync_Cuda(vec, prec, mem_type); CeedChkBackend(ierr); } // Update pointer