tree: f78d72e0e8e031cacb5318feee9d76f1200b912a [path history] [tgz]
  1. .gitignore
  2. Makefile
  4. square.cpp

title: GCN3 Square Test tags: - x86 - amdgpu layout: default permalink: resources/square shortdoc: > Resources to build a disk image with the GCN3 Square workload.

The square test is used to test the GCN3-GPU model.

Compiling square, compiling the GCN3_X86 gem5, and runing square on gem5is dependent on the gcn-gpu docker image, built from the util/dockerfiles/gcn-gpu/Dockerfile on the gem5 stable branch.

Compiling Square

cd src/square
docker run --rm -v ${PWD}:${PWD} -w ${PWD} -u $UID:$GID make gfx8-apu

The compiled binary can be found in the bin directory.

A pre-built binary can be found at

Compiling GN3_X86/gem5.opt

The test is run with the GCN3_X86 gem5 variant, compiled using the gcn-gpu docker image:

git clone
cd gem5
docker run -u $UID:$GUID --volume $(pwd):$(pwd) -w $(pwd) scons build/GCN3_X86/gem5.opt -j <num cores>

Running Square on GCN3_X86/gem5.opt

docker run -u $UID:$GUID --volume $(pwd):$(pwd) -w $(pwd) gem5/build/GCN3_X86/gem5.opt gem5/configs/example/ -n <num cores> -c bin/square.o