{"action":"created","issue":{"url":"https://api.github.com/repos/LeelaChessZero/lc0/issues/240","repository_url":"https://api.github.com/repos/LeelaChessZero/lc0","labels_url":"https://api.github.com/repos/LeelaChessZero/lc0/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/LeelaChessZero/lc0/issues/240/comments","events_url":"https://api.github.com/repos/LeelaChessZero/lc0/issues/240/events","html_url":"https://github.com/LeelaChessZero/lc0/issues/240","id":348649373,"node_id":"MDU6SXNzdWUzNDg2NDkzNzM=","number":240,"title":"Building on Windows 10: VC 2017 15.7.6 + CUDA 9.2 Step by Step","user":{"login":"Videodr0me","id":22127864,"node_id":"MDQ6VXNlcjIyMTI3ODY0","avatar_url":"https://avatars1.githubusercontent.com/u/22127864?v=4","gravatar_id":"","url":"https://api.github.com/users/Videodr0me","html_url":"https://github.com/Videodr0me","followers_url":"https://api.github.com/users/Videodr0me/followers","following_url":"https://api.github.com/users/Videodr0me/following{/other_user}","gists_url":"https://api.github.com/users/Videodr0me/gists{/gist_id}","starred_url":"https://api.github.com/users/Videodr0me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Videodr0me/subscriptions","organizations_url":"https://api.github.com/users/Videodr0me/orgs","repos_url":"https://api.github.com/users/Videodr0me/repos","events_url":"https://api.github.com/users/Videodr0me/events{/privacy}","received_events_url":"https://api.github.com/users/Videodr0me/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2018-08-08T09:38:27Z","updated_at":"2018-09-13T14:52:54Z","closed_at":null,"author_association":"COLLABORATOR","body":"I just installed a fresh laptop and tried the build instructions here [https://github.com/LeelaChessZero/lc0/blob/master/windows_build.md](url). 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:\r\n\r\n1.  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.\r\n\r\n2. Install GIT for Windows: [https://git-scm.com/download/win](url)\r\n\r\n3. Install CUDA 9.2: [https://developer.nvidia.com/cuda-downloads](url) \r\n\r\n4. Install cuDNN: [https://developer.nvidia.com/rdp/cudnn-download](url). 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](url). These are the official paths - remember these, they are needed later.\r\n\r\n5. 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\"\r\n\r\n6. Install Meson: pip3 install --upgrade meson\r\n\r\n7. Fetch source (manually or by using the GITHub extension of VS2017) to C:\\Users\\XXXXXXX\\source\\repos\\lc0\r\n\r\n8. Edit/Replace build-cuda.cmd to reflect the paths above, and that you use VC2017:\r\n```\r\nrd /s build\r\n\r\ncall \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat\" amd64\r\nmeson.py build --backend vs2017 --buildtype release ^\r\n-Dcudnn_libdirs=\"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.2\\lib\\x64\",\"C:\\dev\\cuDNN\\cuda\\lib\\x64\" ^\r\n-Dcudnn_include=\"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.2\\include\" ^\r\n-Ddefault_library=static\r\n\r\ncd build\r\n\r\n\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe\" ^\r\n/p:Configuration=Release ^\r\n/p:Platform=x64 ^\r\n/p:PreferredToolArchitecture=x64 lc0.sln ^\r\n/filelogger\r\n```\r\n\r\n9. Starting build-cuda would yield an error, because cuda 9.2 does not work with the latest VC2017. You have to edit one number in: \"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v9.2\\include\\crt\\host_config.h\" to the following: \r\n```\r\n#if _MSC_VER < 1600 || _MSC_VER > 2000\r\n\r\n#error -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!\r\n```\r\nThis just increases the maximum version number.\r\n\r\n10. Run build-cuda. Done. "},"comment":{"url":"https://api.github.com/repos/LeelaChessZero/lc0/issues/comments/421035949","html_url":"https://github.com/LeelaChessZero/lc0/issues/240#issuecomment-421035949","issue_url":"https://api.github.com/repos/LeelaChessZero/lc0/issues/240","id":421035949,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTAzNTk0OQ==","user":{"login":"porzo","id":43237251,"node_id":"MDQ6VXNlcjQzMjM3MjUx","avatar_url":"https://avatars1.githubusercontent.com/u/43237251?v=4","gravatar_id":"","url":"https://api.github.com/users/porzo","html_url":"https://github.com/porzo","followers_url":"https://api.github.com/users/porzo/followers","following_url":"https://api.github.com/users/porzo/following{/other_user}","gists_url":"https://api.github.com/users/porzo/gists{/gist_id}","starred_url":"https://api.github.com/users/porzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porzo/subscriptions","organizations_url":"https://api.github.com/users/porzo/orgs","repos_url":"https://api.github.com/users/porzo/repos","events_url":"https://api.github.com/users/porzo/events{/privacy}","received_events_url":"https://api.github.com/users/porzo/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T14:52:54Z","updated_at":"2018-09-13T14:52:54Z","author_association":"NONE","body":"I got **git** already doing everything step by step till now, maybe configuring it wrong?"}}
{"actor":{"display_login":"porzo"}}