Stockfish: 'make clean' doesn't remove downloaded nets

Created on 11 Aug 2020  路  7Comments  路  Source: official-stockfish/Stockfish

After https://github.com/official-stockfish/Stockfish/commit/ea6220f3813e5b76b444a02905eaf2c556bdb368, profile-build produces new files that aren't cleaned up/removed with make clean (the downloaded NNUE nets). This means that as the default net changes the src directory will grow and require manual cleaning not covered by make clean.

Most helpful comment

but I wonder how many people will recall the 'netclean' target, as opposed to just execute rm nn-*.nnue

All 7 comments

that's on purpose as downloading the nets takes time, and make clean is common. I would rather consider it 'source' (but for technical reasons not part of the github history), not generated files.

that's on purpose as downloading the nets takes time, and make clean is common. I would rather consider it 'source' (but for technical reasons not part of the github history), not generated files.

I noticed https://github.com/official-stockfish/Stockfish/issues/2981 proposes to literally include it in the source, so I'm linking for reference.

I don't know what I'm talking about, but could making NNUE nets a submodule somehow allow Git to track the maps without them appearing in this project's history?

How about

netclean:
    @rm -f nn-*.nnue

make netclean

How about

netclean:
    @rm -f nn-*.nnue

make netclean

I think this is a nice solution that addresses the concerns.

but I wonder how many people will recall the 'netclean' target, as opposed to just execute rm nn-*.nnue

I'll close this, I think the current state is fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maelic13 picture maelic13  路  3Comments

rayoh123 picture rayoh123  路  5Comments

d3vv picture d3vv  路  5Comments

Silver-Fang picture Silver-Fang  路  7Comments

fun8 picture fun8  路  4Comments