Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aarch64 support for cutechess-cli download (Added support for other Linux architectures for cutechess-cli download. It didn't support other than x86_64 which was by default) #1581

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

maximmasiutin
Copy link
Contributor

@maximmasiutin maximmasiutin commented Mar 17, 2023

Fishtest didn't support other Linux machine (CPU) types to download proper binary of cutechess-cli. It used x86_64 by default, , omitting it, to form the URL to get the file from githubusercontent.com. Therefore, for Linux x86_64 64-bit it was looking for a file name cutechess-cli-linux-64bit.zip, but on other CPUs like ARM64 it was still downloading the binary for x86_64 which could not be executed and gave error due to instructions incompatibility, preventing Fishtest worker from running.

This pull request adds the machine type name (Python's platform.machine()) to the file name if it is other than x86_64. Therefore, if the machine type is x86_64, the machine type name is not added to the file name, to maintain compatibility with earlier naming convention. Otherwise, the machine type name string is added before the architecture string, so the full name is like cutechess-cli-linux-aarch64-64bit.zip

P.S. Please make the file cutechess-cli-linux-aarch64-64bit.zip available to download from githubusercontent.com along with cutechess-cli-linux-64bit.zip. You can compile this aarch64 (ARM64) version yourself or use the archive that I prepared - get it from https://www.masiutin.net/cutechess-cli-linux-aarch64-64bit.zip -- I tested it on Ampere Altra.

@maximmasiutin maximmasiutin changed the title Added support for other Linux architectures for cutechess-cli download. It didn't support other than x86_64 which was by default aarch64 support for cutechess-cli download (Added support for other Linux architectures for cutechess-cli download. It didn't support other than x86_64 which was by default) Mar 17, 2023
@vondele
Copy link
Member

vondele commented Apr 28, 2024

This PR makes sense, however the link to the cutechess binary doesn't seem to work any longer. Do you still have a copy @maximmasiutin ?

@vondele
Copy link
Member

vondele commented Apr 28, 2024

Actually, I see we have this repo with binaries as well https://github.com/ppigazzini/static-cutechess-cli/releases

@maximmasiutin
Copy link
Contributor Author

This PR makes sense, however the link to the cutechess binary doesn't seem to work any longer. Do you still have a copy @maximmasiutin ?

Sorry, don't have that any longer. I compiled the current version at that time from Github. Now we could do the same, but I see you found a repository with binaries already, so we should probably take from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants