Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unified-gpu and unified-memory flags #107

Open
Soilorian opened this issue Oct 29, 2024 · 1 comment
Open

unified-gpu and unified-memory flags #107

Soilorian opened this issue Oct 29, 2024 · 1 comment

Comments

@Soilorian
Copy link
Contributor

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
Copy link
Contributor

syifan commented Oct 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants