Skip to content

Drop -fno-sycl-id-queries-fit-in-int from dpctl extensions - #2413

Merged
antonwolfy merged 2 commits into
masterfrom
drop-id-queries-fit-in-int
Nov 4, 2026
Merged

antonwolfy merged 2 commits into
masterfrom
drop-id-queries-fit-in-int

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

dpctl passes -fno-sycl-id-queries-fit-in-int as a compile option to the Cython extensions built by build_dpctl_ext(... SYCL) (_sycl_queue, dpctl.memory) and to the pybind11 extensions in dpctl/utils (_device_queries, _seq_order_keeper). The option was added for dpctl.tensor kernels in 9af90dd to fix gh-1184, and it stayed in these files after dpctl.tensor moved to dpnp.

None of these modules launches a kernel over a range. _sycl_queue, dpctl.memory and _device_queries contain no device kernels (their SYCL offload section is an empty stub), and _seq_order_keeper only submits an empty single_task. So the option has no effect on them.

Starting with DPC++ 2026.2, the ID range is recorded at the device link step (see IntelPython/dpnp#3089), so passing the option only at compile time would not allow launches over INT_MAX work-items even if these modules had such kernels. Instead of also adding it as a link option, this PR removes it. A kernel added later that can run over more than INT_MAX work-items will need it at both compile and link time.

This doesn't change kernels compiled at runtime by dpctl.compiler.create_kernel_bundle_from_sycl_source, which don't use these build options.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

The option was added for dpctl.tensor kernels in 9af90dd (gh-1184)
and stayed in build_dpctl_ext and dpctl/utils after dpctl.tensor moved
to dpnp. None of these modules launches a kernel over a range:
_sycl_queue, dpctl.memory and _device_queries contain no device
kernels, and _seq_order_keeper only submits an empty single_task.

Starting with DPC++ 2026.2 the ID range is recorded at the device link
step, so passing the option only at compile time has no effect anyway.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The compile-option cleanup has no active review issues.

No open issues 🎉

What changed in this PR

Removes the unnecessary -fno-sycl-id-queries-fit-in-int compile option from dpctl extensions following the move of dpctl.tensor to dpnp. Runtime kernel compilation remains unchanged.

Changes:

  • Removes the option from SYCL-enabled Cython extensions and utility pybind11 extensions.
  • Records the cleanup in the changelog.
File Description
dpctl/​utils/​CMakeLists.txt Removes the option from utility pybind11 targets.
dpctl/​CMakeLists.txt Removes the option from build_dpctl_ext(... SYCL) targets.
CHANGELOG.md Documents the compile-option removal under Maintenance.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@coveralls

coveralls commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 74.893%. remained the same — drop-id-queries-fit-in-int into master

@ndgrigorian ndgrigorian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@antonwolfy
antonwolfy merged commit 0a2b834 into master Nov 4, 2026
135 of 138 checks passed
@antonwolfy
antonwolfy deleted the drop-id-queries-fit-in-int branch November 4, 2026 17:05
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.

Provided range is out of integer limits error on array creation with order="F"

4 participants