-
Notifications
You must be signed in to change notification settings - Fork 370
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
Added ofi_gettime interfaces to support CLOCK_REALTIME #10050
Conversation
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.
Please reformat the commit message so that:
(1) The first line (title line) is not too long (<= 72);
(2) Remove the brackets from [src/common]:
, or further shorten it to common:
or core:
.
Also the prototypes of the new functions need to be added to include/ofi.h
.
@@ -303,7 +303,23 @@ uint32_t ofi_generate_seed(void) | |||
|
|||
return rand_seed; | |||
} | |||
uint64_t ofi_get_realtime_ns(void) |
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.
Add a line before this.
uint64_t ofi_get_realtime_ms(void) | ||
{ | ||
return ofi_get_realtime_ns() / 1000000; | ||
} |
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.
Add a line after this.
dfdfc3e
to
78a7a1b
Compare
123e5ca
to
854a469
Compare
We don't need the brackets (
|
|
854a469
to
585547f
Compare
Added new interfaces to support pthread_cond_timedwait which use CLOCK_REALTIME.In general CLOCK_MONOTONIC is preferred and in use by several providers, therefore new interfaces are added to support the special case of pthread apis. [prov/sockets]: changes made to use ofi_get_realtime instead of ofi_get_time before ofi_wait_cond. Signed-off-by: Nikhil Nanal <nikhil.nanal@intel.com>
585547f
to
192eaed
Compare
[src/common]: added ofi_get_realtime intefaces to support pthread_cond_timedwait which use CLOCK_REALTIME.In general CLOCK_MONOTONIC is preferred and in use by several providers, therefore new interfaces are added to support the special case of pthread apis.(ref #9614 )
[prov/sockets]: changes made to use ofi_get_realtime instead of ofi_get_time before ofi_wait_cond.
Signed-of-by: Nikhil Nanal nikhil.nanal@intel.com