New asmFish released

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

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
pohl4711
Posts: 1044
Joined: Sat Sep 03, 2011 5:25 am
Location: Berlin, Germany
Contact:

New asmFish released

Post by pohl4711 » Fri Nov 04, 2016 6:07 pm

https://github.com/tthsqe12/asm/tree/master/Windows

Based on Stockfish 8 plus support of Polyglot opening-books.

The fastest and strongest Stockfish 8, because the code was completely rewritten in Assembler!

Frank Quisinsky
Posts: 4851
Joined: Wed Nov 18, 2009 6:16 pm
Location: Trier, Germany
Contact:

Re: And here available too ...

Post by Frank Quisinsky » Fri Nov 04, 2016 6:11 pm

Hi Stefan,

waiting of it ...
Perfect and thanks for the information.

I will update my ToDo list.
Now my fight for place one can starting and Stockfish will run with full power.

I am sure you saw that ...
SF 8 is now available here ...

http://chess.ultimaiq.net/stockfish.html

Best and thanks!
Frank
I like computer chess!

MikeB
Posts: 3292
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: New asmFish released

Post by MikeB » Fri Nov 04, 2016 6:42 pm

pohl4711 wrote:https://github.com/tthsqe12/asm/tree/master/Windows

Based on Stockfish 8 plus support of Polyglot opening-books.

The fastest and strongest Stockfish 8, because the code was completely rewritten in Assembler!
What would I have to do to compile it for the Mac?

mar
Posts: 1987
Joined: Fri Nov 26, 2010 1:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: New asmFish released

Post by mar » Fri Nov 04, 2016 8:36 pm

MikeB wrote:What would I have to do to compile it for the Mac?
No easy way for you I think. It uses Flat assembler and I'm not sure it supports mach targets, if it does you can ask the author.

Even if it did, you'd probably have to start with the Linux version, most likely syscalls on OSX won't match those on Linux.

I found this project https://github.com/JohnDDuncanIII/fasm-osx, no idea if it'd work.
It seems to use object converter (ELF=>mach), but as I said you're on a (very) thin ice here.

I think OSX and Linux have same x64 ABI (first n params passed in same registers, Windows is different)

Perhaps you might be able to build AsmFish as a library and link to it via a C wrapper,
but you'll also need to expose system stuff to AsmFish so it'd be a 2-way wrapper process.

MikeB
Posts: 3292
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: New asmFish released

Post by MikeB » Fri Nov 04, 2016 8:37 pm

MikeB wrote:
pohl4711 wrote:https://github.com/tthsqe12/asm/tree/master/Windows

Based on Stockfish 8 plus support of Polyglot opening-books.

The fastest and strongest Stockfish 8, because the code was completely rewritten in Assembler!
What would I have to do to compile it for the Mac?
Ok, Officially FASM does not support Mac, if someone could make an object file of Stockfish asm, I have object file converter that I might be able to covert the object file to a Mac format.

User avatar
Thomas Lagershausen
Posts: 238
Joined: Mon Jun 11, 2007 4:59 pm

Re: New asmFish released

Post by Thomas Lagershausen » Fri Nov 04, 2016 8:52 pm

@Stefan

Very important information.:!: :!:

Thx alot. :D
TL

Dann Corbit
Posts: 9901
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: New asmFish released

Post by Dann Corbit » Fri Nov 04, 2016 9:02 pm

MikeB wrote:
pohl4711 wrote:https://github.com/tthsqe12/asm/tree/master/Windows

Based on Stockfish 8 plus support of Polyglot opening-books.

The fastest and strongest Stockfish 8, because the code was completely rewritten in Assembler!
What would I have to do to compile it for the Mac?
Go with Cfish instead.
Much easier to port. For some people, it is faster than AsmFish.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.

Milos
Posts: 3384
Joined: Wed Nov 25, 2009 12:47 am

Re: New asmFish released

Post by Milos » Sat Nov 05, 2016 12:45 am

Dann Corbit wrote:Go with Cfish instead.
Much easier to port. For some people, it is faster than AsmFish.
What is the point, Cfish is certainly not the fastest of the compiled code.
Brainfish numa is (even on non-numa machines) because of the way hash is handled, functionally it is identical to SF. Plus compiler efficiency is better with C++ code, i.e. C++ compiler is so efficient that you don't lose almost anything on all those pure C++ things, so the only CFish benefit comes from small internal optimizations that could easily be done 1:1 in Stockfish. And finally CFish is a nightmare to compile with anything but MinGW.
For me on AMD architecture modern/popcnt compile, Brainfish numa is 5-8% faster than SF official, asmFish is 10-13% and pendantFish is 13-16% faster (lower number is deep search from root, upper number is bench).

PaulieD
Posts: 205
Joined: Tue Jun 25, 2013 6:19 pm

Re: New asmFish released

Post by PaulieD » Sat Nov 05, 2016 1:56 am

3000 GAME GAUNTLET
i3 380M | 2 @ 2.53 | Win7 x64 | 6 GB Ram | Gui~ CuteChess GUI 0.9.4
Draw Adjudication~120 / 40 / 2 | Resign~3 / 4.8 | Cores~1 | HT~On
Book~TopGM_2move.pgn | Hash~8MB | Concurrency~3
Ponder~No | TB's~No | Elo~Ordo 1.2.6 | Time~20" + .2"

ASM +45 over Stockfish 8
Stockfish 8 +74 over Komodo 10.2
Komodo 10.2 +10 over Stockfish 7

Code: Select all

   # PLAYER         :  RATING  ERROR  PLAYED     W     D    L   (%)  D(%)
   1 SF8 ASMPD      :    3273      7    3000  1175  1457  368  63.5  48.6
   2 Stockfish 8    :    3228     13    1000   140   592  268  43.6  59.2
   3 Komodo 10.2    :    3154     14    1000   153   367  480  33.6  36.7
   4 Stockfish 7    :    3144     14    1000    75   498  427  32.4  49.8

syzygy
Posts: 4447
Joined: Tue Feb 28, 2012 10:56 pm

Re: New asmFish released

Post by syzygy » Sat Nov 05, 2016 2:17 am

Ehm, the most invasive change of the "unix version" of brainfish is the insertion of the "author"'s own name, unless you run it on a NUMA machine (for which it seems to use the patch prepared by Mohammed based on - I think - Texel's code).

The brainfish windows code in addition includes a large pages patch, which is obviously of no use for Mac and which I assume was not an original contribution by the brainfish "author" either.

In the windows version large pages is off by default, so any speed increase of brainfish (when not enabling large pages) is due to the better/different compile.

Post Reply