Skip to content

Commit

Permalink
Fix formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
uumesh committed Jul 18, 2023
1 parent 650cd42 commit 7a2d906
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions backends/sycl-gen/ceed-sycl-gen-operator-build.sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ extern "C" int CeedSyclGenOperatorBuild(CeedOperator op) {
CeedCallBackend(CeedBasisGetNumNodes1D(basis, &P_1d));
code << " CeedScalar r_t_" << i << "[num_comp_in_" << i << "*DIM*Q_1D];\n";
code << " Grad" << (dim > 1 ? "Tensor" : "") << (dim == 3 && Q_1d >= P_1d ? "Collocated" : "") << dim << "d(num_comp_in_" << i
<< ", P_in_" << i << ", Q_1D, r_u_" << i << (dim > 1 ? ", s_B_in_" : "") << (dim > 1 ? std::to_string(i) : "") << ", s_G_in_" << i << ", r_t_" << i << ", elem_scratch);\n";
<< ", P_in_" << i << ", Q_1D, r_u_" << i << (dim > 1 ? ", s_B_in_" : "") << (dim > 1 ? std::to_string(i) : "") << ", s_G_in_" << i
<< ", r_t_" << i << ", elem_scratch);\n";
}
break;
case CEED_EVAL_WEIGHT:
Expand Down Expand Up @@ -671,7 +672,8 @@ extern "C" int CeedSyclGenOperatorBuild(CeedOperator op) {
CeedCallBackend(CeedOperatorFieldGetBasis(op_output_fields[i], &basis));
CeedCallBackend(CeedBasisGetNumNodes1D(basis, &P_1d));
code << " GradTranspose" << (dim > 1 ? "Tensor" : "") << (dim == 3 && Q_1d >= P_1d ? "Collocated" : "") << dim << "d(num_comp_out_" << i
<< ",P_out_" << i << ", Q_1D, r_tt_" << i << (dim > 1 ? ", s_B_out_" : "") << (dim > 1 ? std::to_string(i) : "") << ", s_G_out_" << i << ", r_v_" << i << ", elem_scratch);\n";
<< ", P_out_" << i << ", Q_1D, r_tt_" << i << (dim > 1 ? ", s_B_out_" : "") << (dim > 1 ? std::to_string(i) : "") << ", s_G_out_" << i
<< ", r_v_" << i << ", elem_scratch);\n";
}
break;
// LCOV_EXCL_START
Expand Down
6 changes: 3 additions & 3 deletions backends/sycl-gen/ceed-sycl-gen-operator.sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ static int CeedOperatorApplyAdd_Sycl_gen(CeedOperator op, CeedVector input_vec,
CeedCallBackend(CeedQFunctionGetInnerContextData(qf, CEED_MEM_DEVICE, &qf_impl->d_c));

// Apply operator
const CeedInt dim = impl->dim;
const CeedInt Q_1d = impl->Q_1d;
const CeedInt P_1d = impl->max_P_1d;
const CeedInt dim = impl->dim;
const CeedInt Q_1d = impl->Q_1d;
const CeedInt P_1d = impl->max_P_1d;
CeedInt block_sizes[3], grid = 0;
CeedCallBackend(BlockGridCalculate_Sycl_gen(dim, P_1d, Q_1d, block_sizes));
if (dim == 1) {
Expand Down

0 comments on commit 7a2d906

Please sign in to comment.