Conversation
xla/ffi/api/c_api.h
Outdated
|
|
||
| #define XLA_FFI_UNKNOWN_TYPE_ID XLA_FFI_TypeId{0} | ||
| #define XLA_FFI_UNKNOWN_TYPE_ID \ | ||
| XLA_FFI_TypeId { 0 } |
There was a problem hiding this comment.
Potential C compatibility issue: This macro was reformatted from XLA_FFI_TypeId{0} to XLA_FFI_TypeId { 0 } (space between type name and opening brace). This header is a C/C++ interop header (guarded by #ifdef __cplusplus / extern "C"). While XLA_FFI_TypeId { 0 } is valid brace-initialization in C++, if this macro is ever expanded in C code it could cause issues — compound literals in C require (XLA_FFI_TypeId){0} syntax. The original form was safer. Consider reverting this formatting change.
xla/ffi/execution_state_test.cc
Outdated
| EXPECT_TRUE(state.IsSet()); | ||
|
|
||
| TF_ASSERT_OK_AND_ASSIGN(int32_t* data, state.Get<int32_t>()); | ||
| TF_ASSERT_OK_AND_ASSIGN(int32_t * data, state.Get<int32_t>()); |
There was a problem hiding this comment.
Style nit: int32_t * data (space on both sides of *) does not match Google C++ style, which uses int32_t* data. The formatter may have been confused by the TF_ASSERT_OK_AND_ASSIGN macro's comma. Consider reverting to int32_t* data.
|
|
||
| // Record elapsed device time for the given input device type. | ||
| void Record(absl::Duration elapsed, DeviceType device_type) override {}; | ||
| void Record(absl::Duration elapsed, DeviceType device_type) override{}; |
There was a problem hiding this comment.
Formatting inconsistency: The space before override was removed here (override{};), but the line above keeps the space (override {). This looks like an accidental formatting regression — consider adding the space back for consistency and readability: override {};.
d7c9709 to
1d7e952
Compare
Motivation
fix the kernel details for v1, in case we still need to switch to v1 due to issues with rocprofiler-sdk. (later versions have such issues).