Skip to content

Comments

prov/efa: Clean up efa_hmem_info_init_iface()#11903

Open
charlesstoll wants to merge 1 commit intoofiwg:mainfrom
charlesstoll:hmem_info_init_refactor
Open

prov/efa: Clean up efa_hmem_info_init_iface()#11903
charlesstoll wants to merge 1 commit intoofiwg:mainfrom
charlesstoll:hmem_info_init_refactor

Conversation

@charlesstoll
Copy link
Contributor

@charlesstoll charlesstoll commented Feb 19, 2026

Cleans up the logic so that the function is easier to read. Changes multiple nested if/else blocks to a single switch statement.

Cleans up the logic so that the function is easier to read. Changes
multiple nested if/else blocks to a single switch statement.

Signed-off-by: Charles Stoll <stollcha@amazon.com>
@charlesstoll charlesstoll force-pushed the hmem_info_init_refactor branch from 352ea55 to 01bfe20 Compare February 19, 2026 23:45

switch (iface) {
case FI_HMEM_NEURON:
if (!efa_device_support_rdma_read()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump my comment in #11865 (comment). If ofi_hmem_p2p_disabled() is true, we need to warn and fail it early?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar for synapseai

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