mgpusim icon indicating copy to clipboard operation
mgpusim copied to clipboard

unified-gpu and unified-memory flags

Open Soilorian opened this issue 1 year ago • 1 comments

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!

Soilorian avatar Oct 29 '24 21:10 Soilorian

-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?

syifan avatar Oct 30 '24 13:10 syifan