Skip to content

compile error / linear_kernels_cuda.cu(127) #7683

@mikinko

Description

@mikinko

Hi, im trying to build it on python 3.13.9 , msvc cmd is applied, windows 10, pytorch 2.9, cuda 13.2

string format errors:
A:\DeepSpeed\deepspeed\inference\v2\kernels\core_ops\cuda_linear\linear_kernels_cuda.cu(127): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
A:\DeepSpeed\deepspeed\inference\v2\kernels\core_ops\cuda_linear\linear_kernels_cuda.cu(127): note: consider using '%zu' in the format string
A:\DeepSpeed\deepspeed\inference\v2\kernels\core_ops\cuda_linear\linear_kernels_cuda.cu(198): warning C4477: 'printf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
A:\DeepSpeed\deepspeed\inference\v2\kernels\core_ops\cuda_linear\linear_kernels_cuda.cu(198): note: consider using '%zu' in the format string
S:/_ComfyUI_env/_env313/Lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1134): error C2872: 'std': ambiguous symbol
C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.44.35207/include\valarray(20): note: could be 'std'
S:/_ComfyUI_env/_env313/Lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1134): note: or 'std'
S:/_ComfyUI_env/_env313/Lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1134): note: the template instantiation context (the oldest one first) is
S:/_ComfyUI_env/_env313/Lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1181): note: see reference to class template instantiation 'torch::dynamo::autograd::IValuePacker<__int64>' being compiled
S:/_ComfyUI_env/_env313/Lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1108): note: while compiling class template member function 'c10::TypePtr torch::dynamo::autograd::IValuePacker<__int64>::packed_type(void)'
S:/_ComfyUI_env/_env313/Lib/site-packages/torch/include\torch/csrc/dynamo/compiled_autograd.h(1181): note: see the first reference to 'torch::dynamo::autograd::IValuePacker<__int64>::packed_type' in 'torch::dynamo::autograd::IValuePacker::packed_type'
error: command 'S:\_CUDA\132\bin\nvcc.EXE' failed with exit code 429496729

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions