Files
gem5/util/dockerfiles/gcn-gpu
Bobby R. Bruce 688268d22d util-docker: Minor housekeeping to Dockerfiles (#1592)
1. Moved description label to docker-bake.hcl. Image descriptions must
be specified here. See:
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#adding-a-description-to-multi-arch-images
2. Moved specifying the 'Dockerfile' to 'common'.
3. Changed it so the gpu-fs and gcn-fpu images only built to
linux/amd64. arm64 doesn't work.
2024-09-23 02:36:09 -07:00
..

gcn-gpu dockerfile

This dockerfile contains all the dependences necessary to run GPU applications in gem5 using the gcn5 (Vega) APU model

Building the image

docker build -t <image_name> .

Building gem5 using the image

The following command assumes the gem5 directory is a subdirectory of your current directory

docker run --rm -v $PWD/gem5:/gem5 -w /gem5 <image_name> scons -sQ -j$(nproc) build/VEGA_X86/gem5.opt

Test gem5 using a prebuilt application

wget http://dist.gem5.org/dist/current/test-progs/hip_sample_bins/MatrixTranspose
docker run --rm -v $PWD/MatrixTranspose:/MatrixTranspose -v $PWD/public_gem5:/gem5 -w /gem5 \
        <image_name> build/VEGA_X86/gem5.opt configs/example/apu_se.py -n2 --benchmark-root=/ -cMatrixTranspose

Notes

  • When using the -v flag, the path to the input file/directory needs to be the absolute path; symlinks don't work
  • Currently linking in an AFS volume is not supported, as it uses ACLs instead of owner/group IDs

ToDo

  • Add square to gem5-resources github, add directions for building and running an application