Hi Nicholas, Sorry for my delayed response, but very cool to hear you are using these. Jason (CC'd) might need to help about codespace specific issues though. Before we get there though, there are some things to try. Ultimately, the problem is that it can't find the libamdhip library. I'll need some more information to help you triage, but the most obvious thing: what steps did you take before this one? Specifically, did you run the docker pull command like the bootcamp requires? My recollection is that this needs to be done first, before anything else. And in the command at the top of your email, you don't appear to be using the docker. I will also note you (I think) changed the example to use gfx902 instead of gfx900. From looking at my slides from the bootcamp, it does not appear I talked about gfx902 at all. So, just making sure that change is intentional?
Jason, I'm having a hard time finding the right pointer to where in the bootcamp repo the GPU instructions are. Is it this: https://github.com/gem5bootcamp/gem5-bootcamp-env/blob/51590ae00b0e451c9b6a8854addbb94128ab4cac/materials/developing-gem5-models/11-gpu/README.md ? Thanks, Matt On Wed, Feb 26, 2025 at 8:34 AM Beser, Nicholas D. via gem5-users < gem5-users@gem5.org> wrote: > root@codespaces-e992b2:/workspaces/en525-712-81-sp25-amd-gpu-using-gem5-gem5bootcamp2024# > gem5-vega gem5/configs/example/apu_se.py -n 3 --gfx-version= > > gfx902 -c gem5-resources/src/gpu/square/bin/square > > gem5 Simulator System. https://www.gem5.org > > gem5 is copyrighted software; use the --copyright option for details. > > > > I have setup a github codespace for teaching my advanced computer > architecture class. I tried to run the example square for the AMD GPU, and > got an error (gem5-resources/src/gpu/square/bin/square: error while loading > shared libraries: libamdhip64.so.4: cannot open shared object file: No such > file or directory > > > > Is this due to the compilation of square, or is this a common problem with > codespace? > > > > Nick > > > > gem5 version 24.0.0.0 > > gem5 compiled Jul 25 2024 20:34:41 > > gem5 started Feb 26 2025 14:08:28 > > gem5 executing on codespaces-e992b2, pid 15064 > > command line: gem5-vega gem5/configs/example/apu_se.py -n 3 > --gfx-version=gfx902 -c gem5-resources/src/gpu/square/bin/square > > > > Num SQC = 1 Num scalar caches = 1 Num CU = 4 > > Global frequency set at 1000000000000 ticks per second > > warn: system.ruby.network adopting orphan SimObject param 'ext_links' > > warn: system.ruby.network adopting orphan SimObject param 'int_links' > > src/mem/dram_interface.cc:690: warn: DRAM device capacity (8192 Mbytes) > does not match the address range assigned (512 Mbytes) > > src/base/statistics.hh:279: warn: One of the stats is a legacy stat. > Legacy stat is a stat that does not belong to any statistics::Group. Legacy > stat is deprecated. > > src/base/statistics.hh:279: warn: One of the stats is a legacy stat. > Legacy stat is a stat that does not belong to any statistics::Group. Legacy > stat is deprecated. > > Forcing maxCoalescedReqs to 32 (TLB assoc.) > > Forcing maxCoalescedReqs to 32 (TLB assoc.) > > Forcing maxCoalescedReqs to 32 (TLB assoc.) > > Forcing maxCoalescedReqs to 32 (TLB assoc.) > > Forcing maxCoalescedReqs to 32 (TLB assoc.) > > Forcing maxCoalescedReqs to 32 (TLB assoc.) > > src/base/statistics.hh:279: warn: One of the stats is a legacy stat. > Legacy stat is a stat that does not belong to any statistics::Group. Legacy > stat is deprecated. > > Forcing maxCoalescedReqs to 32 (TLB assoc.) > > Forcing maxCoalescedReqs to 32 (TLB assoc.) > > system.remote_gdb: Listening for connections on port 7000 > > src/sim/simulate.cc:199: info: Entering event queue @ 0. Starting > simulation... > > src/mem/ruby/system/Sequencer.cc:680: warn: Replacement policy updates > recently became the responsibility of SLICC state machines. Make sure to > setMRU() near callbacks in .sm files! > > src/sim/mem_state.cc:448: info: Increasing stack size by one page. > > gem5-resources/src/gpu/square/bin/square: error while loading shared > libraries: libamdhip64.so.4: cannot open shared object file: No such file > or directory > > breaking loop due to: exiting with last active thread context. > > Ticks: 234627000 > > Exiting because exiting with last active thread context > > root@codespaces-e992b2 > :/workspaces/en525-712-81-sp25-amd-gpu-using-gem5-gem5bootcamp2024# > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org