mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 11:36:51 +08:00
Add our own blas-like routines that use stockfish's thread pool for parallelization.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
#include "extra/stockfish_blas.h"
|
||||
#include "nnue/evaluate_nnue.h"
|
||||
#include "evaluate.h"
|
||||
#include "movegen.h"
|
||||
@@ -354,6 +355,14 @@ void UCI::loop(int argc, char* argv[]) {
|
||||
std::cout << th.thread_idx() << '\n';
|
||||
});
|
||||
}
|
||||
else if (token == "blastest")
|
||||
{
|
||||
Blas::test(Threads);
|
||||
}
|
||||
else if (token == "blasbench")
|
||||
{
|
||||
Blas::bench(Threads);
|
||||
}
|
||||
|
||||
// test command
|
||||
else if (token == "test") test_cmd(pos, is);
|
||||
|
||||
Reference in New Issue
Block a user