-
Notifications
You must be signed in to change notification settings - Fork 798
[SYCL] Add support for optional kernel features in AOT x86_64 compilation #14590
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 all commits
33ce3fb
b494344
48b7c7b
76d4ac1
e328ae7
500c9d0
916d225
2d0dcdf
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 |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| // This test ensures that a program that has a kernel | ||
| // using fp64 can be compiled AOT. | ||
|
|
||
| // REQUIRES: ocloc | ||
| // REQUIRES: ocloc, opencl-aot, any-device-is-cpu | ||
| // RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_tgllp -o %t.tgllp.out %s | ||
| // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 -o %t.x86.out %s | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| // ocloc on windows does not have support for PVC/CFL, so this command will | ||
| // result in an error when on windows. (In general, there is no support | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // This test ensures that a program that has a kernel | ||
| // using fp16 can be compiled AOT. | ||
|
|
||
| // REQUIRES: ocloc, opencl-aot, any-device-is-cpu | ||
| // RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_tgllp -o %t.tgllp.out %s | ||
| // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 -o %t.x86.out %s | ||
|
|
||
| // ocloc on windows does not have support for PVC/CFL, so this command will | ||
| // result in an error when on windows. (In general, there is no support | ||
| // for pvc/cfl on windows.) | ||
| // RUN: %if !windows %{ %clangxx -fsycl -fsycl-targets=intel_gpu_cfl -o %t.cfl.out %s %} | ||
| // RUN: %if !windows %{ %clangxx -fsycl -fsycl-targets=intel_gpu_pvc -o %t.pvc.out %s %} | ||
|
|
||
| #include <sycl/detail/core.hpp> | ||
|
|
||
| using namespace sycl; | ||
|
|
||
| int main() { | ||
| queue q; | ||
| if (q.get_device().has(aspect::fp16)) { | ||
| sycl::half h = 2.5; | ||
| { | ||
| buffer<sycl::half, 1> buf(&h, 1); | ||
| q.submit([&](handler &cgh) { | ||
| accessor acc{buf, cgh}; | ||
| cgh.single_task([=] { acc[0] *= 2; }); | ||
| }); | ||
| } | ||
| std::cout << h << "\n"; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| // This test ensures that a program that has a kernel | ||
| // using various required sub-group sizes can be compiled AOT. | ||
|
|
||
| // REQUIRES: ocloc | ||
| // REQUIRES: ocloc, opencl-aot, any-device-is-cpu | ||
| // RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_tgllp -o %t.tgllp.out %s | ||
| // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 -o %t.x86.out %s | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same question about |
||
|
|
||
| // ocloc on windows does not have support for PVC/CFL, so this command will | ||
| // result in an error when on windows. (In general, there is no support | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.