Skip to content

Fix HVX f16-vlog build and 32-bit TrackingAllocate alignment in subgraph benchmark. - #11715

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1001356518
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1001356518

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Fix HVX f16-vlog build and 32-bit TrackingAllocate alignment in subgraph benchmark.

  • Uncomment xnn_f16_f32acc_vlog_ukernel__hvx_* declarations in src/f16-vlog/f16-vlog.inc to match src/configs/unary-elementwise-config.c.
  • Pad TrackingAllocate, TrackingDeallocate, and TrackingReallocate header size in bench/subgraph/benchmark.cc to std::max(sizeof(size_t), alignof(std::max_align_t)) so returned pointers remain 8-byte aligned on 32-bit targets (such as Hexagon DSP).

…aph benchmark.

- Uncomment `xnn_f16_f32acc_vlog_ukernel__hvx_*` declarations in `src/f16-vlog/f16-vlog.inc` to match `src/configs/unary-elementwise-config.c`.
- Pad `TrackingAllocate`, `TrackingDeallocate`, and `TrackingReallocate` header size in `bench/subgraph/benchmark.cc` to `std::max(sizeof(size_t), alignof(std::max_align_t))` so returned pointers remain 8-byte aligned on 32-bit targets (such as Hexagon DSP).

PiperOrigin-RevId: 1001356518
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