Open Ken1256 opened 4 years ago
Seems like that you need to do some configurations for compiling in windows: https://github.com/pytorch/pytorch/issues/15757#issuecomment-452113121 https://pytorch.org/docs/stable/notes/windows.html#cpp-extension
Seems like that you need to do some configurations for compiling in windows: pytorch/pytorch#15757 (comment) https://pytorch.org/docs/stable/notes/windows.html#cpp-extension
@rosinality I have used 'x86_x64 Cross Tools Command Prompt for VS 2017' but still have the same troubles about compiling these CUDA extensions under win10. I have read above links carefully, but unfortunately I am new for torch c++ extensions and could not to find the point. Would you plz give some more detailed hints?
@neoragex2002 I don't know much about compiling cuda extensions in windows, too. I think you need to check you can compile cuda kernels in windows first. Then please give me a compiler error logs.
@rosinality Finally I found a hack :D
in .\op\fused_act.py:
in .\op\upfirdn2d.py:
The ldflags of 'c10_cuda.lib' is the key to solve the problem. sorry for my kinda messy screenshots!
@neoragex2002 Interesting! Glad to hear that you have resolved the problem.
@neoragex2002 Interesting! Glad to hear that you have resolved the problem.
I think this way of hacking may not be portable (I didn't test in linux). so it is not a patch, but a suggestion for your consideration. Thanks for your help!
Windows10 VS 2017 PyTorch 1.3.1 CUDA 10.1
Any idea? Thanks