configs: set hsaTopology properties from options
authorKyle Roarty <kyleroarty1716@gmail.com>
Tue, 26 May 2020 17:03:29 +0000 (12:03 -0500)
committerKyle Roarty <kyleroarty1716@gmail.com>
Sat, 29 Aug 2020 01:49:37 +0000 (01:49 +0000)
commit796d54e63bba2abc9edd27051c3b6f95fbf78984
treeebfbfd77e35dabcd05e7008de036a5ffc51f9176
parentfa13042b5a1b4120bb7d96d15170bbd5d5068fad
configs: set hsaTopology properties from options

This change sets the properties in hsaTopology to the proper values
specified by the user through command-line arguments. This ensures
that if the properties file is read by a program, it will return
the correct values for the simulated hardware.

This change also adds in a command-line argument for the lds size, as
it was the only other property used in hsaTopology that didn't have
a command-line argument. The default value (65536) is taken from
src/gpu-compute/LdsState.py

Change-Id: I17bb812491708f4221c39b738c906f1ad944614d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31995
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Reviewed-by: Alexandru Duțu <alexandru.dutu@amd.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/example/apu_se.py
configs/example/hsaTopology.py