Skip to content

Commit

Permalink
fix memory leakage in vSum cache; remove mix6q
Browse files Browse the repository at this point in the history
[skip_fishtest]
  • Loading branch information
dhbloo committed Feb 24, 2024
1 parent 3895b2e commit 84906f4
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 921 deletions.
2 changes: 0 additions & 2 deletions Rapfi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ set(CORE_SOURCES
eval/eval.cpp
eval/evaluator.cpp
eval/mix6nnue.cpp
eval/mix6Qnnue.cpp
eval/mix7nnue.cpp
eval/mix8nnue.cpp
eval/nnuev2.cpp
Expand Down Expand Up @@ -106,7 +105,6 @@ set(HEADERS
eval/eval.h
eval/evaluator.h
eval/mix6nnue.h
eval/mix6Qnnue.h
eval/mix7nnue.h
eval/mix8nnue.h
eval/nnuev2.h
Expand Down
15 changes: 0 additions & 15 deletions Rapfi/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "database/dbstorage.h"
#include "database/yxdbstorage.h"
#include "eval/evaluator.h"
#include "eval/mix6Qnnue.h"
#include "eval/mix6nnue.h"
#include "eval/mix7nnue.h"
#include "eval/mix8nnue.h"
Expand Down Expand Up @@ -599,20 +598,6 @@ void Config::readEvaluator(const cpptoml::table &t)
},
true));
}
else if (*evaluatorType == "mix6qnnue") {
int alignBoardSize = t.get_as<int>("align_board_size").value_or(0);

Search::Threads.setupEvaluator(warpEvaluatorMaker([=](int boardSize,
Rule rule,
std::filesystem::path weightPath,
const cpptoml::table &weightCfg) {
return std::make_unique<Evaluation::mix6q::Mix6QEvaluator>(
boardSize,
rule,
weightPath,
weightCfg.get_as<int>("align_board_size").value_or(alignBoardSize));
}));
}
else if (*evaluatorType == "mix7nnue") {
int alignBoardSize = t.get_as<int>("align_board_size").value_or(0);

Expand Down
Loading

0 comments on commit 84906f4

Please sign in to comment.