Home
last modified time | relevance | path

Searched refs:need_sync (Results 1 – 6 of 6) sorted by relevance

/libCEED/backends/hip-ref/
H A Dceed-hip-ref-qfunctioncontext.c129 …unctionContextNeedSync_Hip(const CeedQFunctionContext ctx, CeedMemType mem_type, bool *need_sync) { in CeedQFunctionContextNeedSync_Hip() argument
137 *need_sync = has_valid_data && !impl->h_data; in CeedQFunctionContextNeedSync_Hip()
140 *need_sync = has_valid_data && !impl->d_data; in CeedQFunctionContextNeedSync_Hip()
232 bool need_sync = false; in CeedQFunctionContextTakeData_Hip() local
238 CeedCallBackend(CeedQFunctionContextNeedSync_Hip(ctx, mem_type, &need_sync)); in CeedQFunctionContextTakeData_Hip()
239 if (need_sync) CeedCallBackend(CeedQFunctionContextSync_Hip(ctx, mem_type)); in CeedQFunctionContextTakeData_Hip()
262 bool need_sync = false; in CeedQFunctionContextGetDataCore_Hip() local
268 CeedCallBackend(CeedQFunctionContextNeedSync_Hip(ctx, mem_type, &need_sync)); in CeedQFunctionContextGetDataCore_Hip()
269 if (need_sync) CeedCallBackend(CeedQFunctionContextSync_Hip(ctx, mem_type)); in CeedQFunctionContextGetDataCore_Hip()
H A Dceed-hip-ref-vector.c21 …ic inline int CeedVectorNeedSync_Hip(const CeedVector vec, CeedMemType mem_type, bool *need_sync) { in CeedVectorNeedSync_Hip() argument
29 *need_sync = has_valid_array && !impl->h_array; in CeedVectorNeedSync_Hip()
32 *need_sync = has_valid_array && !impl->d_array; in CeedVectorNeedSync_Hip()
98 bool need_sync = false; in CeedVectorSyncArray_Hip() local
109 CeedCallBackend(CeedVectorNeedSync_Hip(vec, mem_type, &need_sync)); in CeedVectorSyncArray_Hip()
110 if (!need_sync) return CEED_ERROR_SUCCESS; in CeedVectorSyncArray_Hip()
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref-qfunctioncontext.c130 …nctionContextNeedSync_Cuda(const CeedQFunctionContext ctx, CeedMemType mem_type, bool *need_sync) { in CeedQFunctionContextNeedSync_Cuda() argument
138 *need_sync = has_valid_data && !impl->h_data; in CeedQFunctionContextNeedSync_Cuda()
141 *need_sync = has_valid_data && !impl->d_data; in CeedQFunctionContextNeedSync_Cuda()
238 bool need_sync = false; in CeedQFunctionContextTakeData_Cuda() local
239 CeedCallBackend(CeedQFunctionContextNeedSync_Cuda(ctx, mem_type, &need_sync)); in CeedQFunctionContextTakeData_Cuda()
240 if (need_sync) CeedCallBackend(CeedQFunctionContextSync_Cuda(ctx, mem_type)); in CeedQFunctionContextTakeData_Cuda()
263 bool need_sync = false; in CeedQFunctionContextGetDataCore_Cuda() local
269 CeedCallBackend(CeedQFunctionContextNeedSync_Cuda(ctx, mem_type, &need_sync)); in CeedQFunctionContextGetDataCore_Cuda()
270 if (need_sync) CeedCallBackend(CeedQFunctionContextSync_Cuda(ctx, mem_type)); in CeedQFunctionContextGetDataCore_Cuda()
H A Dceed-cuda-ref-vector.c21 …c inline int CeedVectorNeedSync_Cuda(const CeedVector vec, CeedMemType mem_type, bool *need_sync) { in CeedVectorNeedSync_Cuda() argument
29 *need_sync = has_valid_array && !impl->h_array; in CeedVectorNeedSync_Cuda()
32 *need_sync = has_valid_array && !impl->d_array; in CeedVectorNeedSync_Cuda()
98 bool need_sync = false; in CeedVectorSyncArray_Cuda() local
101 CeedCallBackend(CeedVectorNeedSync_Cuda(vec, mem_type, &need_sync)); in CeedVectorSyncArray_Cuda()
102 if (!need_sync) return CEED_ERROR_SUCCESS; in CeedVectorSyncArray_Cuda()
/libCEED/backends/sycl-ref/
H A Dceed-sycl-ref-qfunctioncontext.sycl.cpp141 …nctionContextNeedSync_Sycl(const CeedQFunctionContext ctx, CeedMemType mem_type, bool *need_sync) { in CeedQFunctionContextNeedSync_Sycl() argument
149 *need_sync = has_valid_data && !impl->h_data; in CeedQFunctionContextNeedSync_Sycl()
152 *need_sync = has_valid_data && !impl->d_data; in CeedQFunctionContextNeedSync_Sycl()
259 bool need_sync = false; in CeedQFunctionContextTakeData_Sycl() local
271 CeedCallBackend(CeedQFunctionContextNeedSync_Sycl(ctx, mem_type, &need_sync)); in CeedQFunctionContextTakeData_Sycl()
272 if (need_sync) CeedCallBackend(CeedQFunctionContextSync_Sycl(ctx, mem_type)); in CeedQFunctionContextTakeData_Sycl()
295 bool need_sync = false; in CeedQFunctionContextGetDataCore_Sycl() local
301 CeedCallBackend(CeedQFunctionContextNeedSync_Sycl(ctx, mem_type, &need_sync)); in CeedQFunctionContextGetDataCore_Sycl()
302 if (need_sync) CeedCallBackend(CeedQFunctionContextSync_Sycl(ctx, mem_type)); in CeedQFunctionContextGetDataCore_Sycl()
H A Dceed-sycl-vector.sycl.cpp20 …c inline int CeedVectorNeedSync_Sycl(const CeedVector vec, CeedMemType mem_type, bool *need_sync) { in CeedVectorNeedSync_Sycl() argument
28 *need_sync = has_valid_array && !impl->h_array; in CeedVectorNeedSync_Sycl()
31 *need_sync = has_valid_array && !impl->d_array; in CeedVectorNeedSync_Sycl()
109 bool need_sync = false; in CeedVectorSyncArray_Sycl() local
112 CeedCallBackend(CeedVectorNeedSync_Sycl(vec, mem_type, &need_sync)); in CeedVectorSyncArray_Sycl()
113 if (!need_sync) return CEED_ERROR_SUCCESS; in CeedVectorSyncArray_Sycl()