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

feat: support agent on Apple Silicon without Rosetta #3328

Conversation

mpkouznetsov
Copy link
Contributor

Description

Agent exits on Apple with M1 chip because of an error when obtaining the CPU info using gopsutil ( shirou/gopsutil#1000 ). This PR works around the error by providing placeholder values for brand and UUID.

Test Plan

Start Agent successfully on M1 Mac.

Commentary (optional)

We may choose to wait for the fix to gopsutil or we can merge this fix now and replace it with an upgrade of gopsutil when a fix becomes available there.

Checklist

  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

@mpkouznetsov mpkouznetsov requested a review from ioga December 15, 2021 23:24
@cla-bot cla-bot bot added the cla-signed label Dec 15, 2021
@netlify
Copy link

netlify bot commented Dec 15, 2021

✔️ Deploy Preview for determined-ui ready!

🔨 Explore the source changes: 8a7ae1b

🔍 Inspect the deploy log: https://app.netlify.com/sites/determined-ui/deploys/61baaa2fd91b130008871d3b

😎 Browse the preview: https://deploy-preview-3328--determined-ui.netlify.app/

@mpkouznetsov mpkouznetsov marked this pull request as ready for review December 15, 2021 23:25
Copy link
Contributor

@ioga ioga left a comment

Choose a reason for hiding this comment

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

lgtm, a small comment on the future-proofed naming.
also I'd say this PR is probably a feat: support agent on Apple Silicon without Rosetta, not a chore.

@mpkouznetsov mpkouznetsov changed the title chore: work around cpu info retrieval error on M1 feat: support agent on Apple Silicon without Rosetta Dec 16, 2021
@mpkouznetsov mpkouznetsov merged commit 377560e into determined-ai:master Dec 16, 2021
@mpkouznetsov mpkouznetsov deleted the work-around-cpu-detection-failure-on-m1 branch December 16, 2021 16:53
@dannysauer dannysauer modified the milestones: 0.0.102, 0.17.6 Feb 6, 2024
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