Skip to content

UCP/EP: Exclude debug endpoint flags from release builds#11515

Open
tvegas1 wants to merge 3 commits into
openucx:masterfrom
tvegas1:ucp_debug_flags
Open

UCP/EP: Exclude debug endpoint flags from release builds#11515
tvegas1 wants to merge 3 commits into
openucx:masterfrom
tvegas1:ucp_debug_flags

Conversation

@tvegas1
Copy link
Copy Markdown
Contributor

@tvegas1 tvegas1 commented Jun 3, 2026

What?

Define debug-only EP flags only when assertions are enabled and update them through a debug-only helper.

Why?

Release EP flags are 16-bit, so debug bits 16+ should not be used there or anywhere else.

How?

Make debug flag names assertion-only and compile their updates to no-ops in release builds.

@tvegas1 tvegas1 force-pushed the ucp_debug_flags branch from b9443dd to f3e3f3c Compare June 3, 2026 07:49
@yosefe
Copy link
Copy Markdown
Member

yosefe commented Jun 4, 2026

Can we instead define the debug flags to 0 in release build?

@tvegas1
Copy link
Copy Markdown
Contributor Author

tvegas1 commented Jun 4, 2026

Can we instead define the debug flags to 0 in release build?

Proposal is to prevent using them erroneously on release build completely. They are already inoperative on release build, as they are above the storage 16-bit limit. Setting them to zero would not fix the erroneous usage afaict.

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