Skip to content

docker: bump base to LLVM 22 native + OneAPI 2025.3.2#1262

Open
pvelesko wants to merge 1 commit into
mainfrom
docker-llvm22-native-oneapi-2025
Open

docker: bump base to LLVM 22 native + OneAPI 2025.3.2#1262
pvelesko wants to merge 1 commit into
mainfrom
docker-llvm22-native-oneapi-2025

Conversation

@pvelesko
Copy link
Copy Markdown
Collaborator

Summary

  • LLVM 22 with the integrated SPIR-V backend (--variant native); chipStar auto-enables CHIP_LLVM_USE_INTERGRATED_SPIRV.
  • PoCL main (7.1 caps at LLVM 21).
  • OneAPI conda env bumped to 2025.3.2 + accept Anaconda ToS.
  • Drop in-build MatrixMultiply smoke test (no /dev/dri in docker build sandbox).
  • Fail-loud: &&-chained build steps, test -x clang/poclcc guards, base-staleness checks in DockerfileLatest.

Fixes the HipCleanup.cpp starts_with compile error in the publish-docker workflow.

Test plan

  • Base image rebuilt + verified locally (clang 22.1.6, spirv* targets registered, OneAPI 2025.3.2 env present).
  • Latest image rebuilt against new base; chipStar compiles 100% clean and installs.
  • Both images pushed to Docker Hub (pveleskopglc/chipstar:{base,latest}).

- LLVM 22 with the integrated SPIR-V backend (--variant native);
  chipStar auto-enables CHIP_LLVM_USE_INTERGRATED_SPIRV at LLVM >=22.
- PoCL pinned to main (7.1 only supports up to LLVM 21).
- OneAPI conda env bumped to 2025.3.2 with build strings mirroring
  a known-good local install; accept Anaconda ToS so non-interactive
  conda create stops failing with CondaToSNonInteractiveError.
- Copy scripts/ + llvm-patches/ as a unit so configure_llvm.sh can
  resolve patch dirs at $THIS_SCRIPT_DIR/../llvm-patches/.
- Chain build commands with && (and add test -x clang/poclcc guards)
  so a partial install can no longer be silently cached.
- mkdir -p $OPENCL_VENDOR_PATH before copying intel.icd (PoCL main
  does not pre-create etc/OpenCL/vendors).
- Drop the in-build MatrixMultiply smoke test: docker build has no
  /dev/dri/* passthrough on the meatloaf CI runner, so the existing
  CHIP_DEVICE_TYPE=gpu would never have found a device.
- DockerfileLatest: explicit module load llvm/22.0-native AFTER
  oneapi so /apps/llvm/22.0-native/bin/clang wins in PATH over
  oneapi's icx, plus base-staleness guards.
@pvelesko pvelesko force-pushed the docker-llvm22-native-oneapi-2025 branch from b60d813 to 370e71e Compare May 13, 2026 00:57
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.

1 participant