deepspeedai / deepspeedai/DeepSpeed
compile error / linear_kernels_cuda.cu(127)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 43.1k
- Forks
- 5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 112
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Windows build with Python 3.13.9, PyTorch 2.9, CUDA 13.2, and MSVC, then inspect deepspeed/inference/v2/kernels/core_ops/cuda_linear/linear_kernels_cuda.cu at lines 127 and 198. Check whether the build failure is caused by the reported DeepSpeed format warnings or by the ambiguous std error in PyTorch's compiled_autograd.h. Done means the relevant CUDA extension builds successfully with the reported toolchain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100