Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit early from unionFindWithingEachDistanceCell when n <= 1 #1067

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

aprokop
Copy link
Contributor

@aprokop aprokop commented Apr 15, 2024

When Kokkos is compiled with Kokkos_ENABLE_DEBUG_BOUNDS_CHECK=ON, examples/dbscan reports

1: Kokkos::RangePolicy bounds error:
The lower bound (1) is greater than the upper bound (0).

This is coming from this function, where RangePolicy starts at 1. This is a minor change to exit early. An additional benefit is not launching the kernel when n <= 1.

@aprokop aprokop changed the title Exit early from unionFindWithingEachDistanceCell Exit early from unionFindWithingEachDistanceCell when n = 0 Apr 15, 2024
…k trigger

When Kokkos is compiled with Kokkos_ENABLE_DEBUG_BOUNDS_CHECK=ON,
examples/dbscan reports
```
1: Kokkos::RangePolicy bounds error: The lower bound (1) is greater than the upper bound (0).
```
This is coming from this function, where RangePolicy starts at 1. This
is a minor change to exit early. An additional benefit is not launching
the kernel when n == 0.
@aprokop aprokop changed the title Exit early from unionFindWithingEachDistanceCell when n = 0 Exit early from unionFindWithingEachDistanceCell when n <= 1 Apr 15, 2024
@aprokop aprokop merged commit d264a9d into arborx:master Apr 15, 2024
2 checks passed
@aprokop aprokop deleted the minor_fix branch April 15, 2024 18:43
@aprokop aprokop mentioned this pull request Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants