Skip to content

[FPGA][SYCL] Fix max_work_group_size and reqd_work_group_size attribute arguments check #5592

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 22 commits into from
Mar 3, 2022

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Feb 16, 2022

If the [[intel::max_work_group_size(X, Y, Z)]] attribute is specified on
a declaration along with [[sycl::reqd_work_group_size(X1, Y1, Z1)]]
attribute, this patch checks if values of reqd_work_group_size arguments are
equal or less than values of max_work_group_size attribute arguments.

Some of the test cases were missed during refactoring work with PGA function
attribute [[intel::max_work_group_size()]] on #5392

This patch adds the missing cases and fixes pulldown bug.

Signed-off-by: Soumi Manna soumi.manna@intel.com

…te arguments check

If the [[intel::max_work_group_size(X, Y, Z)]] attribute is specified on
a declaration along with [[sycl::reqd_work_group_size(X1, Y1, Z1)]]
attribute, this patch checks if values of reqd_work_group_size arguments are
equal or less than values of max_work_group_size attribute arguments.

Some of the test cases were missed during refactoring work with PGA function
attribute [[intel::max_work_group_size()]] on intel#5392

This patch fixes them.

Signed-off-by: Soumi Manna <soumi.manna@intel.com>
@smanna12 smanna12 changed the title [FPGA][SYCL] Fix max_work_group_size and reqd_work_group_size attribu… [FPGA][SYCL] Fix max_work_group_size and reqd_work_group_size attribute arguments check Feb 16, 2022
@smanna12 smanna12 marked this pull request as ready for review February 16, 2022 13:51
@smanna12 smanna12 requested a review from a team as a code owner February 16, 2022 13:51
@smanna12
Copy link
Contributor Author

This PR blocks downstream pulldown bug. Can i get a review @AaronBallman , @premanandrao ? Thank you

Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
@smanna12 smanna12 requested a review from GarveyJoe February 25, 2022 20:08
Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

@elizabethandrews raised several good points in her recent review; I would like to review again after you have had a chance to address those.

Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
smanna12 added 2 commits March 1, 2022 09:24
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
AaronBallman
AaronBallman previously approved these changes Mar 1, 2022
Copy link
Contributor

@AaronBallman AaronBallman left a comment

Choose a reason for hiding this comment

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

LGTM as far as I can see

@smanna12
Copy link
Contributor Author

smanna12 commented Mar 1, 2022

LGTM as far as I can see

Thanks @AaronBallman for the reviews!

@smanna12
Copy link
Contributor Author

smanna12 commented Mar 1, 2022

@elizabethandrews and @premanandrao, do you have any more concerns?

@premanandrao
Copy link
Contributor

@elizabethandrews and @premanandrao, do you have any more concerns?

I just had one nit, but you could do this in a later PR if there are no other review concerns.

Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
smanna12 added 2 commits March 2, 2022 08:42
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
@smanna12
Copy link
Contributor Author

smanna12 commented Mar 2, 2022

@elizabethandrews, any more concerns from your side?

@smanna12
Copy link
Contributor Author

smanna12 commented Mar 2, 2022

The test failures of L0 GEN9 LLVM Test Suite are not related to my patch:
https://github.com/intel/llvm/runs/5398454333?check_suite_focus=true

Failed Tests (8):
SYCL :: Basic/host_platform_avail.cpp
SYCL :: Basic/intel-ext-device.cpp
SYCL :: Basic/interop/get_native_ze.cpp
SYCL :: Basic/query_emulate_subdevice.cpp
SYCL :: Plugin/sycl-ls-gpu-default-any.cpp
SYCL :: Plugin/sycl-ls-gpu-level-zero.cpp
SYCL :: Plugin/sycl-ls.cpp
SYCL :: Regression/device_num.cpp

I am seeing same failures on #5576

Copy link
Contributor

@elizabethandrews elizabethandrews left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you

@smanna12
Copy link
Contributor Author

smanna12 commented Mar 2, 2022

Thank you everyone for the reviews!

@bader bader merged commit 7f37250 into intel:sycl Mar 3, 2022
@smanna12 smanna12 deleted the Fix_Bug_Max_Reqd_Attr branch March 3, 2022 13:15
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