Skip to content

[SYCL][ESIMD] Change arguments of some APIs to be template parameters #5961

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 7 commits into from
Apr 20, 2022

Conversation

sndmitriev
Copy link
Contributor

This is needed to force them to be compile-time constants which is required
by low-level intrinsics.

Signed-off-by: Sergey Dmitriev [email protected]

@sndmitriev sndmitriev requested a review from a team as a code owner April 5, 2022 11:06
@sndmitriev
Copy link
Contributor Author

/verify with intel/llvm-test-suite#974

kbobrovs
kbobrovs previously approved these changes Apr 6, 2022
@@ -790,6 +798,10 @@ __ESIMD_API void barrier() {
/// @{

/// Declare per-work-group slm size.
/// @tparam size slm size
template <uint32_t size> __ESIMD_API void slm_init() { __esimd_slm_init(size); }
Copy link
Contributor

Choose a reason for hiding this comment

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

This will break the planned change to support variable size for slm_init.

Copy link
Contributor

Choose a reason for hiding this comment

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

I will remove this.

sndmitriev and others added 3 commits April 15, 2022 12:55
This is needed to force them to be compile-time constants which is required
by low-level intrinsics.

Signed-off-by: Sergey Dmitriev <[email protected]>
…scatter intrinsics

This is needed to satisfy requirement for the 2nd argument of low-level
svm.gather/scatter intrinsics to be a constant. This was not guaranteed earlier.
@kbobrovs kbobrovs force-pushed the sndmitriev/esimd-deprecated branch from 9b00a01 to 0be396b Compare April 16, 2022 01:37
…c const version.

Signed-off-by: Konstantin S Bobrovsky <[email protected]>
@kbobrovs kbobrovs merged commit 8edb62e into intel:sycl Apr 20, 2022
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