Skip to content

Commit 305fbc4

Browse files
committed
Workaround HIP failures
1 parent 65e86a6 commit 305fbc4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/cluster/detail/ArborX_BoruvkaHelpers.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,9 @@ void computeParentsAndReorderEdges(
731731
Kokkos::resize(Kokkos::WithoutInitializing, chain_levels, num_levels);
732732
}
733733

734+
#if defined(KOKKOS_ENABLE_HIP) && defined(KOKKOS_COMPILER_CLANG)
735+
#pragma clang optimize off
736+
#endif
734737
// Compute upper bound on the shortest edge of each component.
735738
template <class ExecutionSpace, class BVH, class Labels, class Metric,
736739
class Radii>
@@ -772,6 +775,9 @@ void resetSharedRadii(ExecutionSpace const &space, BVH const &bvh,
772775
}
773776
});
774777
}
778+
#if defined(KOKKOS_ENABLE_HIP) && defined(KOKKOS_COMPILER_CLANG)
779+
#pragma clang optimize on
780+
#endif
775781

776782
} // namespace ArborX::Details
777783

0 commit comments

Comments
 (0)