Skip to content

[SYCL] Change a check for a device compiler availability #997

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

Merged
merged 2 commits into from
Jan 10, 2020

Conversation

asavonic
Copy link
Contributor

Before this patch we checked for a device compiler in
ProgramManager::build, but this function is called for AOT compiled
programs as well as required by the OpenCL specification:

clBuildProgram must be called for program created using either
clCreateProgramWithSource or clCreateProgramWithBinary to build
the program executable for one or more devices associated with
program.

Signed-off-by: Andrew Savonichev [email protected]

Before this patch we checked for a device compiler in
ProgramManager::build, but this function is called for AOT compiled
programs as well as required by the OpenCL specification:

    clBuildProgram must be called for program created using either
    clCreateProgramWithSource or clCreateProgramWithBinary to build
    the program executable for one or more devices associated with
    program.

Signed-off-by: Andrew Savonichev <[email protected]>
@asavonic asavonic requested a review from romanovvlad January 10, 2020 10:53
@asavonic
Copy link
Contributor Author

This patch does not have a proper a test, because every runtime in our testing has a compiler available.
I'm thinking about implementing a mock OpenCL (PI) runtime to help test such cases.

MrSidims
MrSidims previously approved these changes Jan 10, 2020
We can have a OpenCL 2.1 device but without a compiler.

Signed-off-by: Andrew Savonichev <[email protected]>
@romanovvlad romanovvlad merged commit 284d7d2 into intel:sycl Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants