Skip to content

SYCL: Runtime: Roll back to original usage of sycl::get_kernel_bundle #1121

@fengyuan14

Description

@fengyuan14

🐛 Describe the bug

The straight forward thought is kernel bundle is not device specific under a specific platform context (Like GPU platform). So we should not use dev (Existing WA for the intel/llvm#15127) as a hint.

 18   auto kid = ::sycl::get_kernel_id<KernelClass>();
 24   auto kbundle = ::sycl::get_kernel_bundle<::sycl::bundle_state::executable>(
 25       ctx, {dev}, {kid}); // Should not be device specific
 26
 27   ::sycl::kernel k = kbundle.get_kernel(kid);
 28   return k.get_info<::sycl::info::kernel_device_specific::work_group_size>(dev); // Device specific. In additional, launching a kernel on a specific device is device specific.

Versions

The fixing will land on oneAPI25.2. PT2.8

Metadata

Metadata

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions