Skip to content

[SYCL][NATIVECPU] Refactor from PI plugin to UR adapter #10523

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

Merged
merged 25 commits into from
Jul 26, 2023

Conversation

Alcpz
Copy link
Contributor

@Alcpz Alcpz commented Jul 21, 2023

This PR refactors the current SYCL Native CPU Implementation as a Unified Runtime adapter.
No new functionalities are added.

Contents of this PR:

  • Native CPU implementation divided in multiple source files at sycl/plugins/unified_runtime/ur/adapters/native_cpu
  • Native CPU PI plugin is now implemented through the pi2ur.hpp interface
  • pi* classes have now an equivalent ur_* class
  • UR_PLATFORM_BACKEND_NATIVE_CPU value added to ur2piPlatformInfoValue

Alcpz added 25 commits July 20, 2023 12:51
urInit and urTeardown where in platform.cpp, refactored to a more relevant file runtime.cpp
Fixed the format of CmakeLists (broken due to autoformatting)
Refactored context Device as _device to have mor consistent naming.
…. Minor formatting issues.

Removed unnecessary empty lines
Removed comments that are no longer fitting
Moved from unique pointer to new for consistency with the whole API.
- Added missing TODOs
- Fixed slightly misleading comments
@Alcpz Alcpz requested review from a team as code owners July 21, 2023 14:10
@Alcpz Alcpz temporarily deployed to aws July 21, 2023 14:25 — with GitHub Actions Inactive
@Alcpz Alcpz temporarily deployed to aws July 21, 2023 15:03 — with GitHub Actions Inactive
@jandres742
Copy link
Contributor

Minor comment above. Looks good.

@jandres742 jandres742 requested a review from kbenzie July 26, 2023 02:32
Copy link
Contributor

@kbenzie kbenzie left a comment

Choose a reason for hiding this comment

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

some suggestions for improvements, no blockers but they should be addressed in future.

@uwedolinsky
Copy link
Contributor

Hello @intel/llvm-gatekeepers, we think this PR is ready to be merged. Thanks

@steffenlarsen steffenlarsen merged commit 49cf82e into intel:sycl Jul 26, 2023
@Alcpz Alcpz deleted the alcpz/FE-537-UR-native-cpu branch August 10, 2023 15:49
mdtoguchi pushed a commit to mdtoguchi/llvm that referenced this pull request Oct 18, 2023
This PR refactors the current SYCL Native CPU Implementation as a
Unified Runtime adapter.
No new functionalities are added.

Contents of this PR:
- Native CPU implementation divided in multiple source files at
`sycl/plugins/unified_runtime/ur/adapters/native_cpu`
- Native CPU PI plugin is now implemented through the `pi2ur.hpp`
interface
- _pi_* classes have now an equivalent ur_* class
- `UR_PLATFORM_BACKEND_NATIVE_CPU` value added to
`ur2piPlatformInfoValue`
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.

5 participants