-
Notifications
You must be signed in to change notification settings - Fork 295
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building on Windows 10: VC 2017 15.7.6 + CUDA 9.2 Step by Step #12
Comments
Coincidentally I worked out those same steps last night. It worked just as you've outlined. I also sent feedback to NVidia on the version number issue. Hopefully they will fix it for the next release. |
As an alternative to messing with the cuda headers you can also install the older compiler side by side as part of the latest visual studio install and edit the build-cuda to point to it. (Similarly to in the issue I raised a while back.) |
You can install an older version of VC++ with VS2017, either 2015.3 (v14.0) or an older 2017 version which should work with CUDA just fine. This is how Appveyor builds lc0, using the 2015 compiler under VS2017. |
Yes, I installed the older compiler on a different system some time back, to adress the same issue in a previous CUDA version. I personally like having only one compiler, but if you don't like "hacking" the version check installing the older compiler is a safe alternative. |
I even copy and pasted the build-cuda script written. C:\Users\eric\lc0>rd /s build C:\Users\eric\lc0>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 ** Visual Studio 2017 Developer Command Prompt v15.8.1 [vcvarsall.bat] Environment initialized for: 'x64' The system cannot find the path specified. MSBUILD : error MSB1009: Project file does not exist. |
@Eric-Ryan it looks like meson did not run. Check whether the directory it is installed in is included in the path. |
Thank you. Spent the entire day trying to fix the problem. For some reason installing meson would not allow me to use commands such as: "$meson --help" by default. I ended up having to install Python with advanced settings, and explicitly click "install for all users". I really hope this helps someone one day. |
Still sounds like a path problem. I will be installing a new vm sometime next week, so will try it again and update the instructions. |
yes actually I'm still fixing it lol. Could you tell me your meson environment variable path? I can't call "meson --help" |
now I'm getting "SSL connection failed" |
ok waving the white flag... I'm just gna do it on ubuntu |
Can't help you right now - I only have a windows vm for that (using virtualbox under ubuntu) and can't access this pc now. However did you try to run |
The python part of the path is: |
I can't even get it to work on ubuntu lol... Well I was getting an SSL Connection error for zlib... I looked in the discord and someone said to just download zlib.zip and put it as a path inside zlib.wrap |
it still just says "couldn't use fallback subproject zlib as dependency" |
I got it to work but I'm sorry to say I'm not really sure what I did. I just deleted the entire lc0 folder, and one small thing I did differently was use the git GUI rather than the command prompt... I copy and pasted the code in the original post into build-cuda and it ran... Perhaps another small thing I changed was setting default .sh files to open with git... |
The information provided here was very helpful. I was finally able to compile lc0 without any issuse. |
C:\Users\Pham Hoang Viet\Downloads\lc0-release\lc0-release>rd /s build C:\Users\Pham Hoang Viet\Downloads\lc0-release\lc0-release>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 ** Visual Studio 2017 Developer Command Prompt v15.8.4 [vcvarsall.bat] Environment initialized for: 'x64' And now I get this error |
It looks like you need to install |
I got git already doing everything step by step till now, maybe configuring it wrong? I have Git Bash, Git CMD, and Git GUI all in the Git folder |
Well I tried again this morning and magically it worked, but at the end...: Done executing task "MSBuild" -- FAILED. Done executing task "MSBuild" -- FAILED. Build FAILED. "C:\Users\Pham Hoang Viet\Downloads\lc0-release\lc0-release\build\lc0.sln" (default target) (1) ->
Time Elapsed 00:12:43.73 ...it failed. Any suggestion? This error I found in the msbuild.log |
It looks like you are running into a path length limitation. Maybe moving the |
Hooray thank you very much it built completely fine. |
Now... kinda disappointed. Maybe it's my computer but Lc0 took more than 2hrs and couldn't load into the Fritz 16's UCI engine |
Can't help you with Fritz, but what do you mean with "took more than 2hrs", was it 2 hrs to build? That does seem a bit slow. You can get pre-built binaries from https://github.com/LeelaChessZero/lc0/releases. |
No I meant to load lc0.exe into fritz, I have let it all day long and it hasn't done yet... building was about 45mins-1hr and it's done already. |
Loading shouldn't take so long, something is going wrong, but I have no experience with Fritz. You can try asking in the #help channel in https://discord.gg/pKujYxD. |
C:\lc0-release>rd /s build C:\lc0-release>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 ** Visual Studio 2017 Developer Command Prompt v15.8.5 [vcvarsall.bat] Environment initialized for: 'x64' I have to install Lc0 again because my antivirus caught something and deleted it. Now still getting this error even though I left everything as they were, everything installed and ready and still getting this error, can you guys help me again? |
Either meson is not installed or you installed very recently (last few days). The latest meson release is an executable and not a python script. Edit the build script and change |
Would it just be meson or meson.exe? Because it's .exe so I'm just asking for sure |
Both should work. |
meson.py should be changed to changed to: meson.exe in the build-cuda.bat
file.
…On Sun, Sep 30, 2018 at 4:05 AM borg323 ***@***.***> wrote:
Both should work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/LeelaChessZero/lc0/issues/240#issuecomment-425702986>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHMt57f9rqxnt4zC7yJ3T-qAtTQRAFn5ks5ugHtggaJpZM4VzmWf>
.
--
Thank You,
_______________________
Theodore P. Summers (Ted)
Certified IT Security Consultant
|
Outdated but may be still relevant. Moving to documentation. |
I just installed a fresh laptop and tried the build instructions here https://github.com/LeelaChessZero/lc0/blob/master/windows_build.md. I ran into some issues, that can be solved. This serves as documentation as well as a reminder that the instructions might need an update. Please also read the link given above as the following is based on it. This is for the cuda version only, but most likely applies to other builds as well:
Install VC 2017. Current version is 15.7.6, and this does not work with current CUDA 9.2. This will be fixed in a later step. Add "Desktop developement in C++", "Develop for universal Windows Plattform" and "Python-Development". The latter saves you from seperately installing pyhton.
Install GIT for Windows: https://git-scm.com/download/win
Install CUDA 9.2: https://developer.nvidia.com/cuda-downloads
Install cuDNN: https://developer.nvidia.com/rdp/cudnn-download. This consists of three files that are put in three different CUDA directories as described here: https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html. These are the official paths - remember these, they are needed later.
You will find python in "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64". Check if this has been added to the path variable, if not add. Also add "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Scripts"
Install Meson: pip3 install --upgrade meson
Fetch source (manually or by using the GITHub extension of VS2017) to C:\Users\XXXXXXX\source\repos\lc0
Edit/Replace build-cuda.cmd to reflect the paths above, and that you use VC2017:
This just increases the maximum version number.
The text was updated successfully, but these errors were encountered: