Skip to content

Commit

Permalink
sycl - more
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Sep 17, 2024
1 parent b28e4ae commit 9fddab1
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions backends/sycl-ref/ceed-sycl-ref-operator.sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,6 @@ static inline int CeedOperatorAssembleDiagonalSetup_Sycl(CeedOperator op) {
"Backend does not implement operator diagonal assembly with multiple active bases");
if (!basis_in) CeedCallBackend(CeedBasisReferenceCopy(basis, &basis_in));
CeedCallBackend(CeedBasisDestroy(&basis));
CeedCallBackend(CeedBasisGetNumComponents(basis_in, &num_comp));
CeedCallBackend(CeedBasisGetDimension(basis_in, &dim));
CeedCallBackend(CeedQFunctionFieldGetEvalMode(qf_fields[i], &eval_mode));
switch (eval_mode) {
Expand Down Expand Up @@ -741,7 +740,6 @@ static inline int CeedOperatorAssembleDiagonalSetup_Sycl(CeedOperator op) {
}
CeedCallBackend(CeedVectorDestroy(&vec));
}
CeedCallBackend(CeedElemRestrictionDestroy(&rstr_out));

// Operator data struct
CeedCallBackend(CeedOperatorGetData(op, &impl));
Expand All @@ -760,6 +758,7 @@ static inline int CeedOperatorAssembleDiagonalSetup_Sycl(CeedOperator op) {
CeedInt num_nodes, num_qpts;
CeedCallBackend(CeedBasisGetNumNodes(basis_in, &num_nodes));
CeedCallBackend(CeedBasisGetNumQuadraturePoints(basis_in, &num_qpts));
CeedCallBackend(CeedBasisGetNumComponents(basis_in, &num_comp));
diag->num_nodes = num_nodes;
diag->num_qpts = num_qpts;
diag->num_comp = num_comp;
Expand Down Expand Up @@ -821,13 +820,8 @@ static inline int CeedOperatorAssembleDiagonalSetup_Sycl(CeedOperator op) {
copy_events.push_back(eval_mode_out_copy);

// Restriction
{
CeedElemRestriction rstr_out;

CeedCallBackend(CeedOperatorGetActiveElemRestrictions(op, NULL, &rstr_out));
CeedCallBackend(CeedElemRestrictionReferenceCopy(rstr_out, &diag->diag_rstr));
CeedCallBackend(CeedElemRestrictionDestroy(&rstr_out));
}
CeedCallBackend(CeedElemRestrictionReferenceCopy(rstr_out, &diag->diag_rstr));
CeedCallBackend(CeedElemRestrictionDestroy(&rstr_out));

// Cleanup
CeedCallBackend(CeedBasisDestroy(&basis_in));
Expand Down

0 comments on commit 9fddab1

Please sign in to comment.