New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Build fails #30932
Comments
So the compiler is complaining about |
Well, it should be true because it was set here: https://github.com/pytorch/pytorch/blob/master/c10/util/typeid.h#L51. |
The following code gets 0 as an output in VS 2019 16.4, but 1 in VS 2017. It is likely a VS bug. Issue: https://developercommunity.visualstudio.com/content/problem/848198/cannot-customize-is-fundamental-for-a-new-type.html #include <iostream>
#include <type_traits>
struct a {
int b;
};
namespace std {
template<>
struct is_fundamental<a> : std::true_type {};
}
int main() {
std::cout << std::is_fundamental<a>::value << std::endl;
} |
Oof. So maybe we should polyfill |
This is the reply from MS. I think we should make the change.
|
This is a bit strange, I found this sentence only in newer drafts of the standard, it is not even part of C++ 2017. So, the current cmake value |
Summary: Fixes pytorch#30932 Pull Request resolved: pytorch#30959 Differential Revision: D18891797 Pulled By: mingbowan fbshipit-source-id: e6c36ee80065e66117873e768f86f507c48aaef1
馃悰 Bug
For some days, I have a broken build on Windows (cf. appended error message)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A finishing build
Environment
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: Microsoft Windows 10 Pro
GCC version: Could not collect
CMake version: version 3.16.0
Python version: 3.7
Is CUDA available: N/A
CUDA runtime version: 10.2.89
GPU models and configuration: GPU 0: Quadro M1200
Nvidia driver version: 441.28
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\cudnn64_7.dll
Versions of relevant libraries:
[pip3] msgpack-numpy==0.4.4.3
[pip3] numpy==1.17.4+mkl
[pip3] numpydoc==0.9.1
[pip3] torch==1.3.1 # I don't know, what this means - my pip call lists the same development version as conda
[pip3] torchvision==0.4.2
[conda] blas 1.0 mkl
[conda] libblas 3.8.0 14_mkl conda-forge
[conda] libcblas 3.8.0 14_mkl conda-forge
[conda] liblapack 3.8.0 14_mkl conda-forge
[conda] liblapacke 3.8.0 14_mkl conda-forge
[conda] mkl 2019.4 245
[conda] mkl-include 2019.4 245
[conda] mkl-service 2.3.0 py37hfa6e2cd_0 conda-forge
[conda] pytorch-sphinx-theme 0.0.24 dev_0
[conda] torch 1.4.0a0+6e145b4 pypi_0 pypi
[conda] torchvision 0.5.0a0+95131de pypi_0 pypi
Additional context
MS Visual Studio got an update lately - maybe the used C++ compiler is worth a check:
Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe
Error message from build:
The text was updated successfully, but these errors were encountered: