-
Notifications
You must be signed in to change notification settings - Fork 69
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
Enable testing with SYCL #234
Conversation
tests/test_mdarray_ctors.cpp
Outdated
@@ -181,9 +181,12 @@ void test_mdarray_ctor_data_carray() { | |||
free_array(errors); | |||
} | |||
|
|||
// host data can't be used in device code |
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.
What host data does the test use? I'm guessing that the mdarray
is defaulting to vector
as its container; should we consider changing that to array
so that the test can remain enabled, or does the test really depend on using vector
?
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.
Yes, I basically meant std::vector
. I pushed a commit using std::array
in the test case instead which works with SYCL
but I would guess not with Cuda
or HIP
.
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.
Thanks for this change!
At some point, after this PR merges : - ) , it would be excellent if we could refactor the testing infrastructure so that it could rely less on duplicated code protected by macros, and rely more on compile-time dispatch.
Will conflict with #233 |
SYCL testing doesn't seem to work inside the runner. But that wasn't really the intend of the runner anyway. So I think we should just revert the change to the test config thing. |
This hopefully will prevent github from loading the cached mdspan for PR kokkos#234. The cached mdspan has the wrong tag.
Corresponds to #223 but for SYCL.