Skip to content

Silence SYCL unused parameter warning - #462

Merged
mhoemmen merged 1 commit into
kokkos:stablefrom
NamjaeChoi:stable
Jul 17, 2026
Merged

Silence SYCL unused parameter warning#462
mhoemmen merged 1 commit into
kokkos:stablefrom
NamjaeChoi:stable

Conversation

@NamjaeChoi

Copy link
Copy Markdown
Contributor

No description provided.

@masterleinad masterleinad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since mdspan tries to be C++14 compliant in part, it might be better to do

ifdef __SYCL_DEVICE_ONLY__
  (void) a;
  (void) b;
  return true;
#else

instead.

@mhoemmen mhoemmen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

The changes look harmless, though I have no way to test them currently.

@mhoemmen
mhoemmen merged commit 035af28 into kokkos:stable Jul 17, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants