Skip to content

Single-core multi-thread simulation in gem5 SE mode with O3CPU #1959

Answered by powerjg
calofmijuck asked this question in Q&A
Discussion options

You must be logged in to vote

The simple answer is "no". There is no operating system to do context switches in SE mode, so there's no way to "overcommit" the number of threads on a smaller number of cores. If you want to do this, you need to run a full OS.

Edit: Let me add that you need to have nthreads + 1 cores to get OpenMP to work since OpenMP uses a fork-join parallel model.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@calofmijuck
Comment options

@powerjg
Comment options

Answer selected by calofmijuck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants