Skip to content

Fix CUDA/HIP build: use i32 typedef for arrival_state_offset#56

Merged
robtaylor merged 1 commit intomainfrom
fix-hip-cuda-bindgen
Mar 4, 2026
Merged

Fix CUDA/HIP build: use i32 typedef for arrival_state_offset#56
robtaylor merged 1 commit intomainfrom
fix-hip-cuda-bindgen

Conversation

@robtaylor
Copy link
Contributor

Summary

  • Replaces bare C int with i32 typedef (from ulib/types.hpp) for arrival_state_offset parameter in CUDA, HIP, and shared impl headers
  • Fixes bindgen failure: Rust doesn't recognize bare int in generated FFI bindings

Test plan

  • CUDA Tests pass
  • HIP Tests pass
  • Metal Tests pass (verified locally)

…tate_offset

The bindgen-generated Rust FFI bindings don't recognize bare C `int` —
they need `i32` (typedef for int32_t from ulib/types.hpp) to map
correctly to Rust's i32.

Co-developed-by: Claude Code v2.1.50 (claude-opus-4-6)
@robtaylor robtaylor merged commit 4bb9a07 into main Mar 4, 2026
12 checks passed
@robtaylor robtaylor deleted the fix-hip-cuda-bindgen branch March 4, 2026 19:06
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