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 4646fc1 commit 6d7f2d3Copy full SHA for 6d7f2d3
sycl/source/detail/platform_impl.cpp
@@ -18,7 +18,9 @@ platform_impl_pi::get_platforms() {
18
vector_class<platform> platforms;
19
20
pi_uint32 num_platforms = 0;
21
- PI_CALL(RT::piPlatformsGet(0, 0, &num_platforms));
+ // TODO this bypasses PI_CALL macro as a temporary fix for the case with 0
22
+ // OpenCL platforms
23
+ RT::piPlatformsGet(0, 0, &num_platforms);
24
info::device_type forced_type = detail::get_forced_type();
25
26
if (num_platforms) {
0 commit comments