Skip to content

Build and test conda packages and wheels - #2409

Merged
jharlow-intel merged 5 commits into
masterfrom
ci/intel-python-ci
Dec 2, 2026
Merged

jharlow-intel merged 5 commits into
masterfrom
ci/intel-python-ci

Conversation

@jharlow-intel

@jharlow-intel jharlow-intel commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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 run examples/ against the newest conda packages.

  • conda-recipe/ is now the only recipe: the conda-forge one that was conda-recipe-cf/. The Intel-channel recipe, conda-package.yml and conda-package-cf.yml are removed. No workflow builds or tests against the Intel channel any more: the nightly run-tests-from-dppy-bits.yaml and the install docs use conda-forge and PyPI.
  • The recipe's own tests are pip check, the import and python -m dpctl -f, as in the conda-forge feedstock; the test suite runs in ci/test.py.
  • Wheels build with cibuildwheel and icx 2026.2, leave the SYCL runtime out, and require intel-sycl-rt and intel-cmplr-lib-rt at least at the icx version they were built with and below its next major, like conda's pin_compatible. The Linux wheels link as conda-forge does, so their RPATH wins over LD_LIBRARY_PATH. scikit-build is pinned below 1.0 (Scikit-build (classic) 1.0 internals #2341).
  • ci/test.py runs pytest --pyargs dpctl on the installed package and fails when it finds no SYCL device: the OpenCL CPU device in Actions, or a GPU with GH_CI_DEVICE=gpu.
  • The examples jobs build every example on Windows too: the removed conda-package-cf.yml ran conda list without call, which ended those steps before any example built. use_dpctl_sycl_kernel no longer forces a Debug build, which cannot link against a release Python on Windows.
  • The CI's tools (conda-build, conda-index, cibuildwheel and anaconda-client) are pinned in environments/, which Dependabot watches.

What dppy/label/dev gets. A push to master or a tag, after every test passed, uploads these and then removes the old dev packages:

  • conda packages for Python 3.10 to 3.15, 3.14t and 3.15t, on linux-64 and win-64, built against conda-forge only. They need conda-forge's intel-sycl-rt, intel-cmplr-lib-rt and dpcpp-cpp-rt from the compiler they were built with up to 2027, numpy >=1.25,<3, and on Linux libstdcxx >=15 and glibc 2.28, so they are meant for conda-forge environments.
  • wheels for cp310 to cp315, cp314t and cp315t, for manylinux_2_28_x86_64 and win_amd64. They require intel-sycl-rt and intel-cmplr-lib-rt from 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 master and tags do.

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

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

@coveralls

coveralls commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 75.173%. remained the same — ci/intel-python-ci into master

Comment thread ci/test.py Resolved
Comment thread ci/test.py Resolved
Comment thread .github/workflows/intel-ci.yml Resolved
Comment thread ci/benchmark.py Resolved
Comment thread conda-recipe/bld.bat Resolved
Comment thread conda-recipe/bld.bat Resolved
Comment thread pyproject.toml Resolved
@jharlow-intel jharlow-intel changed the title Build and test conda packages and wheels for Intel Python CI Build and test conda packages and wheels Nov 5, 2026
@jharlow-intel
jharlow-intel force-pushed the ci/intel-python-ci branch 3 times, most recently from 9ea68d5 to a3fdfd1 Compare November 10, 2026 22:49
Comment thread conda-recipe/conda_build_config.yaml Resolved
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.
- 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.
Comment thread conda-recipe/meta.yaml Resolved
Comment thread ci/build.py Resolved
Comment thread ci/package_spec.py Resolved
Comment thread ci/test.py Resolved
…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
Comment thread .github/workflows/intel-ci.yml Resolved
Comment thread .github/workflows/intel-ci.yml Resolved
Comment thread .github/workflows/intel-ci.yml Resolved
Comment thread .github/workflows/intel-ci.yml Resolved

@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.

No further comments from my side, this more or less LGTM

@jharlow-intel
jharlow-intel merged commit c60504d into master Dec 2, 2026
37 of 39 checks passed
@jharlow-intel
jharlow-intel deleted the ci/intel-python-ci branch December 2, 2026 18:48
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.

4 participants