Not logged inCSS-Forum
Forum CSS-Online Help Search Login
CSS-Shop Impressum Datenschutz
Up Topic Hauptforen / CSS-Forum / Lc0 Cuda backend
- - By Wilhelm Hudetz Date 2024-02-16 11:11
Ich wollte eben Lc0 mit BT4 testen aber ich bekomme diese Fehlermeldung

Network format NetworkStructure(134) is not supported by the CUDA backend

Ich hab eine 3080 und habe die Cuda Dateien von v0.30 genommen. Das haut aber nicht hin. Was brauche ich da?
Lc0-Dummy braucht Hilfe bitte 
Danke!
Parent - - By Peter Martan Date 2024-02-16 11:32
Wilhelm Hudetz schrieb:

Was brauche ich da?

Eine neuere Version der Engine als 0.30, z.B. von hier

https://ci.appveyor.com/project/borg323/lc0/build/job/4y5r8gncth2dt5wq/artifacts

Beachte, dass die übrigen Dateien außer der .exe auch im selben Ordner sein müssen wie bei den anderen Binaries. Ich ersetze immer nur die .exe in einer Sicherungskopie des alten Installationsordner.
Parent - By Wilhelm Hudetz Date 2024-02-16 11:37 Upvotes 1
Danke Peter, die habe ich heruntergeladen. Ich hatte aber noch eine alte exe im Downloadordner und die neue war Lc0(1). Das hatte ich übersehen.
Wie gesagt, lag an mir 
Parent - - By Max Siegfried Date 2024-02-16 11:55
Wilhelm Hudetz schrieb:

Ich wollte eben Lc0 mit BT4 testen aber ich bekomme diese Fehlermeldung

Network format NetworkStructure(134) is not supported by the CUDA backend

Ich hab eine 3080 und habe die Cuda Dateien von v0.30 genommen. Das haut aber nicht hin. Was brauche ich da?
Lc0-Dummy braucht Hilfe bitte 
Danke!


Was du brauchst ist ein MacBook, Mac Pro, Mac Studio usw.
Das läuft LC0 mit BT4 einwandfrei
Parent - - By Armin Jungblut Date 2024-02-16 17:31
Hi, wärest du so nett und die Quelle für die Lc0 Version zu nennen, die BT4 kann.
Parent - - By Max Siegfried Date 2024-02-16 20:10
Armin Jungblut schrieb:

Hi, wärest du so nett und die Quelle für die Lc0 Version zu nennen, die BT4 kann.


Multihead arch metal #1916

https://github.com/LeelaChessZero/lc0/pull/1916

https://github.com/almaudoh/lc0/tree/multihead-arch-metal
Parent - - By Armin Jungblut Date 2024-02-17 09:34
Vielen Dank für die Antwort.
Ich möchte gern mal auf MacBoook, M1 Max 32GB das BT4 testen.

Das Compilieren funktioniert nicht. Die Beschreibung auf Github reicht nicht aus, um den Fehler zu finden. Mit Try-and-Error, hab ich schon einen Nachmattag rumgetan. Klappt halt nicht.
Das BT4 hätte ich mal testen wollen, aber weiter nur Compiler Fehler suchen macht keinen Spass.

Der „normale“ Lc0 lässt sich ohne Probleme compilieren und läuft auf meinen MacBook. Das BT4-Netz will er nicht haben.

Deshalb, entweder es gibt eine vertauensvolle Quelle für das Executible oder es geht halt nicht.

Armin

PS: Trotz derr reichlichen Ausstattung (10 CPU, 32 GPU, 32MB) gibt es bislang keinen einzigen Sieg gegen Stockfish 16 (1 CPU, akt. Dev). Lc0 (T1-Netz, Metall) kommt auf eine Tiefe von 10-12, SF >30 (Banksia, 60sec+1sec)

Bislang sehr ernüchternd was die Leistung bei mir am Mac-M1 angeht
Parent - - By Max Siegfried Date 2024-02-17 12:58
Armin Jungblut schrieb:

Vielen Dank für die Antwort.
Ich möchte gern mal auf MacBoook, M1 Max 32GB das BT4 testen.

Das Compilieren funktioniert nicht. Die Beschreibung auf Github reicht nicht aus, um den Fehler zu finden. Mit Try-and-Error, hab ich schon einen Nachmattag rumgetan. Klappt halt nicht.
Das BT4 hätte ich mal testen wollen, aber weiter nur Compiler Fehler suchen macht keinen Spass.

Der „normale“ Lc0 lässt sich ohne Probleme compilieren und läuft auf meinen MacBook. Das BT4-Netz will er nicht haben.

Deshalb, entweder es gibt eine vertauensvolle Quelle für das Executible oder es geht halt nicht.

Armin

PS: Trotz derr reichlichen Ausstattung (10 CPU, 32 GPU, 32MB) gibt es bislang keinen einzigen Sieg gegen Stockfish 16 (1 CPU, akt. Dev). Lc0 (T1-Netz, Metall) kommt auf eine Tiefe von 10-12, SF >30 (Banksia, 60sec+1sec)

Bislang sehr ernüchternd was die Leistung bei mir am Mac-M1 angeht


Auf Code klicken und downloaden und entpacken: https://github.com/almaudoh/lc0/tree/multihead-arch-metal
BT4 Netz reinschieben.
Dann gehst du in den src Ordner, öffnest dort das Apple Terminal und tippst: ./build.sh und drückst die Enter Taste.
Danach hast du abgesehen vom src Ordner auch einen build Ordner und darin einen release Ordner, wo sich die LC0 Engine befindet.

Warum die Entwickler solange brauchen um multihead-arch-metal zu (integrieren), wissen nur die Entwickler.
Wer will, kann im Stockfish Forum oder auf GitHub oder auf Discord nachfragen.
Parent - - By Armin Jungblut Date 2024-02-17 15:33
Was du beschreibst, ist das Standardvorgehen von mir. Klappt bei allen Engines vom SF, CorChess, MateFish, SashChess, Polyfish, CoolIris, Leptir, Sting etc. Auch Lc0-v0.29, v0.30, v0.31. Läuft alles bei mir.
Nur diese Version nicht - wie gesagt genau dieses Vorgehen: Download lc0-multihead-arch-metal.zip, entpacken, Terminal, wechsel in lc0-multihead-arch-metal-verzeichnis, ./build.sh
Bricht ab:
[47/174] Compiling C++ object lc0.p/src_neural_network_check.cc.o
ninja: build stopped: subcommand failed.

Parent - - By Max Siegfried Date 2024-02-17 15:54
Armin Jungblut schrieb:

Was du beschreibst, ist das Standardvorgehen von mir. Klappt bei allen Engines vom SF, CorChess, MateFish, SashChess, Polyfish, CoolIris, Leptir, Sting etc. Auch Lc0-v0.29, v0.30, v0.31. Läuft alles bei mir.
Nur diese Version nicht - wie gesagt genau dieses Vorgehen: Download lc0-multihead-arch-metal.zip, entpacken, Terminal, wechsel in lc0-multihead-arch-metal-verzeichnis, ./build.sh
Bricht ab:
[47/174] Compiling C++ object lc0.p/src_neural_network_check.cc.o
ninja: build stopped: subcommand failed.




1. Hast du die neueste Software?
-Systemeinstellungen, Allgemein, Softwareupdate: macOS Sonoma 14.3.1
-App Store, Updates, Alle aktualisieren
-Terminal: brew update && brew upgrade

2. Zeige bitte den ganzen Bericht und nicht nur da wo es abbricht.
Parent - - By Armin Jungblut Date 2024-02-18 08:51 Upvotes 1
zu1. alles aktuell

zu 2.
Auffälliger unterschied, verglichen mit einem Lc0 das durchläuft, ist der folgender Unterschied. Die anderen Warnings, Errors sind gleich.

Grosses Netz (Fehlerhaft):
Message: cloning lczero-common.git into libs/lczero-common
meson.build:116: WARNING: Failed to parse short revision. Use git clone instead of downloading the archive from GitHub.
Message: Using build identifier "git.unknown".
Configuring build_id.h using configuration

Normales Netz:
Message: Using build identifier "git.7de98a1".
Configuring build_id.h using configuration

Log vom grossen Netz compile:

lc0-multihead-arch-metal % ./build.sh -Dgtest=false         The Meson build system
Version: 1.3.2
Source dir: /Users/armin/Downloads/test21/lc0-multihead-arch-metal
Build dir: /Users/armin/Downloads/test21/lc0-multihead-arch-metal/build/release
Build type: native build
Project name: lc0
Project version: undefined
C++ compiler for the host machine: c++ (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.1.0.2.5)")
C++ linker for the host machine: c++ ld64 1022.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Has header "optional" : YES
Has header "string_view" : YES
Has header "charconv" : YES
Compiler for C++ supports arguments -march=native: YES
Program scripts/compile_proto.py found: YES (/Users/armin/Downloads/test21/lc0-multihead-arch-metal/scripts/compile_proto.py)
Program git found: YES (/usr/bin/git)
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300
Message: cloning lczero-common.git into libs/lczero-common
meson.build:116: WARNING: Failed to parse short revision. Use git clone instead of downloading the archive from GitHub.
Message: Using build identifier "git.unknown".

Configuring build_id.h using configuration
Run-time dependency threads found: YES
Library dl found: YES
Found pkg-config: YES (/usr/local/bin/pkg-config) 0.29.2
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency tensorflow_cc found: NO (tried pkgconfig, framework and cmake)
Run-time dependency accelerate found: YES (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework)
Library mkl_rt found: NO
Library mklml found: NO
Library dnnl found: NO
Library openblas.dll found: NO
Library openblas found: NO
Run-time dependency eigen3 found: YES 3.4.0
Program ispc found: NO
Library OpenCL found: NO
Run-time dependency opencl found: YES (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework)
Library cublas found: NO
Library cudnn found: NO
Library cudart found: NO
Program nvcc /usr/local/cuda/bin/nvcc /opt/cuda/bin/nvcc found: NO
Run-time dependency appleframeworks found: YES (Foundation, Metal, MetalPerformanceShaders, MetalPerformanceShadersGraph)
meson.build:608: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
Objective-C compiler for the host machine: cc (clang 15.0.0)
Objective-C linker for the host machine: cc ld64 1022.1
Objective-C++ compiler for the host machine: c++ (clang 15.0.0)
Objective-C++ linker for the host machine: c++ ld64 1022.1
Run-time dependency zlib found: YES 1.2.11
Library libatomic found: NO
Build targets in project: 1

lc0 undefined

  User defined options
    buildtype: release
    prefix   : /usr/local
    gtest    : false

Found ninja-1.11.1 at /usr/local/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/local/bin/ninja -C /Users/armin/Downloads/test21/lc0-multihead-arch-metal/build/release
ninja: Entering directory `/Users/armin/Downloads/test21/lc0-multihead-arch-metal/build/release'
[22/77] Compiling C++ object lc0.p/src_neural_loader.cc.o
FAILED: lc0.p/src_neural_loader.cc.o
c++ -Ilc0.p -I. -I../.. -I../../src -flto -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -O3 -Wthread-safety -march=native -DUSE_BLAS -DNO_PEXT -F/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework -idirafter/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers -isystem/usr/local/Cellar/eigen/3.4.0_1/include/eigen3 -F/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework -idirafter/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Headers -isystem../../third_party -MD -MQ lc0.p/src_neural_loader.cc.o -MF lc0.p/src_neural_loader.cc.o.d -o lc0.p/src_neural_loader.cc.o -c ../../src/neural/loader.cc
../../src/neural/loader.cc:110:43: error: no member named 'mutable_policy_heads' in 'pblczero::Weights'
  auto vanilla = file->mutable_weights()->mutable_policy_heads()->mutable_vanilla();
                 ~~~~~~~~~~~~~~~~~~~~~~~  ^
../../src/neural/loader.cc:116:43: error: no member named 'mutable_policy_heads' in 'pblczero::Weights'
    auto heads = file->mutable_weights()->mutable_policy_heads();
                 ~~~~~~~~~~~~~~~~~~~~~~~  ^
../../src/neural/loader.cc:155:42: error: no member named 'mutable_value_heads' in 'pblczero::Weights'
  auto winner = file->mutable_weights()->mutable_value_heads()->mutable_winner();
                ~~~~~~~~~~~~~~~~~~~~~~~  ^
../../src/neural/loader.cc:215:57: error: no member named 'input_embedding' in 'pblczero::NetworkFormat'
  auto embedding_type = file->format().network_format().input_embedding();
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../../src/neural/loader.cc:219:17: error: no member named 'has_policy_heads' in 'pblczero::Weights'
    if (weights.has_policy_heads() && weights.has_value_heads()) {
        ~~~~~~~ ^
../../src/neural/loader.cc:219:47: error: no member named 'has_value_heads' in 'pblczero::Weights'
    if (weights.has_policy_heads() && weights.has_value_heads()) {
                                      ~~~~~~~ ^
../../src/neural/loader.cc:222:12: error: no member named 'set_input_embedding' in 'pblczero::NetworkFormat'
      net->set_input_embedding(pblczero::NetworkFormat::INPUT_EMBEDDING_PE_DENSE);
      ~~~  ^
../../src/neural/loader.cc:222:57: error: no member named 'INPUT_EMBEDDING_PE_DENSE' in 'pblczero::NetworkFormat'
      net->set_input_embedding(pblczero::NetworkFormat::INPUT_EMBEDDING_PE_DENSE);
                               ~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/neural/loader.cc:232:16: error: no member named 'set_input_embedding' in 'pblczero::NetworkFormat'
          net->set_input_embedding(pblczero::NetworkFormat::INPUT_EMBEDDING_PE_MAP);
          ~~~  ^
../../src/neural/loader.cc:232:61: error: no member named 'INPUT_EMBEDDING_PE_MAP' in 'pblczero::NetworkFormat'
          net->set_input_embedding(pblczero::NetworkFormat::INPUT_EMBEDDING_PE_MAP);
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/neural/loader.cc:235:16: error: no member named 'set_input_embedding' in 'pblczero::NetworkFormat'
          net->set_input_embedding(pblczero::NetworkFormat::INPUT_EMBEDDING_NONE);
          ~~~  ^
../../src/neural/loader.cc:235:61: error: no member named 'INPUT_EMBEDDING_NONE' in 'pblczero::NetworkFormat'
          net->set_input_embedding(pblczero::NetworkFormat::INPUT_EMBEDDING_NONE);
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/neural/loader.cc:239:52: error: no member named 'INPUT_EMBEDDING_PE_DENSE' in 'pblczero::NetworkFormat'
    if (embedding_type != pblczero::NetworkFormat::INPUT_EMBEDDING_PE_DENSE) {
                          ~~~~~~~~~~~~~~~~~~~~~~~~~^
../../src/neural/loader.cc:240:12: error: no member named 'set_input_embedding' in 'pblczero::NetworkFormat'
      net->set_input_embedding(pblczero::NetworkFormat::INPUT_EMBEDDING_PE_DENSE);
      ~~~  ^
../../src/neural/loader.cc:240:57: error: no member named 'INPUT_EMBEDDING_PE_DENSE' in 'pblczero::NetworkFormat'
      net->set_input_embedding(pblczero::NetworkFormat::INPUT_EMBEDDING_PE_DENSE);
                               ~~~~~~~~~~~~~~~~~~~~~~~~~^
15 errors generated.
[26/77] Compiling C++ object lc0.p/src_neural_network_legacy.cc.o
FAILED: lc0.p/src_neural_network_legacy.cc.o
c++ -Ilc0.p -I. -I../.. -I../../src -flto -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++17 -O3 -Wthread-safety -march=native -DUSE_BLAS -DNO_PEXT -F/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework -idirafter/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers -isystem/usr/local/Cellar/eigen/3.4.0_1/include/eigen3 -F/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework -idirafter/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Headers -isystem../../third_party -MD -MQ lc0.p/src_neural_network_legacy.cc.o -MF lc0.p/src_neural_network_legacy.cc.o.d -o lc0.p/src_neural_network_legacy.cc.o -c ../../src/neural/network_legacy.cc
In file included from ../../src/neural/network_legacy.cc:19:
../../src/neural/network_legacy.h:104:31: error: no type named 'PolicyHead' in 'pblczero::Weights'; did you mean simply 'PolicyHead'?
    explicit PolicyHead(const pblczero::Weights:olicyHead& policyhead);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              PolicyHead
../../src/neural/network_legacy.h:103:10: note: 'PolicyHead' declared here
  struct PolicyHead {
         ^
../../src/neural/network_legacy.h:122:30: error: no type named 'ValueHead' in 'pblczero::Weights'; did you mean simply 'ValueHead'?
    explicit ValueHead(const pblczero::Weights::ValueHead& valuehead);
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                             ValueHead
../../src/neural/network_legacy.h:121:10: note: 'ValueHead' declared here
  struct ValueHead {
         ^
../../src/neural/network_legacy.h:136:32: error: no type named 'PolicyHeads' in 'pblczero::Weights'; did you mean simply 'PolicyHeads'?
    explicit PolicyHeads(const pblczero::Weights:olicyHeads& policyheads);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                               PolicyHeads
../../src/neural/network_legacy.h:135:10: note: 'PolicyHeads' declared here
  struct PolicyHeads {
         ^
../../src/neural/network_legacy.h:146:31: error: no type named 'ValueHeads' in 'pblczero::Weights'; did you mean simply 'ValueHeads'?
    explicit ValueHeads(const pblczero::Weights::ValueHeads& valueheads);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              ValueHeads
../../src/neural/network_legacy.h:145:10: note: 'ValueHeads' declared here
  struct ValueHeads {
         ^
../../src/neural/network_legacy.cc:33:45: error: no member named 'ip_emb_preproc_w' in 'pblczero::Weights'
      ip_emb_preproc_w(LayerAdapter(weights.ip_emb_preproc_w()).as_vector()),
                                    ~~~~~~~ ^
../../src/neural/network_legacy.cc:34:45: error: no member named 'ip_emb_preproc_b' in 'pblczero::Weights'
      ip_emb_preproc_b(LayerAdapter(weights.ip_emb_preproc_b()).as_vector()),
                                    ~~~~~~~ ^
../../src/neural/network_legacy.cc:37:45: error: no member named 'ip_emb_ln_gammas' in 'pblczero::Weights'
      ip_emb_ln_gammas(LayerAdapter(weights.ip_emb_ln_gammas()).as_vector()),
                                    ~~~~~~~ ^
../../src/neural/network_legacy.cc:38:44: error: no member named 'ip_emb_ln_betas' in 'pblczero::Weights'
      ip_emb_ln_betas(LayerAdapter(weights.ip_emb_ln_betas()).as_vector()),
                                   ~~~~~~~ ^
../../src/neural/network_legacy.cc:41:26: error: no member named 'ip_emb_ffn' in 'pblczero::Weights'
      ip_emb_ffn(weights.ip_emb_ffn()),
                 ~~~~~~~ ^
../../src/neural/network_legacy.cc:42:49: error: no member named 'ip_emb_ffn_ln_gammas' in 'pblczero::Weights'
      ip_emb_ffn_ln_gammas(LayerAdapter(weights.ip_emb_ffn_ln_gammas()).as_vector()),
                                        ~~~~~~~ ^
../../src/neural/network_legacy.cc:43:48: error: no member named 'ip_emb_ffn_ln_betas' in 'pblczero::Weights'
      ip_emb_ffn_ln_betas(LayerAdapter(weights.ip_emb_ffn_ln_betas()).as_vector()),
                                       ~~~~~~~ ^
../../src/neural/network_legacy.cc:69:28: error: no member named 'policy_heads' in 'pblczero::Weights'
      policy_heads(weights.policy_heads()),
                   ~~~~~~~ ^
../../src/neural/network_legacy.cc:70:27: error: no member named 'value_heads' in 'pblczero::Weights'
      value_heads(weights.value_heads()) {
                  ~~~~~~~ ^
../../src/neural/network_legacy.cc:68:7: warning: initializer order does not match the declaration order [-Wreorder-ctor]
      has_smolgen(weights.has_smolgen_w()),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ip2_mov_b(LayerAdapter(weights.ip2_mov_b()).as_vector())
../../src/neural/network_legacy.cc:68:7: note: field 'has_smolgen' will be initialized after field 'policy_heads'
      has_smolgen(weights.has_smolgen_w()),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/neural/network_legacy.cc:69:7: note: field 'policy_heads' will be initialized after field 'value_heads'
      policy_heads(weights.policy_heads()),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/neural/network_legacy.cc:71:58: error: no member named 'policy_heads' in 'pblczero::Weights'
  has_multiheads = weights.has_policy_heads() && weights.policy_heads().has_optimistic_st()
                                                 ~~~~~~~ ^
../../src/neural/network_legacy.cc:72:57: error: no member named 'value_heads' in 'pblczero::Weights'
                && weights.has_value_heads() && weights.value_heads().has_q();
                                                ~~~~~~~ ^
../../src/neural/network_legacy.cc:71:28: error: no member named 'has_policy_heads' in 'pblczero::Weights'
  has_multiheads = weights.has_policy_heads() && weights.policy_heads().has_optimistic_st()
                   ~~~~~~~ ^
../../src/neural/network_legacy.cc:72:28: error: no member named 'has_value_heads' in 'pblczero::Weights'
                && weights.has_value_heads() && weights.value_heads().has_q();
                   ~~~~~~~ ^
../../src/neural/network_legacy.cc:195:11: error: no type named 'PolicyHead' in 'pblczero::Weights'; did you mean simply 'PolicyHead'?
    const pblczero::Weights:olicyHead& policyhead)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          PolicyHead
../../src/neural/network_legacy.h:103:10: note: 'PolicyHead' declared here
  struct PolicyHead {
         ^
../../src/neural/network_legacy.cc:213:11: error: no type named 'ValueHead' in 'pblczero::Weights'; did you mean simply 'ValueHead'?
    const pblczero::Weights::ValueHead& valuehead)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
          ValueHead
../../src/neural/network_legacy.h:121:10: note: 'ValueHead' declared here
  struct ValueHead {
         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
[31/77] Compiling C++ object lc0.p/src_neural_network_demux.cc.o
../../src/neural/network_demux.cc:143:36: warning: lambda capture 'i' is not used [-Wunused-lambda-capture]
      threads_.emplace_back([this, i]() { Worker(); });
                                 ~~^
1 warning generated.
[33/77] Compiling C++ object lc0.p/src_neural_network_check.cc.o
ninja: build stopped: subcommand failed.
Parent - - By Max Siegfried Date 2024-02-18 11:17
Komisch.

Ich habe etwas gegoogelt, versuche mal:

CC=/usr/bin/clang CXX=/usr/bin/clang++ ./build.sh
cd libs/lczero-common and then git fetch origin pull/23/head:pr23 and git checkout pr23
CC=/usr/bin/clang CXX=/usr/bin/clang++ ./build.sh

oder

git clone https://github.com/almaudoh/lc0.git
Parent - - By Armin Jungblut Date 2024-02-18 13:48 Upvotes 1
Vielen Dank für deine Mühe!

teilweisse hatte ich das auch schon probiert.

A) CC=/usr/bin/clang CXX=/usr/bin/clang++ ./build.sh
Abbruch mit - wie gehabt

Message: cloning lczero-common.git into libs/lczero-common
meson.build:116: WARNING: Failed to parse short revision. Use git clone instead of downloading the archive from GitHub.
Message: Using build identifier "git.unknown".

[33/77] Compiling C++ object lc0.p/src_neural_network_check.cc.o
ninja: build stopped: subcommand failed.

B1) Download entpackt - cd libs/lczero-common and then git fetch origin pull/23/head:pr23 and git checkout pr23
Abbruch
fatal: not a git repository (or any of the parent directories): .git

B2) Git-Clone - cd libs/lczero-common and then git fetch origin pull/23/head:pr23 and git checkout pr23
Abbruch:
fatal: couldn't find remote ref pull/23/head

C) git clone https://github.com/almaudoh/lc0.git (zwei Fälle einmal mit "git submodule update --init --recursive", einmal ohne)
Lc0 wird erstellt, aber …
v0.31.0-dev+git.7de98a1 built Feb 18 2024
go
Found pb network file: /Users/armin/Downloads/test11/lc0/build/release/BT4-1024x15x32h-swa-4230000.pb.gz
Creating backend [metal]...
error Network format NetworkStructure(134) is not supported by the Metal backend.

Meines Erachtens ist im Download file was nicht in Ordnung und im Git-Clone passt auch etwas nicht. Wundere täte ich mich, wenn es bei dir geht ...

Eben noch den neuesten SF kompiliert, funktioniert ohne Probleme

Result:
------------------------------------------------------------------------------------------------
  #  name                                               games    wins   draws   losses   score      elo    +      -
  1. Stockfish 16 (240217-b1a5-baff-aj)    515        33      461      21        263.5      0      11    11
  2. Stockfish 16 (240211-2xbaff-aj)          515        21      461      33        251.5     -6      11   11

Lc0 mit BT3 und BT4 lass ich dann mal bis es wirklich supported wird. Schade.

Armin
Parent - - By Lothar Jung Date 2024-02-18 14:08 Upvotes 1
Hast Du ein Zugriff auf Discord/lc0?
Dort wurde die Compilation unter MAC umfassend behandelt.
Ich würde dort Deine Schwierigkeiten vorbringen.
Linux soll auch nicht einfach sein.
VG
Lothar
Parent - By Max Siegfried Date 2024-02-18 14:34
Lothar Jung schrieb:

Hast Du ein Zugriff auf Discord/lc0?
Dort wurde die Compilation unter MAC umfassend behandelt.
Ich würde dort Deine Schwierigkeiten vorbringen.
Linux soll auch nicht einfach sein.
VG
Lothar


Ich frage mich aber schon warum die Entwickler gefühlt ein halbes Jahr brauchen und Multihead Arch Metal immer noch nicht integriert haben???

Da auf Discord die Entwickler sind, wie du sagst, dürfte es für ihn dort am einfachsten sein.
https://lczero.org/about/community/

Einfach ganz groß HELP schreiben und den langen Text posten.

-------------------------------

Wer Google hat und weiß wo er überall suchen könnte, ist klar im Vorteil:

Linux

Stockfish

gcc is already at the latest version 4:13.2.0-1ubuntu1
g++ is already at the latest version 4:13.2.0-1ubuntu1
clang is already at the latest version 1:16.0-57

sudo apt-get install build-essential
build-essential is already the newest version (12.10ubuntu1).

wget https://github.com/official-stockfish/Stockfish.git
git clone https://github.com/official-stockfish/Stockfish.git

-Download ZIP
-Extract Zip
-Open Terminal in the download, Stockfish-master, src folder.
make -j profile-build ARCH=apple-silicon COMP=clang CXX=clang++

./stockfish
./stockfish compiler
./stockfish bench

LC0
git clone https://github.com/almaudoh/lc0.git

parallels@ubuntu-linux-22-04-02-desktop:~$ cd /home/parallels/lc0
parallels@ubuntu-linux-22-04-02-desktop:~/lc0$ ./build.sh

You can see the list of options is meson_options.txt, then add -D<option name>=<value> to build.sh, for example -Dtensorflow=false.
./build.sh -Dmetal=auto

Gegen Stockfish im Terminal spielen
./stockfish (Enter)
position startpos move e2e4 (Enter)
d (Enter, to see the board)
go movetime 1000 (Enter, = 1 Second)
position startpos move e2e4 c7c5 (Enter)
d
position startpos move e2e4 c7c5 g1f3
go movetime 1000
position startpos move e2e4 c7c5 g1f3 d7d6
d
Parent - By Max Siegfried Date 2024-03-11 20:56
Armin Jungblut schrieb:

Vielen Dank für die Antwort.
Ich möchte gern mal auf MacBoook, M1 Max 32GB das BT4 testen.

Das Compilieren funktioniert nicht. Die Beschreibung auf Github reicht nicht aus, um den Fehler zu finden. Mit Try-and-Error, hab ich schon einen Nachmattag rumgetan. Klappt halt nicht.
Das BT4 hätte ich mal testen wollen, aber weiter nur Compiler Fehler suchen macht keinen Spass.

Der „normale“ Lc0 lässt sich ohne Probleme compilieren und läuft auf meinen MacBook. Das BT4-Netz will er nicht haben.

Deshalb, entweder es gibt eine vertauensvolle Quelle für das Executible oder es geht halt nicht.

Armin

PS: Trotz derr reichlichen Ausstattung (10 CPU, 32 GPU, 32MB) gibt es bislang keinen einzigen Sieg gegen Stockfish 16 (1 CPU, akt. Dev). Lc0 (T1-Netz, Metall) kommt auf eine Tiefe von 10-12, SF >30 (Banksia, 60sec+1sec)

Bislang sehr ernüchternd was die Leistung bei mir am Mac-M1 angeht


Es gibt eine neue Version.
Funktioniert einwandfrei
https://github.com/LeelaChessZero/lc0/pull/1916
https://github.com/almaudoh/lc0/tree/multihead-arch-metal
Parent - - By Wilhelm Hudetz Date 2024-02-16 23:11
Armin Jungblut schrieb:

Hi, wärest du so nett und die Quelle für die Lc0 Version zu nennen, die BT4 kann.

Hier gibt es immer die aktuelle Exe

https://ci.appveyor.com/project/LeelaChessZero/lc0

die benötigte Version auswählen und auf der nächsten Seite oben rechts auf Artifacts klicken.
Parent - By Armin Jungblut Date 2024-02-17 09:36
Vielen Dank, werde ich mir merken. Evtl.Probier ich das mal mit meinen Intel-Mac mit Windows 10 aus. Aber das wird sicher nicht ein Leistungswunder werden 
Parent - By Max Siegfried Date 2024-02-17 12:51
Wilhelm Hudetz schrieb:

Armin Jungblut schrieb:

Hi, wärest du so nett und die Quelle für die Lc0 Version zu nennen, die BT4 kann.

Hier gibt es immer die aktuelle Exe

<a class='urs' href='https://ci.appveyor.com/project/LeelaChessZero/lc0'>https://ci.appveyor.com/project/LeelaChessZero/lc0</a>

die benötigte Version auswählen und auf der nächsten Seite oben rechts auf Artifacts klicken.


Falsch.
Wo ist denn da die Metal Version?
- - By Wilhelm Hudetz Date 2024-02-16 11:33
Ok, funktioniert jetzt. Hab nochmal alles neu gemacht. Lag wohl an mir...
Parent - By Robert Schlüter Date 2024-02-16 11:56 Upvotes 1
Ich glaube das kennen viele hier incl, meiner Person das der fehler meistens 60 cm vor dem Monitor sitzt ! 
Up Topic Hauptforen / CSS-Forum / Lc0 Cuda backend

Powered by mwForum 2.29.3 © 1999-2014 Markus Wichitill