Skip to content

Commit

Permalink
Fix up function call operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpowelsnl committed Jan 22, 2024
1 parent 467fa9b commit 8005783
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/unit_test/TestExecutionSpace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ struct CheckClassWithExecutionSpaceAsDataMemberIsCopyable {
Kokkos::DefaultExecutionSpace device;
Kokkos::DefaultHostExecutionSpace host;

KOKKOS_FUNCTION void operator()(int, int& e) const {
// not actually doing anything useful, mostly checking that
// ExecutionSpace::in_parallel() is callable
if (static_cast<int>(device.in_parallel()) < 0) {
++e;
}
}
KOKKOS_FUNCTION void operator()(int i, int& e) const { e += i; }

CheckClassWithExecutionSpaceAsDataMemberIsCopyable() {
int errors;
Expand Down

0 comments on commit 8005783

Please sign in to comment.