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

Docker arm64 build (e.g., for apple M1 chip) #199

Open
FinnLidbetter opened this issue Aug 2, 2021 · 0 comments
Open

Docker arm64 build (e.g., for apple M1 chip) #199

FinnLidbetter opened this issue Aug 2, 2021 · 0 comments

Comments

@FinnLidbetter
Copy link

To get problemtools running with Docker on an arm64 architecture machine (e.g., a mac with an Apple M1 chip) a custom Docker image should be built.

I built such an image locally with docker buildx build . on my arm64 machine, but it should be able to be built on non-arm64 machines with docker buildx build --platform linux/arm64/v8 .

Docker builds on this architecture could be added official Docker problemtools repository. Adding such an image and a note in the README.md would be my preferred solution to this issue. Until such a build is available in the problemtools repository, or if it is decided not to be added, anyone else wishing to use the build can do one of the following:
Option A:

  1. Download/clone this git repo.
  2. Run docker buildx build .
  3. Use docker images to see the image ID of the newly built image and run docker using that image ID.
  4. (Optional) Rename the newly created docker image with docker tag IMAGE-ID problemtools

Option B:

  1. Get the docker image that I have made available at docker hub with docker pull finnlidbetter/problemtools-icpc-arm

Note that it was found that running the existing docker image under emulation with
docker run -it --rm --platform linux/arm64/v8 problemtools/icpc was unusably slow. Anecdotally, executing a submission on one test case through the Docker container was 80--100x slower than running it locally.

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

No branches or pull requests

1 participant