Open
Conversation
once a go command was received from the outer uci handling loop, that loop actually starts the search directly, so the search code has a second uci parsing loop to be able to respond to the "stop" command (unless it's running in weak-elo sleep(10) mode, in which case it takes ages until it actually processes the stop command... but that's another issue). this architecture is pretty messy - there should be a dedicated thread running the uci processing loop, which then notifies the engine threads when they have to start or stop working.
the engine chdir()s all over the place - basically whenever it opens a file. this costed me hours to figure out why no core file was written on a crash that wasn't capturable with gdb attached. reason was that it chdir'd to /share/rodent3 where the personality and book files are installed, but only root has write access. i wrote a utility function that opens a file either via absolute path, in the hardcoded library directory, or via a specific environment variable, and if all of the above fails, a path relative to the current working dir.
the changes allow to override the default CXXFLAGS from an include file called config.mak, without having to edit the Makefile.
so one can actually see if one successfully worked around the path shenanigans and made rodent find the personality file, in case one doesn't know that the uci option "verbose", called "noisy" in the source code, would print such a confirmation message.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
see the individual commit messages.