Toga II 1.4 Beta 5c is Out

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

ArmoredGuns

Re: Toga II 1.4 Beta 5c is Out

Post by ArmoredGuns »

Eelco de Groot wrote:
LJC wrote:
Daniel Charles wrote:Hello

I upload the New Toga from Thomas to my website

enjoy

Daniel
Is there a 64 bit ver?
Hello Lonnie and Juan Pablo, there is no 64 bit version because being a non bitboard program, Toga does not profit from going 64-bit. It would be just as fast as the 32-bit!

Regards, Eelco
Ah, I thought of hearing that Toga was being changed to bitboards. Or was that Fruit?
PauloSoare
Posts: 1335
Joined: Thu Mar 09, 2006 5:30 am
Location: Cabo Frio, Brasil

Re: Toga II 1.4 Beta 5c is Out

Post by PauloSoare »

Is there a simple way to run the program with 4 threads?
I tried "const int NumberThreads = 4" but Togga runned with
2 threads.

Paulo Soares
Dann Corbit
Posts: 12803
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Toga II 1.4 Beta 5c is Out

Post by Dann Corbit »

PauloSoare wrote:Is there a simple way to run the program with 4 threads?
I tried "const int NumberThreads = 4" but Togga runned with
2 threads.

Paulo Soares
Do the following from an instance on the console:
uci
ucinewgame
go infinite

I guess you will see 4 threads in the Windows Task Manager.
I compiled for 16 threads and saw 16 threads running.
Of course, you do not want to set it for more threads than the number of CPUs that you have available or it will perform poorly.
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: Toga II 1.4 Beta 5c is Out

Post by Zach Wegner »

I hated seeing all of this confusion about the threads, so I just hacked up a quick UCI option for controlling the number. I can't compile it because I don't have Windows, but it should work. So anyone who has a compiler just let me know and I'll send the source to you. Then the exe can float around to everyone like normal.

Note that MaxThreads threads are started at the beginning, but they are all suspended. Then, at the start of each search, each one is woken up. So the task manager might say there are 16 threads running, but only the number in the UCI options should be consuming CPU time.
User avatar
Eelco de Groot
Posts: 4681
Joined: Sun Mar 12, 2006 2:40 am
Full name:   Eelco de Groot

Re: Toga II 1.4 Beta 5c is Out

Post by Eelco de Groot »

PauloSoare wrote:Is there a simple way to run the program with 4 threads?
I tried "const int NumberThreads = 4" but Togga runned with
2 threads.

Paulo Soares
Hello Paulo

I'm not sure there is no misunderstanding. Denis compiled separate versions for for a single core, dual core and one for a quad. Did you try this last version? Making just a change in the source code is not doing anything, because that is only meant for e.g. programmers to compile a new .exe from all those files, if you have a compiler. No need to worry about that, the program does not use those files.

But I assume you got the right version TogaII14-5c-4cpu.exe.

If the taskmanager only sees two threads you can maybe follow Dann's advice, double clicking on the .exe and then type (in that black DOS window):

uci (->Press Enter to execute the command)
ucinewgame (->Press Enter to execute the command)
go infinite (->Press Enter to execute the command)



and see again what the taskmanager says about the number of threads?

Regards, Eelco
User avatar
Eelco de Groot
Posts: 4681
Joined: Sun Mar 12, 2006 2:40 am
Full name:   Eelco de Groot

Re: Toga II 1.4 Beta 5c is Out

Post by Eelco de Groot »

ArmoredGuns wrote:
Ah, I thought of hearing that Toga was being changed to bitboards. Or was that Fruit?
Yes, the latest Fruit from Ryan is now a bitboard program and so is Chess64 from Fabien Letouzey.

Eelco
PauloSoare
Posts: 1335
Joined: Thu Mar 09, 2006 5:30 am
Location: Cabo Frio, Brasil

Re: Toga II 1.4 Beta 5c is Out

Post by PauloSoare »

Eelco de Groot wrote:
PauloSoare wrote:Is there a simple way to run the program with 4 threads?
I tried "const int NumberThreads = 4" but Togga runned with
2 threads.

Paulo Soares
Hello Paulo

I'm not sure there is no misunderstanding. Denis compiled separate versions for for a single core, dual core and one for a quad. Did you try this last version? Making just a change in the source code is not doing anything, because that is only meant for e.g. programmers to compile a new .exe from all those files, if you have a compiler. No need to worry about that, the program does not use those files.

But I assume you got the right version TogaII14-5c-4cpu.exe.

If the taskmanager only sees two threads you can maybe follow Dann's advice, double clicking on the .exe and then type (in that black DOS window):

uci (->Press Enter to execute the command)
ucinewgame (->Press Enter to execute the command)
go infinite (->Press Enter to execute the command)



and see again what the taskmanager says about the number of threads?

Regards, Eelco
Eelco,

The name of my version is ToggaII312SE_MP, I downloaded it
in Superchessengine.com. I have just one choose when I downloaded.
When I run Togga, the task manager show me 50% shared on the
"processors".
I folloewed Dann´s advice, but after introduce "go infinite" the
program seems to go to into a loop and when I stop the possible
loop, I tryed to run Togga and the taskmanager show me 50%.

Thanks to you, Dann, Daniel and to Denis.

Paulo Soares
PauloSoare
Posts: 1335
Joined: Thu Mar 09, 2006 5:30 am
Location: Cabo Frio, Brasil

Re: Toga II 1.4 Beta 5c is Out

Post by PauloSoare »

Sorry, I forgot to thanks for Thomas Gaksch and Fabien Letouzey,
the more importants persons :(

Paulo Soares
Golem

Re: Toga II 1.4 Beta 5c is Out

Post by Golem »

Hello Zach,

Can you upload the files (modified source code) on a file hosting server or send it to me by mail (gon1tran2.lem3aire4@gmail5.com without the numbers).
Yesterday, I was also trying to make an UCI option for controlling the number of active threads but I don't like the way I made it works*.

*I have to start the engine with 16 threads by default and then I can change the UCI option and select the number (X) of thread to use. The engine simply disable the additional threads (16-X). In the task manager I always see 16 threads of which X threads are active and 16-X are inactive.

Regards,
Gontran
PauloSoare
Posts: 1335
Joined: Thu Mar 09, 2006 5:30 am
Location: Cabo Frio, Brasil

Re: Toga II 1.4 Beta 5c is Out

Post by PauloSoare »

Now all it´s ok, Eelco !
I downloaded Togga more on time in Superchessengine and
I have several options to threads, includind 8! A pity that I have
only a Quad.

Thanks another time,

Paulo Soares