Skip to content

Commit

Permalink
style - minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Dec 10, 2021
1 parent 61b8241 commit 1501cb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backends/cuda/ceed-cuda-qfunctioncontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ static inline int CeedQFunctionContextSyncD2H_Cuda(
//------------------------------------------------------------------------------
// Sync data of type
//------------------------------------------------------------------------------
static inline int CeedQFunctionContextSync_Cuda(const CeedQFunctionContext ctx,
CeedMemType mtype) {
static inline int CeedQFunctionContextSync_Cuda(
const CeedQFunctionContext ctx, CeedMemType mtype) {
switch (mtype) {
case CEED_MEM_HOST: return CeedQFunctionContextSyncD2H_Cuda(ctx);
case CEED_MEM_DEVICE: return CeedQFunctionContextSyncH2D_Cuda(ctx);
Expand Down
5 changes: 2 additions & 3 deletions backends/hip/ceed-hip-qfunctioncontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ static inline int CeedQFunctionContextIsAllStale_Hip(
//------------------------------------------------------------------------------
// Check if data of given type needs sync
//------------------------------------------------------------------------------
static inline int CeedQFunctionContextNeedSync_Hip(const CeedQFunctionContext
ctx,
CeedMemType mtype, bool *need_sync) {
static inline int CeedQFunctionContextNeedSync_Hip(
const CeedQFunctionContext ctx, CeedMemType mtype, bool *need_sync) {
int ierr;
CeedQFunctionContext_Hip *data;
ierr = CeedQFunctionContextGetBackendData(ctx, &data); CeedChkBackend(ierr);
Expand Down

0 comments on commit 1501cb3

Please sign in to comment.