-
Notifications
You must be signed in to change notification settings - Fork 27.4k
compile SageAttention faing error C2872: “std” for latest torch nightly #148317
Description
ENV: Win11 ,VS2022, Torch:
print(torch.version)
2.7.0.dev20250302+cu128
print(torchvision.version)
0.22.0.dev20250302+cu128
print(torch.cuda.is_available())
True
print(torch.cuda.get_device_name(0))
NVIDIA GeForce RTX 5080
print(torch.cuda.get_device_capability(0))
(12, 0)
compile SageAttention faing error C2872: “std”
C:/tools/AI/ComfyUI-aki-v1.4/python/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1076): error C2872: “std”: 不明确的符号
C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/include\valarray(20): note: 可能是“std”
C:/tools/AI/ComfyUI-aki-v1.4/python/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1076): note: 或 “std”
C:/tools/AI/ComfyUI-aki-v1.4/python/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1076): note: 模板实例化上下文(最早的实例化上下文)为
C:/tools/AI/ComfyUI-aki-v1.4/python/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1121): note: 查看对正在编译的 类 模板 实例化“torch::dynamo::autograd::IValuePacker<__int64>”的引用
C:/tools/AI/ComfyUI-aki-v1.4/python/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1059): note: 在编译 类 模板 成员函数“c10::TypePtr torch::dynamo::autograd::IValuePacker<__int64>::packed_type(void)”时
C:/tools/AI/ComfyUI-aki-v1.4/python/lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1121): note: 请参阅 "torch::dynamo::autograd::IValuePacker::packed_type" 中对 "torch::dynamo::autograd::IValuePacker<__int64>::packed_type" 的第一个引用
ninja: build stopped: subcommand failed.
cc @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex @chauhang @penguinwu
Metadata
Metadata
Assignees
Labels
Type
Projects
Status