← 返回事件
持续讨论AI发版

ciflow/trunk/187002: Fix 32-bit overflow in AllocatorConfig's round-up-power-of-2 bounds

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源