[SYCL] Don't return empty platforms#7923
Conversation
|
Does spec mandate (or even allow) that platforms with no devices be filtered? |
|
/verify with intel/llvm-test-suite#1491 |
|
Probably we should report that empty platform doesn't have any device aspects, because it doesn't have any devices. |
With this change empty platforms are not reported, so there is no way to query aspects from such. |
|
Matching update to test suite here: intel/llvm-test-suite#1493 |
Please, test them together. |
|
/verify with intel/llvm-test-suite#1493 |
collecting empty platforms leads to confusion for things like
platform.has(aspect)