@@ -148,8 +148,8 @@ AllowListParsedT parseAllowList(const std::string &AllowListRaw) {
148
148
// check that values of keys, which should have some fixed format, are
149
149
// valid. E.g., for BackendName key, the allowed values are only ones
150
150
// described in SyclBeMap
151
- ValidateEnumValues (BackendNameKeyName, SyclBeMap );
152
- ValidateEnumValues (DeviceTypeKeyName, SyclDeviceTypeMap );
151
+ ValidateEnumValues (BackendNameKeyName, getSyclBeMap () );
152
+ ValidateEnumValues (DeviceTypeKeyName, getSyclDeviceTypeMap () );
153
153
154
154
if (Key == DeviceVendorIdKeyName) {
155
155
// DeviceVendorId should have hex format
@@ -310,7 +310,7 @@ void applyAllowList(std::vector<RT::PiDevice> &PiDevices,
310
310
311
311
// get BackendName value and put it to DeviceDesc
312
312
sycl::backend Backend = Plugin.getBackend ();
313
- for (const auto &SyclBe : SyclBeMap ) {
313
+ for (const auto &SyclBe : getSyclBeMap () ) {
314
314
if (SyclBe.second == Backend) {
315
315
DeviceDesc.emplace (BackendNameKeyName, SyclBe.first );
316
316
break ;
@@ -336,7 +336,7 @@ void applyAllowList(std::vector<RT::PiDevice> &PiDevices,
336
336
sizeof (RT::PiDeviceType),
337
337
&PiDevType, nullptr );
338
338
sycl::info::device_type DeviceType = pi ::cast<info::device_type>(PiDevType);
339
- for (const auto &SyclDeviceType : SyclDeviceTypeMap ) {
339
+ for (const auto &SyclDeviceType : getSyclDeviceTypeMap () ) {
340
340
if (SyclDeviceType.second == DeviceType) {
341
341
const auto &DeviceTypeValue = SyclDeviceType.first ;
342
342
DeviceDesc[DeviceTypeKeyName] = DeviceTypeValue;
0 commit comments