Skip to content
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

fix hostname -I for macOS #6497 #6990

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

fitzjalen
Copy link

@fitzjalen fitzjalen commented Feb 2, 2025

BUGFIX for Apple Silicon hostname #6497

BUGFIX for Apple Silicon hostname
@rockerBOO
Copy link

I'm having this same issue on arch linux.

$ hostname -I
hostname: invalid option -- 'I'
$ hostname -i
127.0.0.1
>>> import socket
>>> socket.gethostbyname(socket.gethostname())
'127.0.0.1'

Thank you

hostname_cmd = shlex.split("hostname -I")
result = subprocess.check_output(hostname_cmd)
master_addr = result.decode('utf-8').split()[0]
try:
Copy link
Collaborator

Choose a reason for hiding this comment

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

@fitzjalen - could you also run the pre-commit formatter in order to meet the Formatting requirements?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, sure

Copy link
Author

Choose a reason for hiding this comment

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

@loadams done. New commit pushed with pre-commit reqs (4d11f93)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks @fitzjalen - it looks like you'll need to use the new DCO to sign off on your commits. If you click the details button below it will give you information on how to rebase and fix this, thanks for your PR!

fitzjalen and others added 10 commits February 5, 2025 09:42
NVIDIA Blackwell GPU generation has number 10. The SM code and
architecture should be `100`, but the current code generates `1.`,
because it expects a 2 characters string.

This change modifies the logic to consider it as a string that contains
a `.`, hence splits the string and uses the array of strings.

Signed-off-by: Fabien Dupont <[email protected]>
Signed-off-by: Olatunji Ruwase <[email protected]>
Signed-off-by: Logan Adams <[email protected]>
Signed-off-by: Fabien Dupont <[email protected]>
Co-authored-by: Fabien Dupont <[email protected]>
)

1. update intel oneAPI basekit to 2025.0
2. update torch/ipex/oneccl to 2.5
Same as [this PR](deepspeedai#6922).
[affeb88](deepspeedai@affeb88)
I noticed the CI updated the DCO check recently. Using the suggested
rebase method for sign-off would reintroduce many conflicts, so I opted
for a squash merge with sign-off instead. thanks: )

Signed-off-by: inkcherry <[email protected]>
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.

7 participants