File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -375,11 +375,9 @@ uint64_t device_impl::getCurrentDeviceTime() {
375
375
bool device_impl::extOneapiCanBuild (
376
376
ext::oneapi::experimental::source_language Language) {
377
377
try {
378
- // Get the shared_ptr to this object from the platform that owns it.
379
- device_impl &Self = MPlatform->getOrMakeDeviceImpl (MDevice);
380
378
return sycl::ext::oneapi::experimental::detail::
381
379
is_source_kernel_bundle_supported (Language,
382
- std::vector<device_impl *>{&Self });
380
+ std::vector<device_impl *>{this });
383
381
384
382
} catch (sycl::exception &) {
385
383
return false ;
@@ -390,11 +388,10 @@ bool device_impl::extOneapiCanCompile(
390
388
ext::oneapi::experimental::source_language Language) {
391
389
try {
392
390
// Currently only SYCL language is supported for compiling.
393
- device_impl &Self = MPlatform->getOrMakeDeviceImpl (MDevice);
394
391
return Language == ext::oneapi::experimental::source_language::sycl &&
395
392
sycl::ext::oneapi::experimental::detail::
396
393
is_source_kernel_bundle_supported (
397
- Language, std::vector<device_impl *>{&Self });
394
+ Language, std::vector<device_impl *>{this });
398
395
} catch (sycl::exception &) {
399
396
return false ;
400
397
}
You can’t perform that action at this time.
0 commit comments