-
Notifications
You must be signed in to change notification settings - Fork 808
Copy attributes of parallel_for kernels to the wrapped versions when rounding up the range #3154
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 11 commits
ec5b76a
21ff7be
8679cee
ca592f3
d59cfd5
648ca30
392f239
deba868
75c5f9d
fd93cd1
4191d12
2ea7ac0
d2afc19
e3f0280
7bc5466
1c4e611
ae07883
9e0216c
ec93452
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 |
---|---|---|
|
@@ -3192,6 +3192,9 @@ def warn_dllimport_dropped_from_inline_function : Warning< | |
InGroup<IgnoredAttributes>; | ||
def warn_attribute_ignored : Warning<"%0 attribute ignored">, | ||
InGroup<IgnoredAttributes>; | ||
def warn_attribute_on_direct_kernel_callee_only : Warning<"%0 attribute allowed" | ||
" only on function directly called from kernel; attribute ignored">, | ||
|
||
InGroup<IgnoredAttributes>; | ||
def warn_nothrow_attribute_ignored : Warning<"'nothrow' attribute conflicts with" | ||
" exception specification; attribute ignored">, | ||
InGroup<IgnoredAttributes>; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// RUN: %clangxx -fsycl-device-only -Xclang -fsycl-is-device -emit-llvm %s -S -o %t.ll -I %sycl_include | ||
// RUN: FileCheck %s --input-file %t.ll | ||
|
||
// Check copying of parallel_for kernel attributes to wrapper kernel. | ||
|
||
#include <CL/sycl.hpp> | ||
using namespace cl::sycl; | ||
|
||
int main() { | ||
range<1> Size{10}; | ||
{ | ||
queue myQueue; | ||
myQueue.submit([&](handler &cgh) { | ||
cgh.parallel_for<class C>(Size, [=](item<1> ITEM) | ||
[[intel::reqd_work_group_size(4)]]{}); | ||
}); | ||
} | ||
|
||
return 0; | ||
} | ||
|
||
// CHECK: define {{.*}}spir_kernel void @{{.*}}__pf_kernel_wrapper{{.*}}reqd_work_group_size |
Uh oh!
There was an error while loading. Please reload this page.