New J.A Compiles

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

Moderator: Ras

User avatar
Jim Ablett
Posts: 2078
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Automated Obsidian builder script JA

Post by Jim Ablett »

Image
Script Functionality
This Windows-only Python script is a comprehensive build system for the Obsidian
chess engine that:

• Automatically downloads and installs Git and WinLibs MinGW-w64 if needed
• Clones the Obsidian chess engine repository
• Applies SIMD-everywhere modifications for cross-platform compatibility
• Modifies various source files to use conditional includes
• Compiles the engine with specified build configurations
• Handles administrator privileges for file operations
• Supports multiple build types: native, sse2, ssse3, avx2, avx2-pext, avx512


Usage:

Make sure you have python installed on your system first (when not using executable version)
https://www.python.org/downloads/windows/

Make sure you have Git For Windows installed
https://git-scm.com/downloads/win

WinLibs MinGW-w64 will be auto-downloaded and installed the first time
then on subsequent builds the download will be skipped if already installed.


Run the executable or script from a Git Bash terminal (available from the right-click menu once
Git For Windows is installed).

Do not run the script from the Windows terminal.

Script will check to see if there is a new version of Obsidian available to download
when it starts.


Choose one of these: (without options = native)

using executable:

./obsidian_builder
./obsidian_builder build=native
./obsidian_builder build=sse2
./obsidian_builder build=ssse3
./obsidian_builder build=avx2
./obsidian_builder build=avx2-pext
./obsidian_builder build=avx512

Add pgo on the end for profile guided optimized build. (takes longer to build)
e.g ./obsidian_builder build=avx512 pgo

pgo produces slightly faster builds for avx2/avx2-pext/avx512
pgo produces slower builds for sse2/ssse3


using python:

python obsidian_builder.py
python obsidian_builder.py build=native
python obsidian_builder.py build=sse2
python obsidian_builder.py build=ssse3
python obsidian_builder.py build=avx2
python obsidian_builder.py build=avx2-pext
python obsidian_builder.py build=avx512

Add pgo on the end for profile guided optimized build. (takes longer to build)
e.g python obsidian_builder.py build=avx512 pgo


Proton link:
https://drive.proton.me/urls/CZ6V0DZZNG#8WWpROJ76PJH

Smash link:
https://fromsmash.com/DevObsidianAutoBuilderJA

Jim.
User avatar
Gabor Szots
Posts: 1432
Joined: Sat Jul 21, 2018 7:43 am
Location: Budapest, Hungary
Full name: Gabor Szots

Re: New J.A Compiles

Post by Gabor Szots »

PaulieD wrote: Thu May 29, 2025 12:53 pm Obsidian 16.2 is available

https://t.me/s/chessenginesac
What link is that? I can see no such version here: https://github.com/gab8192/Obsidian.
Gabor Szots
CCRL testing group
Chacal X
Posts: 21
Joined: Mon Mar 10, 2025 9:06 pm
Full name: flavio thomazini

Re: New J.A Compiles

Post by Chacal X »

OBSIDIANGood morning Jim,
Good morning Jim,
OBSIDIAN 16.2
I appreciate your good intention in showing me how to compile Obsidian. Unfortunately, I recognize that I do not have the ability to do this. If it is not difficult and you have some time, please compile it in SSE3 and sse41 for me and other chess players who are also waiting.
Thank you again for your attention!
User avatar
Jim Ablett
Posts: 2078
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New J.A Compiles

Post by Jim Ablett »

Chacal X wrote: Fri May 30, 2025 3:02 pm OBSIDIANGood morning Jim,
Good morning Jim,
OBSIDIAN 16.2
I appreciate your good intention in showing me how to compile Obsidian. Unfortunately, I recognize that I do not have the ability to do this. If it is not difficult and you have some time, please compile it in SSE3 and sse41 for me and other chess players who are also waiting.
Thank you again for your attention!
Built with my python script. No difference between SSE3 & SSE4 when using the script.
When I compile my normal way there is a difference -SSE3 build has no hardware popcount.

https://fromsmash.com/Obsidian1602-sse3

Jim.
Chacal X
Posts: 21
Joined: Mon Mar 10, 2025 9:06 pm
Full name: flavio thomazini

Re: New J.A Compiles

Post by Chacal X »

Thank you very much for your attention, a big hug from Brazil!
tmokonen
Posts: 1352
Joined: Sun Mar 12, 2006 6:46 pm
Location: Kelowna
Full name: Tony Mokonen

Re: New J.A Compiles

Post by tmokonen »

Gabor Szots wrote: Fri May 30, 2025 2:48 pm
PaulieD wrote: Thu May 29, 2025 12:53 pm Obsidian 16.2 is available

https://t.me/s/chessenginesac
What link is that? I can see no such version here: https://github.com/gab8192/Obsidian.
Not sure why it was given the 16.2 version number. It's just a compile of what was the current dev version at the time.
PaulieD
Posts: 234
Joined: Tue Jun 25, 2013 8:19 pm

Re: New J.A Compiles

Post by PaulieD »

If you look just below my ORIGINAL post (16.2) you will see where I CORRECTED the version number to (16.02)
I have no idea why someone would quote the incorrect post
User avatar
Gabor Szots
Posts: 1432
Joined: Sat Jul 21, 2018 7:43 am
Location: Budapest, Hungary
Full name: Gabor Szots

Re: New J.A Compiles

Post by Gabor Szots »

PaulieD wrote: Fri May 30, 2025 7:21 pm If you look just below my ORIGINAL post (16.2) you will see where I CORRECTED the version number to (16.02)
I have no idea why someone would quote the incorrect post
Version 16.02 does not exist either, at least not officially.
Gabor Szots
CCRL testing group
User avatar
Jim Ablett
Posts: 2078
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New J.A Compiles

Post by Jim Ablett »

Image
https://github.com/hoavu-cs/aku-chess-engine
Aku 2025.30.5 by Hoa T. Vu

Aku 2025.30.5 64 JA

Windows & Linux profiled builds

Proton link:
https://drive.proton.me/urls/HYJXCWGGXG#f8EKfp4UVHQl

Smash link:
https://fromsmash.com/AKU2025305JA

Jim.