@@ -179,15 +179,9 @@ AllowListParsedT parseAllowList(const std::string &AllowListRaw) {
179
179
DriverVersionKeyName, PlatformVersionKeyName, DeviceNameKeyName,
180
180
PlatformNameKeyName};
181
181
182
- const std::string &DeprecatedKeyNameDeviceName = DeviceNameKeyName;
183
- const std::string &DeprecatedKeyNamePlatformName = PlatformNameKeyName;
184
-
185
182
size_t KeyStart = 0 , KeyEnd = 0 , ValueStart = 0 , ValueEnd = 0 ,
186
183
DeviceDescIndex = 0 ;
187
184
188
- bool IsDeprecatedKeyNameDeviceNameWasUsed = false ;
189
- bool IsDeprecatedKeyNamePlatformNameWasUsed = false ;
190
-
191
185
while ((KeyEnd = AllowListRaw.find (' :' , KeyStart)) != std::string::npos) {
192
186
if ((ValueStart = AllowListRaw.find_first_not_of (" :" , KeyEnd)) ==
193
187
std::string::npos)
@@ -201,12 +195,6 @@ AllowListParsedT parseAllowList(const std::string &AllowListRaw) {
201
195
throw sycl::runtime_error (" Unrecognized key in SYCL_DEVICE_ALLOWLIST" ,
202
196
PI_INVALID_VALUE);
203
197
}
204
- if (Key == DeprecatedKeyNameDeviceName) {
205
- IsDeprecatedKeyNameDeviceNameWasUsed = true ;
206
- }
207
- if (Key == DeprecatedKeyNamePlatformName) {
208
- IsDeprecatedKeyNamePlatformNameWasUsed = true ;
209
- }
210
198
211
199
bool ShouldAllocateNewDeviceDescMap = false ;
212
200
@@ -341,25 +329,6 @@ AllowListParsedT parseAllowList(const std::string &AllowListRaw) {
341
329
}
342
330
}
343
331
344
- if (IsDeprecatedKeyNameDeviceNameWasUsed &&
345
- IsDeprecatedKeyNamePlatformNameWasUsed) {
346
- std::cerr << " \n WARNING: DeviceName and PlatformName in "
347
- " SYCL_DEVICE_ALLOWLIST are deprecated. " ;
348
- } else if (IsDeprecatedKeyNameDeviceNameWasUsed) {
349
- std::cerr
350
- << " \n WARNING: DeviceName in SYCL_DEVICE_ALLOWLIST is deprecated. " ;
351
- } else if (IsDeprecatedKeyNamePlatformNameWasUsed) {
352
- std::cerr
353
- << " \n WARNING: PlatformName in SYCL_DEVICE_ALLOWLIST is deprecated. " ;
354
- }
355
- if (IsDeprecatedKeyNameDeviceNameWasUsed ||
356
- IsDeprecatedKeyNamePlatformNameWasUsed) {
357
- std::cerr << " Please use BackendName, DeviceType and DeviceVendorId "
358
- " instead. For details, please refer to "
359
- " https://github.com/intel/llvm/blob/sycl/sycl/doc/"
360
- " EnvironmentVariables.md\n\n " ;
361
- }
362
-
363
332
return AllowListParsed;
364
333
}
365
334
0 commit comments