-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL] Employ cached kernel #847
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
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.
Left some remarks about the tests.
747b12f
to
43f600c
Compare
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.
Did not review test.
43f600c
to
803ecb8
Compare
* Don't cache kernels from customly built programs, i.e: - built with OpenCL C source - built with linking of multiple SYCL/OpenCL programs - built with custom build options Signed-off-by: Sergey Kanaev <[email protected]>
Signed-off-by: Sergey Kanaev <[email protected]>
Signed-off-by: Sergey Kanaev <[email protected]>
7eaaccc
to
9e2c902
Compare
Signed-off-by: Sergey Kanaev <[email protected]>
Signed-off-by: Sergey Kanaev <[email protected]>
Kernel caching is only allowed for programs constructed with context only or context and device list. Moreover the program should be built with build_with_kernel_type method with default build options. Kernel caching is inadmissible for programs: * constructed with interoperability c-tor * constructed with linking c-tor * built with custom build options * built from source * built with distinct compile and link steps Signed-off-by: Sergey Kanaev <[email protected]>
0c01d09
to
f4c9554
Compare
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.
Restoring approve
This patch fixes regression introduced by #847: programs and kernels are cached when program is built with sequence of compile_with_kernel_type()/compile_with_source() and then linked with link(). By design, caching of kernels and programs is permitted only when program is built with build_with_kernel_type() using the default options. Signed-off-by: Sergey Kanaev <[email protected]>
No description provided.