Commit graph

21 commits

Author SHA1 Message Date
Michael Reilly a2d0fd7e7e katago: 1.12.4 -> 1.13.1 2023-05-24 14:21:44 -05:00
Michael Reilly 98df16e241 katago: 1.11.0 -> 1.12.4
Added TensorRT backend, refactored backend selection, IMPORTANT also
bumps TensorRT version to 8.5.2 for CUDA 11.7 and 11.8.  (Per Nvidia's
documentation, 8.4.0.6 does not officially support 11.7, but we're using
for it.  Additionally, KataGo requires 8.5 or better for the new
TensorRT backend.  8.4.0.6 remains the default for 11.6 and lower, in
interest of not messing things up as much as possible.)

New version also adds support for nested residual block networks, such as the
b18 network that was used in the UEC.
2023-03-21 16:42:57 -05:00
Serge K d924de58be
cudaPackages.cudnn: migrate to redist cuda, fix missing zlib (#168748)
* cudaPackages.cudnn: migrate to redist cudaPackages

* cudaPackages.cudnn: fix missing zlib in rpath

* cudaPackages.cudnn: remove the propagated cudatoolkit

* cudaPackages.cudnn: use autoPatchelfHook

instead of custom find ... -exec ldd | grep routine
mark libcudnn_cnn_infer.so as needed for libcudnn.so on cudnn>=8.0.5
- a hint for autoPatchelf, as an alternative to manually adding $ORIGIN

* cudaPackages.cudnn: use automatic hooks for rpath

as a more common way to use addOpenGLRunpath and autoPatchelf with cudaPackages

* cudaPackages.cudnn: consume individual cuda packages

...since cudnn is part of the cuda package set

- introduces the scary useCudatoolkitRunfile function argument
  to discourage usage of the runfile-based cudatoolkit
- instead of the rather hidden useRedist term in let ... in
- repeats cudatoolkit_root pattern after cuda_joined in pytorch &c
  (the "toolchain view")
- redist packages are marked optional to support cuda<11.4 where the
  attributes for redist packages do not exist

* cudaPackages.cudnn: update to pname+version

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-04-19 20:52:52 +02:00
Frederik Rietdijk 1d63f89caa cudaPackages: overhaul of how we package cuda packages
There are many different versions of the `cudatoolkit` and related
cuda packages, and it can be tricky to ensure they remain compatible.

- `cudaPackages` is now a package set with `cudatoolkit`, `cudnn`, `cutensor`, `nccl`, as well as `cudatoolkit` split into smaller packages ("redist");
- expressions should now use `cudaPackages` as parameter instead of the individual cuda packages;
- `makeScope` is now used, so it is possible to use `.overrideScope'` to set e.g. a different `cudnn` version;
- `release-cuda.nix` is introduced to easily evaluate cuda packages using hydra.
2022-04-09 08:50:22 +02:00
R. RyanTM 8e9b5c9f88
katago: 1.10.0 -> 1.11.0 (#165090)
Co-authored-by: OmnipotentEntity <OmnipotentEntity@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-23 05:52:43 +01:00
Michael Reilly e66f8b1c30 katago: 1.9.1 -> 1.10.0 2021-12-08 12:53:25 -05:00
Michael Reilly 17d2bc7eeb katago: Corrected git commit hash to be the tagged version, not the old tagged version 2021-07-07 12:09:42 -04:00
R. RyanTM c22c07f530 katago: 1.9.0 -> 1.9.1 2021-07-03 18:05:39 +00:00
R. RyanTM 6b06737e5a katago: 1.8.2 -> 1.9.0 2021-06-29 00:12:50 +00:00
Michael Reilly 72d78d8901 katago: 1.8.1 -> 1.8.2 2021-04-19 13:26:41 -04:00
Michael Reilly 88c64f8a11 katago: 1.8.0 -> 1.8.1 2021-03-15 11:12:53 -04:00
Michael Reilly bca9aa192a katago: 1.6.1 -> 1.8.0 2021-01-14 11:31:07 -05:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Sandro Jäckel 9daf938d37
katago: Use stdenv.hostPlatform.avx2Support 2021-01-04 11:02:16 +01:00
Michael Weiss 197ddbced2
mesa: Replace all usages of old aliases 2020-11-08 22:56:55 +01:00
Michael Reilly 12c0b4ac58 katago: 1.6.0 -> 1.6.1 2020-08-28 13:48:49 -04:00
Michael Reilly 9d7a579b2e katago: 1.5.0 -> 1.6.0 2020-08-24 08:32:32 -04:00
Michael Reilly 7652a8e3d5 katago: 1.4.4 -> 1.5.0 2020-08-03 11:45:58 -04:00
Michael Reilly 5aeb03a06e katago: 1.4.2 -> 1.4.4 2020-06-15 22:10:18 -04:00
Michael Reilly b1d8188f1f katago: 1.3.5 -> 1.4.2 2020-05-18 13:41:47 -04:00
Michael Reilly dc3a76ae0a katago: init at 1.3.5 2020-03-31 01:49:11 -04:00