ciflow/vllm/187002: Fix 32-bit overflow in AllocatorConfig's round-up-power-of-2 bounds
- PyTorch: 153 events in the last 90 days
- PyTorch: 151th Release in the last 90 days
- Previous: earlier the same day · ciflow/xpu/191166
What happened
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…
Summary assembled by rule from the sources below