Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
uumesh committed Apr 3, 2024
1 parent 7a880d2 commit c100ecd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backends/sycl-ref/ceed-sycl-ref-operator.sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,8 @@ static int CeedOperatorLinearDiagonal_Sycl(sycl::queue &sycl_queue, const bool i
if (!sycl_queue.is_in_order()) e = {sycl_queue.ext_oneapi_submit_barrier()};

sycl_queue.parallel_for<CeedOperatorSyclLinearDiagonal>(kernel_range, e, [=](sycl::id<1> idx) {
const CeedInt tid = idx % nnodes;
const CeedInt e = idx / nnodes;
const CeedInt tid = idx % num_nodes;
const CeedInt e = idx / num_nodes;

// Compute the diagonal of B^T D B
// Each element
Expand Down
4 changes: 2 additions & 2 deletions backends/sycl-ref/ceed-sycl-vector.sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static inline int CeedVectorSyncH2D_Sycl(const CeedVector vec) {
std::vector<sycl::event> e;

if (!data->sycl_queue.is_in_order()) e = {data->sycl_queue.ext_oneapi_submit_barrier()};
CeedCallSycl(ceed, data->sycl_queue.copy<CeedScalar>(impl->h_array, impl->d_array, length, {e}).wait_and_throw());
CeedCallSycl(ceed, data->sycl_queue.copy<CeedScalar>(impl->h_array, impl->d_array, length, e).wait_and_throw());
return CEED_ERROR_SUCCESS;
}

Expand Down Expand Up @@ -95,7 +95,7 @@ static inline int CeedVectorSyncD2H_Sycl(const CeedVector vec) {
std::vector<sycl::event> e;

if (!data->sycl_queue.is_in_order()) e = {data->sycl_queue.ext_oneapi_submit_barrier()};
CeedCallSycl(ceed, data->sycl_queue.copy<CeedScalar>(impl->d_array, impl->h_array, length, {e}).wait_and_throw());
CeedCallSycl(ceed, data->sycl_queue.copy<CeedScalar>(impl->d_array, impl->h_array, length, e).wait_and_throw());
return CEED_ERROR_SUCCESS;
}

Expand Down

0 comments on commit c100ecd

Please sign in to comment.