[gem5-users] GPU FS Multiple CPU

2024-03-22 Thread Pau Galindo Figuerola via gem5-users
Hi all,

I'm trying to run GPU FS with 4 CPU. That's because I want to replicate a
real APU device that has 4 x86 CPUs with 2 threads each.

When running it in FS along with a Vega10 GPU I'm facing the following
error:

*M5 Terminal Output:*






*[0.332000] smpboot: CPU0: AMD Fake gem5 x86_64 CPU (family: 0xf,
model: 0x25, stepping: 0x1)[0.336000] Performance Events: Broken PMU
hardware detected, using software events only.[0.34] Failed to
access perfctr msr (MSR c0010007 is 0)[0.344000] rcu: Hierarchical SRCU
implementation.[0.348000] NMI watchdog: Perf NMI watchdog permanently
disabled[0.352000] smp: Bringing up secondary CPUs ...[0.356000]
x86: Booting SMP configuration:*

*Simulation Output:*






















*src/cpu/kvm/base.cc:1109: panic: KVM: Failed to enter virtualized mode (hw
reason: 0x8021)Memory Usage: 28921692 KBytesProgram aborted at tick
1951958177000--- BEGIN LIBC BACKTRACE
---gem5/build/VEGA_X86/gem5.opt(_ZN4gem515print_backtraceEv+0x30)[0x60b9fa48cea0]gem5/build/VEGA_X86/gem5.opt(_ZN4gem512abortHandlerEi+0x4c)[0x60b9fa4b2d3c]/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7bfede642520]/lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7bfede6969fc]/lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7bfede642476]/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7bfede6287f3]gem5/build/VEGA_X86/gem5.opt(+0xd67ec5)[0x60b9f9363ec5]gem5/build/VEGA_X86/gem5.opt(+0xf31d05)[0x60b9f952dd05]gem5/build/VEGA_X86/gem5.opt(_ZN4gem510BaseKvmCPU4tickEv+0x99)[0x60b9f952f609]gem5/build/VEGA_X86/gem5.opt(_ZN4gem510EventQueue10serviceOneEv+0xc2)[0x60b9fa4a3042]gem5/build/VEGA_X86/gem5.opt(_ZN4gem59doSimLoopEPNS_10EventQueueE+0x68)[0x60b9fa4cc458]gem5/build/VEGA_X86/gem5.opt(_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN4gem516SimulatorThreads17runUntilLocalExitEvEUlPNS3_10EventQueueEE_S6_E6_M_runEv+0x9f)[0x60b9fa4cd6df]/lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc253)[0x7bfedeadc253]/lib/x86_64-linux-gnu/libc.so.6(+0x94ac3)[0x7bfede694ac3]/lib/x86_64-linux-gnu/libc.so.6(+0x126850)[0x7bfede726850]---
END LIBC BACKTRACE ---For more info on how to address this issue, please
visit https://www.gem5.org/documentation/general_docs/common-errors/
 Aborted*

Any clue in how to proceed?

Thank you!

Best Regards,
Pau
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] GPU-FS simulation progress

2022-12-06 Thread Rajesh Shashi Kumar via gem5-users
Hi,

I followed the instructions on running gpu-fs square using the
gem5-resources repository. My simulation has been stuck here for a while

...
build/VEGA_X86/arch/x86/kvm/x86_cpu.cc:1561: warn: kvm-x86: MSR
(0xc0010015) unsupported by gem5. Skipping.
build/VEGA_X86/arch/x86/kvm/x86_cpu.cc:1561: warn: kvm-x86: MSR
(0x4b564d05) unsupported by gem5. Skipping.


*build/VEGA_X86/dev/x86/pc.cc:117: warn: Don't know what interrupt to clear
for console.169640: system.pc.com_1.device: attach terminal 0*
I tried attaching a terminal on a different tab using the following but I'm
not sure if my image has booted or if the application is running:

$ util/term/m5term localhost 3456
 m5 terminal: Terminal 0 
[0.0

Any advice is appreciated!

My run command:
build/VEGA_X86/gem5.opt configs/example/gpufs/vega10_kvm.py --disk-image
../disk-image/rocm42/rocm42-image/rocm42 --kernel
../vmlinux-5.4.0-105-generic --gpu-mmio-trace ../vega_mmio.log --app
../../gpu/square/bin/square

Thanks,
Rajesh
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] GPU virtual memory system

2021-10-29 Thread Imad Al Assir via gem5-users
Hello,
I have been looking at the source code of the GPU model for the past few weeks, 
and I had some doubts about the virtual memory system for discrete GPUs (and 
APUs if there are any differences). I will include my questions and partial 
answers below, and I hope you can correct me if I'm wrong. Also, it would be 
great if you can point me to the documentation/source code where each of these 
answers can be found.
1- Where are the page tables located exactly? Who manages them?
I saw that the page tables are emulated (i.e. with the EmulationPageTable 
structure) and that the GPU uses the host x86 page tables. But since there is 
no OS, who manages them and where are they located exactly? In the Ruby memory 
of the CPU?
2- How do page walks happen?
I saw some comment saying that they are not real page walks, and that the CPU's 
x86 page table walkers (PTWs) are used. But how is the translation from the 
page table actually fetched if the walk is not real? Don't the page walkers 
still have to walk the tables in memory?
3- How are page faults handled if there is no OS?
4- What components of the VM hierarchy are already present: IOMMU, TLBs, PWC, 
PTWs?
What I am sure of is that there is a customizable TLB hierarchy and TLB 
coalescers. As for the IOMMU, I was not able to figure out what it consisted 
of. I know that there is a PTW and that the model uses the CPU's x86 page 
tables to do the translations. But how many PTWs are there; GPUs usually 
require multiple PTWs, so is this number customizable? Also, I did not see any 
page walk caches or IOMMU TLBs. Are these not present in the current model? If 
I am wrong, please point me to the source code of each component (and where 
they are instantiated).

I saw that a paper published by AMD in the latest MICRO 
(https://dl.acm.org/doi/10.1145/3466752.3480105) used the GPU model, and that 
they had all of the components mentioned in question 4, so are these publicly 
available to everyone or should I implement them myself?
5- I saw a comment in gpu_compute_driver.cc saying: "TODO: IOMMU and GPUTLBs do 
not seem to correctly support shootdown". Does this mean that TLB shootdown is 
not working at all? And when you say IOMMU, what do you mean exactly (since 
there is no concrete IOMMU component), i.e. what does it consist of?
Sorry for the long e-mail and thank you in advance for your help,
Imad Al Assir
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Re: [gem5-users] GPU

2019-02-12 Thread Gutierrez, Anthony
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  On Behalf Of Krishna Subramanian
Sent: Thursday, February 7, 2019 12:26 PM
To: gem5 Developer List ; gem5-users@gem5.org
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-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] GPU

2019-02-07 Thread Krishna Subramanian
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-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] GPU simulator

2017-04-20 Thread Gutierrez, Anthony
http://gem5.org/GPU_Models

The wiki has some pretty detailed slides from our MICRO 48 tutorial. This page 
also has a tarball of the emulated OpenCL runtime you need to link your kernels 
against, and a link to the CLOC repo, which is the toolchain we use for 
building OpenCL kernels for the APU model. The the CLOC revision is specified 
too.

You should be able to build and link Rodinia, etc., against the emulated 
runtime and run them in the simulator.

From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Trinayan 
Baruah
Sent: Wednesday, April 19, 2017 4:46 PM
To: gem5-users@gem5.org
Subject: [gem5-users] GPU simulator

Hi,

I have a couple of questions about the GPU compute model:

1. Are there any existing benchmark suites that have been ported to work on 
this simulator? If so where can I find them. Or are there any plans to do a 
release soon?

2. Are there plans to update the documentation and give more details on how to 
use this. Considering the fact that current popular gpu simulators are old, a 
lot of people would benefit if this simulator can be used.

Have a lot of expectations from being able to use this simulator in the near 
future. Thank you


Best,
Trinayan
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] GPU simulator

2017-04-19 Thread Trinayan Baruah
Hi,

I have a couple of questions about the GPU compute model:

1. Are there any existing benchmark suites that have been ported to work on
this simulator? If so where can I find them. Or are there any plans to do a
release soon?

2. Are there plans to update the documentation and give more details on how
to use this. Considering the fact that current popular gpu simulators are
old, a lot of people would benefit if this simulator can be used.

Have a lot of expectations from being able to use this simulator in the
near future. Thank you


Best,
Trinayan
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] gpu compute model

2017-02-07 Thread Trinayan Baruah
Hi,

I want to know how to run any benchmark on the amd gpu simulator. I was
only able to run the gpu-hello. Could anyone please provide some help on
how to compile a benchmark (say rodinia or even only a sample example)
correctly to run it on the simulator. It would be of great help. I am
trying to evaluate the gem5 AMD model for my research work and so far have
unable to find much concrete information about it compared to the rest of
gem5. Please help.
Thank you for your help.


Best,
Trinayan
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users