pytorch / glow

Compiler for Neural Network hardware accelerators
Apache License 2.0
3.21k stars 689 forks source link

Unable to build Glow on Windows #4635

Open milivoje96 opened 4 years ago

milivoje96 commented 4 years ago

Hi,

I would like to build a Glow on my Windows x64 machine. For now, I’m working inside a virtual machine.

I went to https://github.com/pytorch/glow 1 and I followed docs/GlowWindowsBuildx86.md. I used the prebuild version of LLVM and I did other steps successfully, but I have a problem with building the Glow. There are missing pthread.h and failed tests _HAVE_GNU_POSIXREGEX and _HAVE_POSIXREGEX during the execution of CMake command and a lot of warnings and linker errors(multiple definitions of symbols, etc.) during the build step. Also, only four executable files are generated, but I suppose there should be a lot.

Can you please tell me are there some additional steps that should be done in order to compile Glow properly.

I installed the newest Windows SDK, CMake, Python, and Visual Studio Community 2019 with C/C++ Development Kit.

Thanks in advance.

P.S. On PyTorch forum, @jfix71 suggested I tag @mciprian13 and @ayermolo.

ayermolo commented 4 years ago

@milivoje96 At least here locally we haven't tested it with VS 2019, and are using VS2017. This might be a potential issue. When you say you are using prebuild version of llvm. Is that just executables? You also need the libraries. Those are built manually, on windows, as far as I am aware. Did you install folly using vcpkg?

biosbob commented 2 years ago

are there any updates here??? i've run into the same problem as @milivoje96.... as for the pre-built version of llvm, it contains the include/ and lib/ directories as well as bin/.... and yes, folly was installed using vcpkg....