-
Notifications
You must be signed in to change notification settings - Fork 798
[SYCL] Fix a bug when using no device split and reqd_work_group_size #16236
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
Changes from 3 commits
6d29c30
3ab0bdf
79e0975
c68fd17
e78f937
8db26d3
a6e5326
1b1ff0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -310,6 +310,15 @@ std::string saveModuleProperties(module_split::ModuleDesc &MD, | |||||
| auto PropSet = | ||||||
| computeModuleProperties(MD.getModule(), MD.entries(), GlobProps); | ||||||
|
|
||||||
| // When the split mode is none, the required work group size will be added | ||||||
| // to the whole module, which will make the runtime unable to | ||||||
| // launch the other kernels in the module that have different | ||||||
| // required work group sizes or no requried work group sizes. So we need to | ||||||
|
||||||
| // required work group sizes or no requried work group sizes. So we need to | |
| // required work group sizes or no required work group sizes. So we need to |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make reqd_work_group_size_uint64_t a constant somewhere so we dont have any typo problems in the future?
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // This test checks that with -fsycl-device-code-split=off, kernels | ||
| // with different reqd_work_group_size dimensions can be launched. | ||
|
|
||
| // RUN: %{build} -fsycl -fsycl-device-code-split=off -o %t.out | ||
|
||
| // RUN: %{run} %t.out | ||
|
|
||
| // UNSUPPORTED: hip | ||
|
|
||
| #include <sycl/detail/core.hpp> | ||
|
|
||
| using namespace sycl; | ||
|
|
||
| int main(int argc, char **argv) { | ||
| queue q; | ||
| q.single_task([]{}); | ||
| q.parallel_for(range<2>(24, 1), [=](auto) [[sycl::reqd_work_group_size(24,1)]] {}); | ||
| return 0; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.