Open joobei opened 3 years ago
I came across the same problem on building with Windows, and changing all "long" to "int64_t" in all .h, .cpp, .cu files within the mytorch directory solved the issue. See the link below for details. https://forums.developer.nvidia.com/t/strange-link-error-seen-by-multiple-people-while-building-pytorch-cpp-cuda-extensions/145261
Thanks I had the same problem and your solution worked. Wanted to add that i had to exclude the files include/common.h and include/common_cuda.h from this treatment.
I came across the same problem on building with Windows, and changing all "long" to "int64_t" in all .h, .cpp, .cu files within the mytorch directory solved the issue. See the link below for details. https://forums.developer.nvidia.com/t/strange-link-error-seen-by-multiple-people-while-building-pytorch-cpp-cuda-extensions/145261
Hello,Yuki-F, why change "long" to "int64_t" ? "int64_t" seems not to be a legal datatype? I change "long" to "long long" and it worked.
@ptc-lexvandersluijs Which version of python and which version of msvc did you use? When building on windows with VS2017/2019 linking fails with:
Seems like the linker cannot find some pytorch library? Any help on debugging this would be appreciated.