@@ -97,7 +97,7 @@ backend DPCTL_DPCTLBackendTypeToSyclBackend(DPCTLSyclBackendType BeTy)
97
97
case DPCTLSyclBackendType::DPCTL_OPENCL:
98
98
return backend::opencl;
99
99
default :
100
- throw runtime_error (" Unsupported backend type" , - 1 );
100
+ throw std:: runtime_error (" Unsupported backend type" );
101
101
}
102
102
}
103
103
@@ -135,7 +135,7 @@ info::device_type DPCTL_DPCTLDeviceTypeToSyclDeviceType(DPCTLSyclDeviceType DTy)
135
135
case DPCTLSyclDeviceType::DPCTL_HOST_DEVICE:
136
136
return info::device_type::host;
137
137
default :
138
- throw runtime_error (" Unsupported device type" , - 1 );
138
+ throw std:: runtime_error (" Unsupported device type" );
139
139
}
140
140
}
141
141
@@ -223,7 +223,7 @@ std::string DPCTL_AspectToStr(aspect aspectTy)
223
223
ss << " usm_system_allocator" ;
224
224
break ;
225
225
default :
226
- throw runtime_error (" Unsupported aspect type" , - 1 );
226
+ throw std:: runtime_error (" Unsupported aspect type" );
227
227
}
228
228
return ss.str ();
229
229
}
@@ -290,7 +290,7 @@ aspect DPCTL_StrToAspectType(const std::string &aspectTyStr)
290
290
}
291
291
else {
292
292
// \todo handle the error
293
- throw runtime_error (" Unsupported aspect type" , - 1 );
293
+ throw std:: runtime_error (" Unsupported aspect type" );
294
294
}
295
295
return aspectTy;
296
296
}
@@ -335,7 +335,7 @@ aspect DPCTL_DPCTLAspectTypeToSyclAspect(DPCTLSyclAspectType AspectTy)
335
335
case DPCTLSyclAspectType::usm_system_allocator:
336
336
return aspect::usm_system_allocator;
337
337
default :
338
- throw runtime_error (" Unsupported aspect type" , - 1 );
338
+ throw std:: runtime_error (" Unsupported aspect type" );
339
339
}
340
340
}
341
341
@@ -379,7 +379,7 @@ DPCTLSyclAspectType DPCTL_SyclAspectToDPCTLAspectType(aspect Aspect)
379
379
case aspect::usm_system_allocator:
380
380
return DPCTLSyclAspectType::usm_system_allocator;
381
381
default :
382
- throw runtime_error (" Unsupported aspect type" , - 1 );
382
+ throw std:: runtime_error (" Unsupported aspect type" );
383
383
}
384
384
}
385
385
@@ -402,7 +402,7 @@ info::partition_affinity_domain DPCTL_DPCTLPartitionAffinityDomainTypeToSycl(
402
402
case DPCTLPartitionAffinityDomainType::next_partitionable:
403
403
return info::partition_affinity_domain::next_partitionable;
404
404
default :
405
- throw runtime_error (" Unsupported partition_affinity_domain type" , - 1 );
405
+ throw std:: runtime_error (" Unsupported partition_affinity_domain type" );
406
406
}
407
407
}
408
408
@@ -425,7 +425,7 @@ DPCTLPartitionAffinityDomainType DPCTL_SyclPartitionAffinityDomainToDPCTLType(
425
425
case info::partition_affinity_domain::next_partitionable:
426
426
return DPCTLPartitionAffinityDomainType::next_partitionable;
427
427
default :
428
- throw runtime_error (" Unsupported partition_affinity_domain type" , - 1 );
428
+ throw std:: runtime_error (" Unsupported partition_affinity_domain type" );
429
429
}
430
430
}
431
431
0 commit comments