We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58cfef commit 8c07803Copy full SHA for 8c07803
sycl/source/detail/platform_impl.cpp
@@ -100,11 +100,11 @@ vector_class<platform> platform_impl::get_platforms() {
100
for (unsigned int i = 0; i < Plugins.size(); i++) {
101
102
pi_uint32 NumPlatforms = 0;
103
- // Just return zero platforms if plugin fails to initialize.
+ // Move to the next plugin if the plugin fails to initialize.
104
// This way platforms from other plugins get a chance to be discovered.
105
if (Plugins[i].call_nocheck<PiApiKind::piPlatformsGet>(
106
0, nullptr, &NumPlatforms) != PI_SUCCESS)
107
- return Platforms;
+ continue;
108
109
if (NumPlatforms) {
110
vector_class<RT::PiPlatform> PiPlatforms(NumPlatforms);
0 commit comments