Skip to content

[SYCL][NFC] Avoid unused variable AccTarget #18675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions sycl/source/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,10 +1234,9 @@ void handler::extractArgsAndReqsFromLambda(
} else if (Kind == detail::kernel_param_kind_t::kind_dynamic_accessor) {
// For args kind of accessor Size is information about accessor.
// The first 11 bits of Size encodes the accessor target.
const access::target AccTarget =
static_cast<access::target>(Size & AccessTargetMask);
// Only local targets are supported for dynamic accessors.
assert(AccTarget == access::target::local);
assert(static_cast<access::target>(Size & AccessTargetMask) ==
access::target::local);

ext::oneapi::experimental::detail::dynamic_parameter_base
*DynamicParamBase = static_cast<
Expand Down
Loading