Skip to content

Commit

Permalink
Use ScopeGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Aug 15, 2023
1 parent 85683ee commit c832b01
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/triangle_intersection/triangle_intersection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ class TriangleIntersectionCallback
// Triangles class, we can continue with performing the actual search.
int main()
{
Kokkos::initialize();
{
using ExecutionSpace = Kokkos::DefaultExecutionSpace;
Kokkos::ScopeGuard guard;
using ExecutionSpace = Kokkos::DefaultExecutionSpace;
using MemorySpace = typename ExecutionSpace::memory_space;
ExecutionSpace execution_space;

Expand Down Expand Up @@ -383,7 +383,4 @@ int main()
std::cout << "Checking results successful.\n";
#endif
execution_space.fence();
}

Kokkos::finalize();
}

0 comments on commit c832b01

Please sign in to comment.