verilator/test_regress
Yangyu Chen 80088caa13 VlThreadPool: Improve too many threads check logic
As the thread pool is initialized for `m_threads - 1` workers, when
`m_threads` equals `the number of processors`, the `num_threads` will be
equal to `the number of processors - 1`, which is not needed to set
affinity.

This also improves backward compatibility. As mentioned in issue #6826,
when the new context API is not used, the default thread pool is created
with the number of workers equal to `the number of processors - 1`. In
this case, when using `--threads n` with `n` less than the number of
processors, the thread pool is still created with the `number of
processors - 1` workers, so we will even set wrong affinity, and let
some SMTs on the same core be used for emulator model threads, which
degrades performance. With this fix, the affinity will not be set in
this case.

Signed-off-by: Yangyu Chen <cyy@cyyself.name>
2025-12-19 21:57:08 +08:00
..
t VlThreadPool: Improve too many threads check logic 2025-12-19 21:57:08 +08:00
.gdbinit
.gitignore
CMakeLists.txt
Makefile Internals: Run format-make 2025-11-01 14:12:47 -04:00
Makefile_obj
driver.py Tests: Remove old benchmarksim, should use rtlmeter instead 2025-12-16 21:17:27 -05:00
input.vc
input.xsim.vc