Skip to content

Commit 0c949ce

Browse files
committed
Replace a parameter pack in the tests to avoid cuda lambda restrictions
1 parent 2479cb1 commit 0c949ce

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/splines/batched_nd_evaluator_3d_spline_builder.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ template <
169169
typename DDimI1,
170170
typename DDimI2,
171171
typename DDimI3,
172-
typename... DDims,
172+
typename DDimsDElem,
173173
typename ExecSpace,
174174
typename ChunkSpanType,
175175
typename Evaluator>
@@ -189,7 +189,7 @@ double get_max_norm_error_deriv(
189189
spline_eval.domain(),
190190
0.,
191191
ddc::reducer::max<double>(),
192-
KOKKOS_LAMBDA(DElem<DDims...> const e) {
192+
KOKKOS_LAMBDA(DDimsDElem const e) {
193193
Coord<I1> const x = ddc::coordinate(DElem<DDimI1>(e));
194194
Coord<I2> const y = ddc::coordinate(DElem<DDimI2>(e));
195195
Coord<I3> const z = ddc::coordinate(DElem<DDimI3>(e));
@@ -1063,37 +1063,37 @@ void TestBatchedNd3dSpline()
10631063
DDimI1,
10641064
DDimI2,
10651065
DDimI3,
1066-
DDims...>(exec_space, evaluator, spline_eval_deriv1, 1, 0, 0);
1066+
DElem<DDims...>>(exec_space, evaluator, spline_eval_deriv1, 1, 0, 0);
10671067
double const max_norm_error_diff2 = get_max_norm_error_deriv<
10681068
DDimI1,
10691069
DDimI2,
10701070
DDimI3,
1071-
DDims...>(exec_space, evaluator, spline_eval_deriv2, 0, 1, 0);
1071+
DElem<DDims...>>(exec_space, evaluator, spline_eval_deriv2, 0, 1, 0);
10721072
double const max_norm_error_diff3 = get_max_norm_error_deriv<
10731073
DDimI1,
10741074
DDimI2,
10751075
DDimI3,
1076-
DDims...>(exec_space, evaluator, spline_eval_deriv3, 0, 0, 1);
1076+
DElem<DDims...>>(exec_space, evaluator, spline_eval_deriv3, 0, 0, 1);
10771077
double const max_norm_error_diff12 = get_max_norm_error_deriv<
10781078
DDimI1,
10791079
DDimI2,
10801080
DDimI3,
1081-
DDims...>(exec_space, evaluator, spline_eval_deriv12, 1, 1, 0);
1081+
DElem<DDims...>>(exec_space, evaluator, spline_eval_deriv12, 1, 1, 0);
10821082
double const max_norm_error_diff13 = get_max_norm_error_deriv<
10831083
DDimI1,
10841084
DDimI2,
10851085
DDimI3,
1086-
DDims...>(exec_space, evaluator, spline_eval_deriv13, 1, 0, 1);
1086+
DElem<DDims...>>(exec_space, evaluator, spline_eval_deriv13, 1, 0, 1);
10871087
double const max_norm_error_diff23 = get_max_norm_error_deriv<
10881088
DDimI1,
10891089
DDimI2,
10901090
DDimI3,
1091-
DDims...>(exec_space, evaluator, spline_eval_deriv23, 0, 1, 1);
1091+
DElem<DDims...>>(exec_space, evaluator, spline_eval_deriv23, 0, 1, 1);
10921092
double const max_norm_error_diff123 = get_max_norm_error_deriv<
10931093
DDimI1,
10941094
DDimI2,
10951095
DDimI3,
1096-
DDims...>(exec_space, evaluator, spline_eval_deriv123, 1, 1, 1);
1096+
DElem<DDims...>>(exec_space, evaluator, spline_eval_deriv123, 1, 1, 1);
10971097

10981098
double const max_norm = evaluator.max_norm();
10991099
double const max_norm_diff1 = evaluator.max_norm(1, 0, 0);

0 commit comments

Comments
 (0)