[Fix] Try to fix nvcc compilation error (#21246)

This commit is contained in:
DarkSharpness
2026-03-26 10:59:36 +08:00
committed by GitHub
parent a34e9ed64a
commit bb29893689
7 changed files with 75 additions and 9 deletions
@@ -194,8 +194,8 @@ struct CustomAllReduceBase : public tvm::ffi::Object {
for (const auto j : irange(new_registered_count)) {
/// NOTE: structural binding will cause intern compiler error...
const auto elem = array[j];
const auto offset = get<0>(elem);
const auto ipc_handle = get<1>(elem);
const auto offset = elem.get<0>();
const auto ipc_handle = elem.get<1>();
data[j].input[i] = pointer::offset(open_cached(ipc_handle), offset);
}
}