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

Initial SYCL backend rebased for backend refactoring #3447

Merged
merged 4 commits into from Oct 7, 2020

Conversation

masterleinad
Copy link
Contributor

Superseding #3444:
This is meant as a stepping stone to integrate #3231 just providing the most basic functionalities to define the backend and pass the Serial tests with Kokkos_ENABLE_SYCL. It turns out that this is enough to go up to feature level 2 in the incremental tests.

@masterleinad
Copy link
Contributor Author

Retest this please.

@masterleinad
Copy link
Contributor Author

Rebased.

@masterleinad
Copy link
Contributor Author

The relevant CI check (SYCL-OneAPI) passes. We don't touch any other backend here.

core/perf_test/CMakeLists.txt Outdated Show resolved Hide resolved
using execution_space = SYCL;
using memory_space = SYCLDeviceUSMSpace;
using device_type = Kokkos::Device<execution_space, memory_space>;
using size_type = unsigned int;
Copy link
Member

Choose a reason for hiding this comment

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

@nliber did you put much thought into this or just copied it? Not that I see an issue with it, just curious.

Copy link
Member

Choose a reason for hiding this comment

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

make the size_type a signed integer. I actually would like to change that on CUDA. Generally as much as possible lets try and avoid unsigned,

Copy link
Contributor

Choose a reason for hiding this comment

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

I just copied it, as and the general size_type is expected to be unsigned.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why do you want this to be signed? Note that this is an unsigned type in most of the memory spaces I could find. Of course, I am fine creating a pull request to make this consistent (preferrably after merging this one).

core/src/SYCL/Kokkos_SYCL_Instance.cpp Outdated Show resolved Hide resolved
core/src/SYCL/Kokkos_SYCL_Instance.cpp Outdated Show resolved Hide resolved
core/unit_test/TestDefaultDeviceTypeInit.hpp Outdated Show resolved Hide resolved
@masterleinad masterleinad force-pushed the sycl_refactor_rebase branch 2 times, most recently from a39e064 to 96e22b8 Compare October 7, 2020 04:29
@dalg24 dalg24 merged commit f073760 into kokkos:develop Oct 7, 2020
@masterleinad masterleinad deleted the sycl_refactor_rebase branch January 19, 2021 16:43
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

5 participants