-
Notifications
You must be signed in to change notification settings - Fork 405
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
Always run Graph tests #7011
Always run Graph tests #7011
Conversation
@@ -23,5 +23,6 @@ | |||
#define TEST_CATEGORY_NUMBER 7 | |||
#define TEST_CATEGORY_DEATH sycl_DeathTest | |||
#define TEST_EXECSPACE Kokkos::Experimental::SYCL | |||
#define TEST_CATEGORY_FIXTURE(name) sycl_##name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion:
#define TEST_CATEGORY_FIXTURE(name) sycl_##name
#define TEST_CATEGORY_DEATH TEST_CATEGORY_FIXTURE(DeathTest)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather not since that would suggest mixing macros defined for fixtures with death tests that don't require fixtures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, up to you 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this PR really makes sense !
#endif | ||
graph.submit(); // should reset to 0, but doesn't | ||
graph.submit(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it ok to remove that comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It didn't make sense to me. The submission is resetting to zero and that's what we are testing.
core/unit_test/TestGraph.hpp
Outdated
Kokkos::fence(); | ||
if constexpr (std::is_same_v<TEST_EXECSPACE, Kokkos::Cuda>) Kokkos::fence(); | ||
#endif | ||
// FIXME_HPX graph.submit() isn't properly enqueued |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: I would have put the comment on the same line as the #ifdef
(if that fits without breaking the line)
It looks like we were careless when we merged this PR.
|
If we don't have a specialization for the Graph implementation, kernels are just executed in order. Hence, we should always be able to test the Graph implementation and don't need to create separate executables which brings the test more inline with our general testing approach (by auto-generating the test files for individual backends).
Related to #6912.