-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][E2E] Minor OpenCL KernelCompiler Test Reorg #19124
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
[SYCL][E2E] Minor OpenCL KernelCompiler Test Reorg #19124
Conversation
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.
Just a few nits about style.
|
||
// only one device is supported at this time, so we limit the queue and | ||
// context to that | ||
sycl::device d{sycl::default_selector_v}; |
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.
sycl::device d{sycl::default_selector_v}; | |
sycl::device D{sycl::default_selector_v}; |
// only one device is supported at this time, so we limit the queue and | ||
// context to that | ||
sycl::device d{sycl::default_selector_v}; | ||
sycl::context ctx{d}; |
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.
sycl::context ctx{d}; | |
sycl::context Ctx{d}; |
// context to that | ||
sycl::device d{sycl::default_selector_v}; | ||
sycl::context ctx{d}; | ||
sycl::queue q{ctx, d}; |
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.
sycl::queue q{ctx, d}; | |
sycl::queue Q{ctx, d}; |
sycl::context ctx{d}; | ||
sycl::queue q{ctx, d}; | ||
|
||
bool ok = |
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.
bool ok = | |
bool Ok = |
return; | ||
} | ||
|
||
source_kb kbSrc = syclex::create_kernel_bundle_from_source( |
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.
source_kb kbSrc = syclex::create_kernel_bundle_from_source( | |
source_kb KbSrc = syclex::create_kernel_bundle_from_source( |
ctx, syclex::source_language::opencl, CLSource); | ||
exe_kb kbExe1 = syclex::build(kbSrc); | ||
|
||
sycl::kernel my_kernel = kbExe1.ext_oneapi_get_kernel("my_kernel"); |
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.
sycl::kernel my_kernel = kbExe1.ext_oneapi_get_kernel("my_kernel"); | |
sycl::kernel MyKernel = kbExe1.ext_oneapi_get_kernel("my_kernel"); |
using source_kb = sycl::kernel_bundle<sycl::bundle_state::ext_oneapi_source>; | ||
using exe_kb = sycl::kernel_bundle<sycl::bundle_state::executable>; | ||
|
||
// only one device is supported at this time, so we limit the queue and |
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.
// only one device is supported at this time, so we limit the queue and | |
// Only one device is supported at this time, so we limit the queue and |
using exe_kb = sycl::kernel_bundle<sycl::bundle_state::executable>; | ||
|
||
// only one device is supported at this time, so we limit the queue and | ||
// context to that |
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.
// context to that | |
// context to that. |
breaking opencl kernel_compiler test up to not hit timeouts when building
-O0