Skip to content

Fix deserialization of prefetches of external parameters - #9493

Merged
abadams merged 4 commits into
mainfrom
abadams/fix_prefetch_deserialization
Oct 5, 2026
Merged

abadams merged 4 commits into
mainfrom
abadams/fix_prefetch_deserialization

Conversation

@abadams

@abadams abadams commented Sep 30, 2026

Copy link
Copy Markdown
Member

Another fix PR discovered while working on halidoscope. AI text follows:

deserialize_prefetch_directive only looked up the prefetched parameter in parameters_in_pipeline, but an ImageParam used by the pipeline is serialized as an external parameter, so deserializing a pipeline that prefetches an ImageParam failed with "unknown parameter used in pipeline". Look up user_params and external_params first, as the other parameter lookups do.

deserialize_prefetch_directive only looked up the prefetched parameter in
parameters_in_pipeline, but an ImageParam used by the pipeline is
serialized as an external parameter, so deserializing a pipeline that
prefetches an ImageParam failed with "unknown parameter used in pipeline".
Look up user_params and external_params first, as the other parameter
lookups do.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.08%. Comparing base (197abe1) to head (5d4c822).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/Deserialization.cpp 40.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9493      +/-   ##
==========================================
- Coverage   71.11%   71.08%   -0.04%     
==========================================
  Files         261      261              
  Lines       80229    80233       +4     
  Branches    19551    19553       +2     
==========================================
- Hits        57058    57033      -25     
+ Misses      17374    17337      -37     
- Partials     5797     5863      +66     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexreinking

Copy link
Copy Markdown
Member

Real failure in correctness-serialization:

HL_JIT_TARGET=host-hvx
HL_TARGET=host-hvx
#CTEST_RESOURCE_GROUP_COUNT=
/home/halidenightly/build_bot/worker/halide-llvm_main-x86-64-linux/halide-build/test/correctness/correctness_serialization
Error: Only prefetch of 1 cache line is supported.
Required regular expression not found. Regex=[Success!]

abadams and others added 3 commits October 1, 2026 11:09
Host-side prefetches can't be compiled for targets with the hvx feature
(#9496).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…deserialization

# Conflicts:
#	test/correctness/serialization.cpp
@abadams

abadams commented Oct 5, 2026

Copy link
Copy Markdown
Member Author

Failure unrelated

@abadams
abadams merged commit 396154d into main Oct 5, 2026
27 of 28 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.

2 participants