Skip to content
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

Katago not building with tensorrt backend #356824

Open
jl1990 opened this issue Nov 17, 2024 · 0 comments
Open

Katago not building with tensorrt backend #356824

jl1990 opened this issue Nov 17, 2024 · 0 comments
Labels
0.kind: bug Something is broken

Comments

@jl1990
Copy link

jl1990 commented Nov 17, 2024

Describe the bug

Trying to use KataGo with tensorrt backend (following these instructions https://nixos.wiki/wiki/Katago) fails with nixos unstable.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Do the override as specified in the wiki. In my case:
katago = super.katago.override {
              backend = "tensorrt";
              enableTrtPlanCache = true;
              enableAVX2 = true;
            };
  1. Do a nixos-rebuild switch to apply your config changes

Expected behavior

It should successfully install KataGo with TensorRT backend.

Additional context

The error it throws is:

CMake Error at CMakeLists.txt:320 (target_link_libraries):
  Target "katago" links to:

    CUDA::cudart_static

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

It also seems to be failing with cuda backend (error is also related with cuda_cudart)

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.11.8, NixOS, 25.05 (Warbler), 25.05.20241115.5e4fbfb
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.10
  • channels(root): "home-manager-23.11.tar.gz, nixos-23.11"
  • nixpkgs: /nix/store/hfz1qqd0z8amlgn8qwich1dvkmldik36-source

Notify maintainers

@OmnipotentEntity


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@jl1990 jl1990 added the 0.kind: bug Something is broken label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant