Skip to content

Enable Anvil Infiniband interface #444

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

Merged
merged 6 commits into from
May 27, 2025
Merged

Enable Anvil Infiniband interface #444

merged 6 commits into from
May 27, 2025

Conversation

AymenFJA
Copy link
Contributor

@AymenFJA AymenFJA commented Apr 1, 2025

addresses #443

Copy link

codecov bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.99%. Comparing base (74cf4d2) to head (3d5430f).
Report is 7 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #444      +/-   ##
==========================================
+ Coverage   61.80%   61.99%   +0.19%     
==========================================
  Files          62       62              
  Lines        7134     7133       -1     
==========================================
+ Hits         4409     4422      +13     
+ Misses       2725     2711      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -56,7 +56,7 @@ def get_hostip(req=None, log=None):

white_list = [
'ens1f1', # amarel
# 'ib0', # infiniband
'ib0', # infiniband
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add comment here that it is for Anvil, and that it doesn't fit Amarel (based on comments for previous commits here). Eventially these interfaces will be moved into resource configuration files

@andre-merzky
Copy link
Member

I added that comment - but indeed, that might break Amarel. I opened #445 for a cleaner solution. Either way, I leave it to your judgement is this should be merged (i.e., what machine you want to break :-P )

@andre-merzky
Copy link
Member

Now also fixes #445

req = as_list(req)

white_list = [
'ens1f1', # amarel
# 'ib0', # infiniband
'ib0', # infiniband # NOTE: unusable on Amarel, use `req` there!
Copy link
Collaborator

Choose a reason for hiding this comment

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

+ add comment that it is for anvil

Copy link
Collaborator

@mtitov mtitov Apr 2, 2025

Choose a reason for hiding this comment

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

and also, for amarel the first one ('ens1f1') should be picked, so not sure that req is require for amarel

Copy link
Member

Choose a reason for hiding this comment

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

Oh, then I misunderstood your request above. Why was ib0 disabled then? But either way, I think that comment should better go to the amarel / anvil resource configs, and RU should stay clear of machine specific settings as much as possible. Would that work for you?

Copy link
Collaborator

Choose a reason for hiding this comment

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

keeping comments here before adding corresponding parameters (iface) within resource configurations

@mtitov
Copy link
Collaborator

mtitov commented Apr 2, 2025

@andre-merzky I've added comments above

@andre-merzky andre-merzky requested review from mtitov and removed request for andre-merzky April 3, 2025 07:07
@andre-merzky andre-merzky changed the title Enable Anvil Infinitband interface Enable Anvil Infiniband interface May 9, 2025
@AymenFJA
Copy link
Contributor Author

AymenFJA commented May 9, 2025

@andre-merzky @mtitov, seeing that this PR is required by our IMPRESS runs on Anvil, should we consider this done and ready to be merged?

@andre-merzky
Copy link
Member

TODO AM: remove default config entry for iface

@andre-merzky
Copy link
Member

@AymenFJA : @mtitov will go over this topic once more and we'll make a decision early next week.

Copy link
Collaborator

@mtitov mtitov left a comment

Choose a reason for hiding this comment

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

LGTM!

p.s., Andre convinced me regarding this approach - DefaultConfig is a Singleton, thus its instance is created once, and it allows to share it between layers (RP and RU) - creating an instance within RP layer with the corresponding iface, then will be available within RU at get_hostip method

@mtitov
Copy link
Collaborator

mtitov commented May 19, 2025

@andre-merzky ping

@andre-merzky andre-merzky merged commit e57d3c0 into devel May 27, 2025
9 checks passed
@andre-merzky andre-merzky deleted the fix/anvil_netface branch May 27, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants