Repository navigation
Build and test conda packages and wheels - #2409
Merged
Merged
Conversation
jharlow-intel
requested review from
antonwolfy and
vlad-perevezentsev
as code owners
November 3, 2026 14:11
jharlow-intel
force-pushed
the
ci/intel-python-ci
branch
from
November 3, 2026 14:11
9fc1cc4 to
e53ef4e
Compare
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Collaborator
ndgrigorian
reviewed
Nov 5, 2026
jharlow-intel
force-pushed
the
ci/intel-python-ci
branch
3 times, most recently
from
November 10, 2026 22:49
9ea68d5 to
a3fdfd1
Compare
jharlow-intel
enabled auto-merge
November 18, 2026 19:28
antonwolfy
reviewed
Nov 24, 2026
Adds a ci/ directory and .github/workflows/intel-ci.yml, which build the conda packages and the wheels for every declared platform and Python and test each with ci/test.py on the OpenCL CPU device. conda-recipe/ is now the only recipe, the conda-forge one that was conda-recipe-cf/; the Intel-channel recipe and conda-package.yml are removed. The dev uploads to anaconda.org and their cleanup move into intel-ci.yml, for pushes to master and tags only. The wheels leave the SYCL runtime out and require intel-sycl-rt and intel-cmplr-lib-rt, as the PyPI wheels do; scikit-build is pinned below 1.0 (#2341). LDFLAGS in the cibuildwheel environment links every Linux library with -z,relro,-z,now, as conda-forge's compiler activation does for the conda packages, so libDPCTLSyclInterface.so gets full RELRO like the extensions. conda-build gets --extra-meta remote_url=... sha=... when GitHub Actions sets GITHUB_SERVER_URL, GITHUB_REPOSITORY and GITHUB_SHA, so each conda package records the commit it was built from. A pull request also builds and tests the newest free-threaded version, and every push and tag run gets a concurrency group of its own. Every test job waits for both the conda and the wheel builds, and the conda packages build Python 3.15t too. The benchmarks take PyYAML from conda-forge, as PyPI has no Python 3.15 wheel for it yet. ci/build.py refuses two built packages with the same file name, which would overwrite each other in its flat output directory. ci/test.py fails when python -m dpctl -f fails, and when the environment's conda compilers cannot build an extension, instead of deselecting the two tests that need them. The dev upload takes each wheel's version from its file name and fails when there is nothing to upload. The benchmarks set USERPROFILE as well as HOME, and the repair commands match any libsycl version, as wheel-requires allows any 2026 runtime.
jharlow-intel
force-pushed
the
ci/intel-python-ci
branch
from
November 24, 2026 18:36
7887bec to
e0a8e2f
Compare
- hooks.py passes GH_CI_DEVICE and ONEAPI_DEVICE_SELECTOR to test.py, so a GPU run without a GPU fails instead of passing on the CPU - build.py adds requirements only to the wheels it built, and pins intel-sycl-rt and intel-cmplr-lib-rt to >= the icx version the build installed, < its next major ([tool.gh-ci.pin-compatible]) - install_icx.py installs icx and the Level Zero headers on Linux too, so the compiler version and the Level Zero tag are set once per platform - Linux wheels link with --as-needed, --disable-new-dtags and --gc-sections, as conda-forge does, so RPATH wins over LD_LIBRARY_PATH - intel-ci.yml runs the examples on Linux and Windows, which replaces conda-package-cf.yml; artifacts of pushes keep 30 days, of pull requests 7; Miniforge is pinned once - conda-build, conda-index, cibuildwheel and anaconda-client are pinned in environments/, which Dependabot watches - matrix.py reads skip: lines with conda-build's selector pattern - The recipe declares ninja on Windows too, and names every Python ABI - The nightly tests the dev packages with conda-forge only, and 3.15t - Install docs point to conda-forge and PyPI; the build docs build one Python and install the local package - License headers on every ci/ script
vcvars, which the stacked vs2022 environment runs, grows PATH on every activation and conda deactivate leaves that behind, so the third example failed with "The input line is too long"; setlocal/endlocal scopes it.
Its CMakeLists.txt forced a Debug build, whose _DEBUG makes Python's headers on Windows need the debug refcount API, which a release Python does not export; the Windows examples job, which builds the pybind11 examples now, failed to link it.
ndgrigorian
reviewed
Dec 1, 2026
ndgrigorian
reviewed
Dec 1, 2026
ndgrigorian
reviewed
Dec 1, 2026
ndgrigorian
reviewed
Dec 1, 2026
…L headers - package_spec.py takes the Python spec conda_build_config.yaml declares, so 3.10 to 3.12 get *_cpython, not a cp3XX ABI they do not have - test.py looks for the OpenCL CPU runtime only where intel-opencl-rt installs it: lib/ or Library/bin/, or their intel-ocl-cpu/ - The recipe declares opencl-headers again, on every platform: libsyclinterface includes CL/cl.h, and conda-forge's intel-sycl-rt depends on it only from 2026.1.1, while the recipe allows 2026.0.0 - build.py defined PACKAGE_SUFFIXES twice
ndgrigorian
reviewed
Dec 1, 2026
ndgrigorian
reviewed
Dec 1, 2026
ndgrigorian
reviewed
Dec 1, 2026
ndgrigorian
reviewed
Dec 1, 2026
ndgrigorian
approved these changes
Dec 2, 2026
ndgrigorian
left a comment
Collaborator
There was a problem hiding this comment.
No further comments from my side, this more or less LGTM
1 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
ci/and.github/workflows/intel-ci.yml, which build the conda packages and wheels for Linux and Windows on every declared Python, test each in a clean environment, and build and runexamples/against the newest conda packages.conda-recipe/is now the only recipe: the conda-forge one that wasconda-recipe-cf/. The Intel-channel recipe,conda-package.ymlandconda-package-cf.ymlare removed. No workflow builds or tests against the Intel channel any more: the nightlyrun-tests-from-dppy-bits.yamland the install docs use conda-forge and PyPI.pip check, the import andpython -m dpctl -f, as in the conda-forge feedstock; the test suite runs inci/test.py.intel-sycl-rtandintel-cmplr-lib-rtat least at the icx version they were built with and below its next major, like conda'spin_compatible. The Linux wheels link as conda-forge does, so their RPATH wins overLD_LIBRARY_PATH.scikit-buildis pinned below 1.0 (Scikit-build (classic) 1.0 internals #2341).ci/test.pyrunspytest --pyargs dpctlon the installed package and fails when it finds no SYCL device: the OpenCL CPU device in Actions, or a GPU withGH_CI_DEVICE=gpu.conda-package-cf.ymlranconda listwithoutcall, which ended those steps before any example built.use_dpctl_sycl_kernelno longer forces a Debug build, which cannot link against a release Python on Windows.environments/, which Dependabot watches.What
dppy/label/devgets. A push tomasteror a tag, after every test passed, uploads these and then removes the old dev packages:intel-sycl-rt,intel-cmplr-lib-rtanddpcpp-cpp-rtfrom the compiler they were built with up to 2027,numpy >=1.25,<3, and on Linuxlibstdcxx >=15and glibc 2.28, so they are meant for conda-forge environments.manylinux_2_28_x86_64andwin_amd64. They requireintel-sycl-rtandintel-cmplr-lib-rtfrom PyPI, today 2026.2.1 or newer on Linux and 2026.2.0 or newer on Windows.Validation: run 46484653967 built and tested the conda packages and wheels for 3.10, 3.15 and 3.15t on Linux and Windows, and built and ran the examples against 3.15 and 3.15t on both; pre-commit and zizmor passed. Before the rename, a full-matrix run passed all 61 jobs, 3.14t and 3.15t included. Not run yet: a GPU, and the uploads, which only
masterand tags do.