File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,11 @@ std::vector<platform> platform_impl::get_platforms() {
126
126
// insert PiPlatform into the Plugin
127
127
Plugin.getPlatformId (PiPlatform);
128
128
}
129
- // The users of (deprecated) SYCL_DEVICE_ALLOWLIST expect that
130
- // platforms with no devices will not be reported.
131
- if (!SYCLConfig<SYCL_DEVICE_ALLOWLIST>::get () ||
132
- !Platform.get_devices (info::device_type::all).empty ()) {
129
+
130
+ // The SYCL spec says that a platform has one or more devices. ( SYCL
131
+ // 2020 4.6.2 ) If we have an empty platform, we don't report it back
132
+ // from platform::get_platforms().
133
+ if (!Platform.get_devices (info::device_type::all).empty ()) {
133
134
Platforms.push_back (Platform);
134
135
}
135
136
}
You can’t perform that action at this time.
0 commit comments