ciflow/trunk/187002: Fix 32-bit overflow in AllocatorConfig's round-up-power-of-2 bounds
- PyTorch 近 90 天出现 160 次
- PyTorch 近 90 天第 158 次发版
- 上一次:同一天稍早 · ciflow/xpu/191166
发生了什么
kRoundUpPowerOfTwoEnd (64GB) overflows a 32-bit size_t and wraps to 0 during constant evaluation, so std::bit_width(kRoundUpPowerOfTwoEnd) becomes 0 and the static_assert added by #187002 fails to compile with "4294967275 == 16". The overflow predates #187002 ; the old runtime TORCH_CHECK_VALUE never caught it since no CI config is 32-bit. Fix: give kRoundUpPowerOfTwoStart/End a guaranteed-64-bit type so the byte va…
摘要按规则整理自下方来源原文