You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moves a few i8 to c_char for ARM compatible tensor engine builds (#1814)
Summary:
Pull Request resolved: #1814
As title. For the interested, Claude mentions that the C standard says `char` signedness is implementation-defined.
x86_64 for instance has `char` be signed - therefore all of our usage of char as i8 was correct.
But on aarch64, it's unsigned by default.
Without this change, you see a lot of errors like this:
```
error[E0308]: mismatched types
--> monarch_rdma/src/rdma_manager_actor.rs:398:57
|
398 | let pci_addr = std::ffi::CStr::from_ptr(pci_addr_buf.as_ptr())
| ------------------------ ^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*const u8`
found raw pointer `*const i8`
note: associated function defined here
```
Reviewed By: shayne-fletcher
Differential Revision: D86711698
fbshipit-source-id: 0ffb7ec0a226734c50019adc913ef93c46efd11e
0 commit comments