Skip to content

[vulkan] allocate convert_to_bool constants per lane - #9672

Open
NekoAsakura wants to merge 4 commits into
halide:mainfrom
NekoAsakura:gh-9671-vulkan-bool-vector-cast
Open

NekoAsakura wants to merge 4 commits into
halide:mainfrom
NekoAsakura:gh-9671-vulkan-bool-vector-cast

Conversation

@NekoAsakura

Copy link
Copy Markdown

@derek-gerstmann derek-gerstmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for tracking down and fixing #9671! The target_type.bytes() * target_type.lanes() buffer sizing fix is spot on. Left a couple of inline notes on adjacent Type::bytes() places in the SPIR-V constant/cast path and expanding the test coverage.

Comment thread src/CodeGen_Vulkan_Dev.cpp Resolved
@NekoAsakura

Copy link
Copy Markdown
Author

Thanks, all done.

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.81%. Comparing base (659675b) to head (f8e2d71).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/CodeGen_Vulkan_Dev.cpp 30.43% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9672      +/-   ##
==========================================
- Coverage   72.82%   72.81%   -0.01%     
==========================================
  Files         266      266              
  Lines       83479    83480       +1     
  Branches    20499    20499              
==========================================
- Hits        60792    60789       -3     
- Misses      16207    16215       +8     
+ Partials     6480     6476       -4     

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

@derek-gerstmann derek-gerstmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can just make this a generic, non-vulkan specific test. Let's rename the source file to bool_vector_cast.cpp, and remove the if (!target.has_feature(Target::Vulkan)) so it runs on every device.

@NekoAsakura

Copy link
Copy Markdown
Author

Sorry for the late reply. Added skip cases are either compile errors or silent errors (e.g. bfhalf read as half). I've tested on cpu, cuda, vulkan, wasm and opencl, but have no environment for the rest.

This branch has not been deployed

No deployments
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