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

Add sanity checks for predicates on vectors #702

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephenswat
Copy link
Member

This commit adds four new sanity checks, true_for_all, false_for_all, true_for_any, and false_for_any which basically do what they say on the tin.

@stephenswat stephenswat added feature New feature or request cuda Changes related to CUDA sycl Changes related to SYCL labels Sep 18, 2024
@stephenswat stephenswat force-pushed the feat/sanity_predicate branch 3 times, most recently from 2d600b7 to 9ff9e07 Compare September 18, 2024 16:04
@stephenswat stephenswat marked this pull request as draft September 18, 2024 16:05
device/cuda/src/sanity/predicate.cuh Outdated Show resolved Hide resolved
device/cuda/src/sanity/predicate.cuh Outdated Show resolved Hide resolved
device/cuda/src/sanity/predicate.cuh Show resolved Hide resolved
device/sycl/src/sanity/predicate.hpp Outdated Show resolved Hide resolved
device/sycl/src/sanity/predicate.hpp Show resolved Hide resolved
@stephenswat
Copy link
Member Author

Feedback incorporated; thanks @niermann999.

@beomki-yeo
Copy link
Contributor

It looks harmless but could you explain the motivation.

@stephenswat
Copy link
Member Author

It looks harmless but could you explain the motivation.

I want to check whether the volumes in the parameters in the CKF actually make sense, because I am running into a bug where we are navigating through invalid navigation volumes.

Copy link
Contributor

@beomki-yeo beomki-yeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Sounds good

This commit adds four new sanity checks, `true_for_all`,
`false_for_all`, `true_for_any`, and `false_for_any` which basically do
what they say on the tin.
Copy link
Member

@krasznaa krasznaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I understand the motivation I believe, but I'm not fond of adding generic code in a project without a concrete use case being there already. I.e. I would prefer seeing these predicates in action as well. Otherwise the design might need to be modified significantly once we actually want to use this code. 🤔

But more than that, check if you could implement the code such that it would be less AoS specific. See 28e8247, 7fe10dc and 9641666 to see what I had to do with the existing code to make it work with SoA containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda Changes related to CUDA feature New feature or request sycl Changes related to SYCL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants