Skip to content

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

Open
bhasunit wants to merge 1 commit intoNVIDIA:v2.30from
bhasunit:signal_counter_reset
Open

GIN: implement reset-without-zeroing for signals and counters#2093
bhasunit wants to merge 1 commit intoNVIDIA:v2.30from
bhasunit:signal_counter_reset

Conversation

@bhasunit
Copy link
Copy Markdown

@bhasunit bhasunit commented Apr 6, 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

None

Performance Impact

Improved performance on p5en with GIN.

@kgioioso kgioioso self-requested a review April 6, 2026 19:49
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>
@bhasunit bhasunit force-pushed the signal_counter_reset branch from 45379e7 to 8eb1cae Compare April 6, 2026 20:24
@kgioioso
Copy link
Copy Markdown
Contributor

kgioioso commented Apr 6, 2026

/mirror

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.

2 participants