Skip to content

Commit 54e9012

Browse files
[NFC][SYCL] Don't use get_platform_info outside platform_impl (#18291)
I'll plan to further simplify/unify/eliminate that particular helper. This change would make subsequent PR(s) easier to review.
1 parent 8039adc commit 54e9012

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sycl/source/detail/allowlist.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <detail/config.hpp>
1010
#include <detail/device_impl.hpp>
1111
#include <detail/device_info.hpp>
12-
#include <detail/platform_info.hpp>
1312
#include <sycl/backend_types.hpp>
1413

1514
#include <algorithm>
@@ -387,12 +386,10 @@ void applyAllowList(std::vector<ur_device_handle_t> &UrDevices,
387386
}
388387
// get PlatformVersion value and put it to DeviceDesc
389388
DeviceDesc.emplace(PlatformVersionKeyName,
390-
sycl::detail::get_platform_info<info::platform::version>(
391-
UrPlatform, Adapter));
389+
PlatformImpl.get_info<info::platform::version>());
392390
// get PlatformName value and put it to DeviceDesc
393391
DeviceDesc.emplace(PlatformNameKeyName,
394-
sycl::detail::get_platform_info<info::platform::name>(
395-
UrPlatform, Adapter));
392+
PlatformImpl.get_info<info::platform::name>());
396393

397394
int InsertIDx = 0;
398395
for (ur_device_handle_t Device : UrDevices) {

0 commit comments

Comments
 (0)