← Back to events
ActiveAIRelease

viable/strict/1787807055: Move expandable_segments() out of the header (#194872)

What happened

Summary CUDAAllocatorConfig::expandable_segments() branches on PYTORCH_C10_DRIVER_API_SUPPORTED , which c10/cuda/CMakeLists.txt defines PRIVATE to c10_cuda . Being inline, the function recompiles in every translation unit that includes the header without that macro, so consumers see an unconditional false while the library itself sees the real answer. CUDACachingAllocatorReserveDeviceTest hits exactly this — it enab…

Summary assembled by rule from the sources below

Why it's spreading

Sources