Skip to content

GIN: implement reset-without-zeroing for signals and counters#2155

Open
bhasunit wants to merge 1 commit intoNVIDIA:v2.30u1from
bhasunit:signal_counter_reset_v2.30u1
Open

GIN: implement reset-without-zeroing for signals and counters#2155
bhasunit wants to merge 1 commit intoNVIDIA:v2.30u1from
bhasunit:signal_counter_reset_v2.30u1

Conversation

@bhasunit
Copy link
Copy Markdown

@bhasunit bhasunit commented May 3, 2026

Description

Replace signal/counter reset-by-zeroing in GIN with an offset-based scheme.
Instead of writing zero to the underlying atomic, resetSignal and
resetCounter snapshot the current value into a per-context offset
array. Subsequent reads and waits subtract the offset, making the
signal/counter appear reset without modifying the NIC-visible value.

Related Issues

Original PR against 2.30 #2093

Changes & Impact

None

Performance Impact

Improved performance on p5en with GIN.

Replace signal/counter reset-by-zeroing with an offset-based scheme.
Instead of writing zero to the underlying atomic, resetSignal and
resetCounter snapshot the current value into a per-context offset
array. Subsequent reads and waits subtract the offset, making the
signal/counter appear reset without modifying the NIC-visible value.

Signed-off-by: Sunita Bhaskaran <bhasunit@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant