Skip to content

Enable testing with SYCL - #234

Merged
crtrott merged 7 commits into
kokkos:stablefrom
masterleinad:sycl_tests
Jan 30, 2023
Merged

crtrott merged 7 commits into
kokkos:stablefrom
masterleinad:sycl_tests

Conversation

@masterleinad

Copy link
Copy Markdown
Contributor

Corresponds to #223 but for SYCL.

Comment thread tests/test_mdarray_ctors.cpp Outdated
free_array(errors);
}

// host data can't be used in device code

@mhoemmen mhoemmen Jan 27, 2023

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor Author

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.

@mhoemmen mhoemmen left a comment

Copy link
Copy Markdown
Contributor

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.

@dalg24

dalg24 commented Jan 28, 2023

Copy link
Copy Markdown
Member

Will conflict with #233

@crtrott

crtrott commented Jan 30, 2023

Copy link
Copy Markdown
Member

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.

@crtrott
crtrott merged commit fc4b692 into kokkos:stable Jan 30, 2023
mhoemmen added a commit to mhoemmen/mdspan that referenced this pull request Jul 26, 2023
This hopefully will prevent github from loading the cached
mdspan for PR kokkos#234.  The cached mdspan has the wrong tag.
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.

4 participants