lc0-win-20180512-cuda90-cudnn712-00

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Damir
Posts: 2801
Joined: Mon Feb 11, 2008 3:53 pm
Location: Denmark
Full name: Damir Desevac

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by Damir »

how do I find the requested dll files ?
User avatar
pohl4711
Posts: 2433
Joined: Sat Sep 03, 2011 7:25 am
Location: Berlin, Germany
Full name: Stefan Pohl

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by pohl4711 »

Damir wrote: Sun May 20, 2018 3:49 pm how do I find the requested dll files ?
with the windows-explorer. Just use <STRG>+F and type the name in the search window

https://www.tenforums.com/tutorials/944 ... -10-a.html
shrapnel
Posts: 1339
Joined: Fri Nov 02, 2012 9:43 am
Location: New Delhi, India

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by shrapnel »

pohl4711 wrote: Sun May 20, 2018 3:03 pm CUDNN is a download of a zip-file, only. Just unzip and get the file cudnn64_7.dll out of it.
And it doesnt matter, how you name the folder, in which your LCZero is. I name it Leela Cuda. You can name it "cold_beer", if you like.
Just put the 3 dll-files in that folder, where your LCZero exe-file is, which you downloaded here https://crem.xyz/lc0/
Then load the network-file. Unpack it. Name the unpacked file "weights.txt" and put in the same folder.
With these 5 files, it works.

No installation of anything is required. Works with Cuda 9.0. I did not try Cuda 9.2 until now.
Thank you for the wonderful, detailed explanation, Herr Pohl.
Its working now in Arena, making moves but not showing the output.
I suppose that's because I have yet to find the right CUDNN file for my OS, which is 8.1.
i7 5960X @ 4.1 Ghz, 64 GB G.Skill RipJaws RAM, Twin Asus ROG Strix OC 11 GB Geforce 2080 Tis
Albert Silver
Posts: 3019
Joined: Wed Mar 08, 2006 9:57 pm
Location: Rio de Janeiro, Brazil

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by Albert Silver »

shrapnel wrote: Sun May 20, 2018 4:05 pm
pohl4711 wrote: Sun May 20, 2018 3:03 pm CUDNN is a download of a zip-file, only. Just unzip and get the file cudnn64_7.dll out of it.
And it doesnt matter, how you name the folder, in which your LCZero is. I name it Leela Cuda. You can name it "cold_beer", if you like.
Just put the 3 dll-files in that folder, where your LCZero exe-file is, which you downloaded here https://crem.xyz/lc0/
Then load the network-file. Unpack it. Name the unpacked file "weights.txt" and put in the same folder.
With these 5 files, it works.

No installation of anything is required. Works with Cuda 9.0. I did not try Cuda 9.2 until now.
Thank you for the wonderful, detailed explanation, Herr Pohl.
Its working now in Arena, making moves but not showing the output.
I suppose that's because I have yet to find the right CUDNN file for my OS, which is 8.1.
No, LC0 has this issue at times. Try analyzing a position or two first. It is a small problem he is fixing.
"Tactics are the bricks and sticks that make up a game, but positional play is the architectural blueprint."
Milos
Posts: 4190
Joined: Wed Nov 25, 2009 1:47 am

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by Milos »

Albert Silver wrote: Sun May 20, 2018 5:28 am
shrapnel wrote: Sun May 20, 2018 5:12 am Is it necessary to have Visual Studio installed before installing CUDA 9.0 ?
I installed some free version of Visual Studio but I'm getting the message "nVidia Installer failed" while trying to install CUDA 9.0.
No, it is completely unnecessary. You can ignore that warning too. It relates only to CUDA items for VS, and nothing to do with Leela. There is now a 9.2 version, so by all means install it and use the latest LC0 built for it.

lc0-win-20180519-cuda92-cudnn714-00.7z
Btw. for those who want to compile themselves, Cuda 9.2 finally installs well VS integration with VS2017. Either they fixed the installer or it's a matter of drivers (the newest Nvidia drivers are now bundled with 9.2), but anyhow integration finally works.
User avatar
pohl4711
Posts: 2433
Joined: Sat Sep 03, 2011 7:25 am
Location: Berlin, Germany
Full name: Stefan Pohl

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by pohl4711 »

shrapnel wrote: Sun May 20, 2018 4:05 pm
Thank you for the wonderful, detailed explanation, Herr Pohl.
Its working now in Arena, making moves but not showing the output.
I suppose that's because I have yet to find the right CUDNN file for my OS, which is 8.1.
Oh. There are only downloads for Windows 7 and 10. I would try both (my tip is, that Windows 7 version should work).
Joost Buijs
Posts: 1563
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by Joost Buijs »

Milos wrote: Sun May 20, 2018 4:22 pm
Albert Silver wrote: Sun May 20, 2018 5:28 am
shrapnel wrote: Sun May 20, 2018 5:12 am Is it necessary to have Visual Studio installed before installing CUDA 9.0 ?
I installed some free version of Visual Studio but I'm getting the message "nVidia Installer failed" while trying to install CUDA 9.0.
No, it is completely unnecessary. You can ignore that warning too. It relates only to CUDA items for VS, and nothing to do with Leela. There is now a 9.2 version, so by all means install it and use the latest LC0 built for it.

lc0-win-20180519-cuda92-cudnn714-00.7z
Btw. for those who want to compile themselves, Cuda 9.2 finally installs well VS integration with VS2017. Either they fixed the installer or it's a matter of drivers (the newest Nvidia drivers are now bundled with 9.2), but anyhow integration finally works.

Yesterday I installed CUDA 9.2 but I still had to change the compiler version in the host_config.h before I could get it to work with the latest version of MSVC, max. _MSC_VER is 1913 and for the latest version of MSVC (15.7.1) it has to be 1914, and it wanted to install driver 397.55, the driver on my system is already 397.64, so I skipped driver installation.

I have the impression that the development of CUDA always lags somewhat behind the actual situation, it still doesn't work with the Intel compiler either and that is a pity because the Intel compiler is clearly the best for floating point work.
Albert Silver
Posts: 3019
Joined: Wed Mar 08, 2006 9:57 pm
Location: Rio de Janeiro, Brazil

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by Albert Silver »

Joost Buijs wrote: Sun May 20, 2018 5:36 pm
Milos wrote: Sun May 20, 2018 4:22 pm
Albert Silver wrote: Sun May 20, 2018 5:28 am

No, it is completely unnecessary. You can ignore that warning too. It relates only to CUDA items for VS, and nothing to do with Leela. There is now a 9.2 version, so by all means install it and use the latest LC0 built for it.

lc0-win-20180519-cuda92-cudnn714-00.7z
Btw. for those who want to compile themselves, Cuda 9.2 finally installs well VS integration with VS2017. Either they fixed the installer or it's a matter of drivers (the newest Nvidia drivers are now bundled with 9.2), but anyhow integration finally works.

Yesterday I installed CUDA 9.2 but I still had to change the compiler version in the host_config.h before I could get it to work with the latest version of MSVC, max. _MSC_VER is 1913 and for the latest version of MSVC (15.7.1) it has to be 1914, and it wanted to install driver 397.55, the driver on my system is already 397.64, so I skipped driver installation.

I have the impression that the development of CUDA always lags somewhat behind the actual situation, it still doesn't work with the Intel compiler either and that is a pity because the Intel compiler is clearly the best for floating point work.
Any version of CUDA, or just the 9.2 version?
"Tactics are the bricks and sticks that make up a game, but positional play is the architectural blueprint."
Joost Buijs
Posts: 1563
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by Joost Buijs »

Albert Silver wrote: Sun May 20, 2018 5:50 pm
Joost Buijs wrote: Sun May 20, 2018 5:36 pm
Milos wrote: Sun May 20, 2018 4:22 pm
Btw. for those who want to compile themselves, Cuda 9.2 finally installs well VS integration with VS2017. Either they fixed the installer or it's a matter of drivers (the newest Nvidia drivers are now bundled with 9.2), but anyhow integration finally works.

Yesterday I installed CUDA 9.2 but I still had to change the compiler version in the host_config.h before I could get it to work with the latest version of MSVC, max. _MSC_VER is 1913 and for the latest version of MSVC (15.7.1) it has to be 1914, and it wanted to install driver 397.55, the driver on my system is already 397.64, so I skipped driver installation.

I have the impression that the development of CUDA always lags somewhat behind the actual situation, it still doesn't work with the Intel compiler either and that is a pity because the Intel compiler is clearly the best for floating point work.
Any version of CUDA, or just the 9.2 version?

Any version I suppose. It is possible to compile the device code with MSVC or GCC and to compile the rest with Intel but that complicates things more than you would like.
Milos
Posts: 4190
Joined: Wed Nov 25, 2009 1:47 am

Re: lc0-win-20180512-cuda90-cudnn712-00

Post by Milos »

Joost Buijs wrote: Sun May 20, 2018 5:36 pm
Milos wrote: Sun May 20, 2018 4:22 pm
Albert Silver wrote: Sun May 20, 2018 5:28 am

No, it is completely unnecessary. You can ignore that warning too. It relates only to CUDA items for VS, and nothing to do with Leela. There is now a 9.2 version, so by all means install it and use the latest LC0 built for it.

lc0-win-20180519-cuda92-cudnn714-00.7z
Btw. for those who want to compile themselves, Cuda 9.2 finally installs well VS integration with VS2017. Either they fixed the installer or it's a matter of drivers (the newest Nvidia drivers are now bundled with 9.2), but anyhow integration finally works.

Yesterday I installed CUDA 9.2 but I still had to change the compiler version in the host_config.h before I could get it to work with the latest version of MSVC, max. _MSC_VER is 1913 and for the latest version of MSVC (15.7.1) it has to be 1914, and it wanted to install driver 397.55, the driver on my system is already 397.64, so I skipped driver installation.

I have the impression that the development of CUDA always lags somewhat behind the actual situation, it still doesn't work with the Intel compiler either and that is a pity because the Intel compiler is clearly the best for floating point work.
Yea they always lag with the version, 9.1 was officially supporting only to MSC_VER 1911. That's why I left my VS at 15.6 still and removed the newest driver before installing the one that came with CUDA 9.2 (397.44) and only after installed the newest.