Skip to content

Commit

Permalink
WIP: backends/cuda: fix type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed May 3, 2022
1 parent 5c8e206 commit df27fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/cuda-ref/ceed-cuda-vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit df27fe0

Please sign in to comment.