This dockerfile contains all the dependences necessary to run GPU applications in gem5 using the gcn3 APU model
docker build -t <image_name> .
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/GCN3_X86/gem5.opt
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/GCN3_X86/gem5.opt configs/example/apu_se.py -n2 --benchmark-root=/ -cMatrixTranspose
-v
flag, the path to the input file/directory needs to be the absolute path; symlinks don't work