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

Enable new multithreading support in Verilator 4 #169

Open
jbush001 opened this issue Nov 30, 2018 · 5 comments
Open

Enable new multithreading support in Verilator 4 #169

jbush001 opened this issue Nov 30, 2018 · 5 comments
Labels

Comments

@jbush001
Copy link
Owner

jbush001 commented Nov 30, 2018

Use --threads flag, need to test for correct operation, produce profile results to characterize speedup.

@jbush001 jbush001 added the tools label Nov 30, 2018
@jbush001
Copy link
Owner Author

jbush001 commented Dec 6, 2018

Could use the ProcessorCount cmake module to automatically determine number of threads: https://cmake.org/cmake/help/latest/module/ProcessorCount.html

@jbush001
Copy link
Owner Author

jbush001 commented Dec 9, 2018

The CMakeLists.txt file in hardware would also need be modified to update the minimum supported version to one with multithreading support.

jbush001 added a commit that referenced this issue Dec 10, 2018
@jbush001
Copy link
Owner Author

jbush001 commented Dec 10, 2018

Need to do some performance measurements and regression tests before enabling by default.

@jbush001
Copy link
Owner Author

Running a randomized cosimulation test (3.1 GHz Intel Core i7, 2 cores, 4 threads)

1 thread - 18s
2 threads - 16s
4 threads - 27s

@jbush001
Copy link
Owner Author

ProcessorCount returns 4 on my machine, even though system info reports two cores. This is presumably the number of threads. Using this value is slower than 1 thread.

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

No branches or pull requests

1 participant