sarchlab / mgpusim

A highly-flexible GPU simulator for AMD GPUs.
MIT License
95 stars 22 forks source link

unified-gpu and unified-memory flags #107

Open Soilorian opened 3 weeks ago

Soilorian commented 3 weeks ago

Hello Mr. Sun,

I hope you’re doing well.

I’ve been working with the simulator and encountered some confusion while testing the flags. I’m having trouble fully understanding their specific functions. Could you explain in a bit more detail what each flag does and what the effect is when both are used together?

During my tests, I monitored the page migrations and the GPU count throughout execution. When I ran the command below with both flags enabled:

./fir -timing -use-unified-memory -unified-gpus=1,2,3,4

I noticed that there were no page migrations, and the GPU count registered as only 1.

Thank you for your help!

syifan commented 3 weeks ago

-unified-gpus allows the memory to be allocated evenly on these GPUs and threads be distributed evenly on these GPUs. -use-unified-memory allows page migration. There may be no migration if the pages are perfectly aligned. I need more information about how you noticed no page migration and GPU count registered as 1. At which line, which variable did you get your observation?