There are some instructions about how to build the software stack for the GPU model here: http://gem5.org/GPU_Models
You’ll need to build the ROCr (runtime) ROCt (thunk) and HCC (clang/llvm compiler), and probably HIP too as most available codes are in HIP. For example, the Rodinia benchmarks have been hipified here: https://github.com/ROCm-Developer-Tools/HIP-Examples/tree/master/rodinia_3.0/hip The recommended branches are listed on the site, however most users have not been able to get them to run in the simulator. These are shas for each repo known to work in gem5: HCC: 7d030799dca53d39f141d60c73950966501b3ffb ROCr: f92eba2a8b0d5e9a8fa28a127bd1eb59f03d3eb0 ROCt: d13b4e2e2413cb20e8cc2bcdd419f06f499f306e HIP: 0e3d824e8d8f1ec3e31b26fa1f2e46fd3e6d4241 From: gem5-users <[email protected]> On Behalf Of Krishna Subramanian Sent: Thursday, February 7, 2019 12:26 PM To: gem5 Developer List <[email protected]>; [email protected] Subject: [gem5-users] GPU Hi I was able to successfully run the GPU Hello included in the gem5 distribution using the HSAIL build. However i was wondering how to write my own openCL/different language program and compile it all the way down to an executable binary on the HSAIL ( or the equivalent in GCN3). Is there any tutorial/methodology you can point me to if available. Thank you for your time Best, Krishna _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
