-
Notifications
You must be signed in to change notification settings - Fork 10
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
Releasing v3.2.0 #55
Releasing v3.2.0 #55
Conversation
…y is added. A patch on `hsynch.c` for supporting the various thread placement policies.
…ad placement policy.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #55 +/- ##
==========================================
- Coverage 85.05% 83.80% -1.26%
==========================================
Files 69 69
Lines 2984 3031 +47
==========================================
+ Hits 2538 2540 +2
- Misses 446 491 +45
|
|
||
if (numa_node_of_cpu(0) == numa_node_of_cpu(ncpus / 2)) { // SMT or HyperThreading detected | ||
uint32_t half_node_size = node_size / 2; | ||
uint32_t ncpus = numa_num_configured_cpus(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already defined in line 133
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaned up. Check c3c8c99.
@@ -191,7 +256,9 @@ inline int32_t synchGetPosixThreadId(void) { | |||
} | |||
|
|||
inline void synchResched(void) { | |||
if (__noop_resched) { | |||
if (__noop_resched && synchGetMachineModel() != INTEL_X86_MACHINE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this check already exists in synchPause
, I guess you have it here to save a function call, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaned-up. Check a97eef.
Co-authored-by: Spiros N. Agathos <agathosspiros@tutanota.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
This release introduces the following changes/improvements:
threadtools.h
API; some basic NUMA functionality is added.hsynch.c
for supporting the various thread placement policies.synchResched
for many multicore machines (e.g., AMD, Intel, etc.).synchGetMachineModel
function in the case of multiple calls.hsynch.c
is substantially improved (more than X2 in many cases).