Chess2u
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Chess2uLog in

descriptionGet Involved Stockfish EmptyGet Involved Stockfish

more_horiz
http://stockfishchess.org/get-involved/
How can i do it?
I will help to improve Stockfish.

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
Thanks

[Hide]

Code:

1) Download and install Python 2.7.3 (last 2.x package and x86!)

Website:
http://www.python.org/download/releases/2.7.3/

Package to download and install:
Windows x86 MSI Installer (2.7.3)
http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi

Installation step-by-step:
- Install for all users
- Install it to some directory (I choose 'D:\Python27')
- Install it with all the features
- Next, next, finish, done

2) Get the sources

Download https://github.com/glinscott/fishtest/archive/master.zip, and unzip it to a new directory.
For example, 'd:\fishtest'.

3) User/pass

Get a username/password pair from Marco/Gary :)

4) Running the worker process

Open a command prompt in 'd:\fishtest\worker\' and type:
'd:\Python27\python.exe worker.py --concurrency <cores> <username> <password>'
[Option concurrency refers to the number of available cores in your system (not including Hyperthreaded cores!), leaving one core for the OS. For example, on my 4 core machine, I use --concurrency 3.]

5) Let it run :)

[/Hide]

I followed it and I am stuck at the point number 3

Where is that you ask for the login/password?

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
Finally found it in another `readme`.
https://github.com/glinscott/fishtest/blob/master/README.md#get-usernamepassword

Get username/password
Please e-mail me at gmail.com, username "glinscott", and we will give you your username and password.


I have some questions:


  1. What is the hardware requirement?
  2. What is the minimum required availability?
  3. How long will a fishtest?
  4. Can we stop or pause the process at any time? If yes, how?
  5. Who will be the operator (of the shared hardware)?



Regards

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
Every hardware is ok.
The time for every Fishtest is different.
Sometimes 5 min, sometimes 2 hours.
Can we stop or pause the process at any time? If yes, how?
Close the black window.

You have the full control of your hardware, you only must start Fishtest and you are finish.

Get username/password
Please e-mail me at gmail.com, username "glinscott", and we will give you your username and password.
Means glinscott@gmail.com

http://tests.stockfishchess.org/tests
http://tests.stockfishchess.org/users

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
Well, it's done, it's over! Fast and Easy! Thank you!

I have a question.

Get Involved Stockfish Edtc0X2

On a machine I have an intel i7 (4 cores 8 threads). I put concurrency "2" (knowing that this figure refers to real cores). But in the task manager, the uc is arround only 25% while I expected to see 50%.
Puting '2 'in my case, it is similar to one core multi-threaded

So in a multi-threaded system, it is not about real core but the threads?
The test will not be biased?

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz

  • I want to keep the PGN before each new test and also the log file. How to keep it?
  • I want to run the test for a few hours during the night. Is it possible to add a timer?
  • Last question for today. The server collects the PGN? If so, is it possible to share please?


Last edited by ChessDrone on Sat Aug 10, 2013 3:47 pm; edited 3 times in total

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
@ChessDrone wrote:
Well, it's done, it's over! Fast and Easy! Thank you!

I have a question.
On a machine I have an intel i7 (4 cores 8 threads). I put concurrency "2" (knowing that this figure refers to real cores). But in the task manager, the uc is arround only 25% while I expected to see 50%.
Puting '2 'in my case, it is similar to one core multi-threaded

So in a multi-threaded system, it is not about real core but the threads?
The test will not be biased?
Hyperthreading in Intel processors can cause such misunderstanding concerning the threads attached to an engine is inversly proportional to the CPU usage as the CPU usage is calculated depending on the cores usage not the threads. Therefore, it is always recommended to turn off Hyperthreading for better performance, however in some motherboards it is not available to control the HT, like mine; so when setting a fair test or trying to attach a specified no. of cores to an engine, you need to represent each core with two threads. In your case, if you wanted to attach 50% of the cpu or 2 cores out of 4, you would attach 4 threads out of 8 to the engine. Moreover, it is possible to attach 1 core and a half to engines (3 threads) when hyper threading is enabled which is a minor advantage.

Hope this helps thumb up

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
Obviously, I would not be answered here.
So this is what I found elsewhere.


I changed some stuff to keep the PGN games with a timestamp as the filename.
And I added the "whitepov" option is enabled by default for an annotation score seen by the white side.


https://github.com/glinscott/fishtest/blob/master/worker/games.py#L418

worker/games.py around line 420
Portion of the code by default

Code:

 else:
    worker_threads = 1
    games_to_play = games_remaining
    pgnout = ['-pgnout', 'results.pgn']

  # Run cutechess-cli binary
  cmd = [ cutechess, '-repeat', '-rounds', str(games_to_play), '-tournament', 'gauntlet'] + pgnout + \
        ['-resign', 'movecount=3', 'score=400', '-draw', 'movenumber=34',
         'movecount=8', 'score=20', '-concurrency', str(games_concurrency)] + pgn_cmd + \
        ['-engine', 'name=stockfish', 'cmd=stockfish'] + new_options + \
        ['_clop_','-engine', 'name=base', 'cmd=base'] + base_options + \
        ['_clop_','-each', 'proto=uci', 'option.Threads=%d' % (threads), 'tc=%s' % (scaled_tc)] + book_cmd
added

Code:

   ts = time.time()
    st = datetime.datetime.fromtimestamp(ts).strftime('%Y%m%d-%H%M')
replaced this

Code:

   pgnout = ['-pgnout', 'results.pgn']
by this

Code:

   pgnout = ['-pgnout', 'results-%s.pgn' % st]
inserted this (White Score Perspective)

Code:

, 'whitepov=false'
Which finally looks like:

Code:

else:
    ts = time.time()
    st = datetime.datetime.fromtimestamp(ts).strftime('%Y%m%d-%H%M')
    worker_threads = 1
    games_to_play = games_remaining
    pgnout = ['-pgnout', 'results-%s.pgn' % st]

  # Run cutechess-cli binary
  cmd = [ cutechess, '-repeat', '-rounds', str(games_to_play), '-tournament', 'gauntlet'] + pgnout + \
        ['-resign', 'movecount=3', 'score=400', '-draw', 'movenumber=34',
         'movecount=8', 'score=20', '-concurrency', str(games_concurrency)] + pgn_cmd + \
        ['-engine', 'name=stockfish', 'cmd=stockfish'] + new_options + \
        ['_clop_','-engine', 'name=base', 'cmd=base'] + base_options + \
        ['_clop_','-each', 'proto=uci', 'whitepov=false', 'option.Threads=%d' % (threads), 'tc=%s' % (scaled_tc)] + book_cmd
Now I am waiting for a response to the addition of a timer, if possible.

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
It is now possible to register on the site http://tests.stockfishchess.org/signup

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
mg][/url]

Last edited by Kajordzak on Sun Oct 20, 2013 1:42 pm; edited 1 time in total

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
This is normal, but it is recommended to leave a free core for the operating system.

In your case you have 4 cores and should only use 3 like this:

4) Running the worker process

Open a command prompt in 'd:\fishtest\worker\' and type:
'd:\Python27\python.exe worker.py --concurrency 3 <username> <password>'
[Option concurrency refers to the number of available cores in your system (not including Hyperthreaded cores!), leaving one core for the OS. For example, on my 4 core machine, I use --concurrency 3.]

descriptionGet Involved Stockfish EmptyRe: Get Involved Stockfish

more_horiz
Permissions in this forum:
You cannot reply to topics in this forum