-
Notifications
You must be signed in to change notification settings - Fork 745
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] Fix platform selection in opencl-aot #1510
Conversation
Before picking a matched platform name, ensure the device type also matches. This fixes a mismatch issue that was caused by an identical supported platform name for CPU and GPU. Only iterate through available platforms. When the error message is non-empty, always return CLErr, so that the message is shown. Signed-off-by: Dmitri Mokhov <dmitri.n.mokhov@intel.com>
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.
LGMT
Signed-off-by: Dmitri Mokhov <dmitri.n.mokhov@intel.com>
…nstructor. Signed-off-by: Dmitri Mokhov <dmitri.n.mokhov@intel.com>
Signed-off-by: Dmitri Mokhov <dmitri.n.mokhov@intel.com>
Signed-off-by: Mokhov, Dmitri N <dmitri.n.mokhov@intel.com>
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.
As a suggestion for clear UX, ErrorMessage
from getOpenCLDevice(Platform, Type)
should be extended with something like Failed to find OpenCL ### device in these OpenCL platforms: ***
, where ###
could be CPU, ..., etc, and ***
is the content of DeviceTypesToSupportedPlatformNames[Type]
vector.
Signed-off-by: Mokhov, Dmitri N <dmitri.n.mokhov@intel.com>
Signed-off-by: Mokhov, Dmitri N <dmitri.n.mokhov@intel.com>
Before picking a matched platform name, ensure the device type also
matches. This fixes a mismatch issue that was caused by an identical
supported platform name for CPU and GPU.
Only iterate through available platforms. When the error message is
non-empty, always return CLErr, so that the message is shown.
Signed-off-by: Dmitri Mokhov dmitri.n.mokhov@intel.com