Skip to content

Fix two gpu and cpu tests for mac#920

Merged
benoit-cty merged 4 commits into
mlco2:masterfrom
cianc:test/fix-gpu-and-cpu-tests-for-mac
Sep 1, 2025
Merged

Fix two gpu and cpu tests for mac#920
benoit-cty merged 4 commits into
mlco2:masterfrom
cianc:test/fix-gpu-and-cpu-tests-for-mac

Conversation

@cianc

@cianc cianc commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

Description

Fixing two tests that fail on Mac:

  1. tests/test_cpu_load.py - allow for AppleSiliconChip CPU type.
  2. tests/test_unsupported_gpu.py - don't bother running this on Mac
    since NVML is not supported and the test becomes flaky because
    sometimes the AppleSiliconChip GPU power consumption is close
    enough to zero to pass, and sometimes it isn't.

Related Issue

Please link to the issue this PR resolves: [issue #]

Motivation and Context

I'm attempting to work on #873 on a Mac M1 and these tests are failing for me.

How Has This Been Tested?

NA: this is purely a change to tests.

Screenshots (if appropriate):

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

Go over all the following points, and put an x in all the boxes that apply.

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@cianc cianc marked this pull request as ready for review August 27, 2025 17:12
@cianc

cianc commented Aug 27, 2025

Copy link
Copy Markdown
Contributor Author

Sorry, just saw that contributing.md recommends opening draft PRs.

@cianc cianc marked this pull request as draft August 27, 2025 21:00

@benoit-cty benoit-cty left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks !
If you think your PR is ready and you will not make changes, no need to leave in draft.

@cianc cianc marked this pull request as ready for review August 28, 2025 14:43
@cianc

cianc commented Aug 30, 2025

Copy link
Copy Markdown
Contributor Author

@benoit-cty can this be merged or should I be doing something else?

1. tests/test_cpu_load.py - allow for `AppleSiliconChip` CPU type.
1. tests/test_unsupported_gpu.py - don't bother running this on Mac
   since NVML is not supported and the test becomes flaky becomes
   sometimes the AppleSiliconChip GPU power consumption is close
   enough to zero to pass, and sometimes it isn't.
@benoit-cty benoit-cty force-pushed the test/fix-gpu-and-cpu-tests-for-mac branch from 104bf45 to 6220f31 Compare September 1, 2025 08:36
@benoit-cty benoit-cty merged commit 014e239 into mlco2:master Sep 1, 2025
5 checks passed
@benoit-cty

Copy link
Copy Markdown
Contributor

I was not sure you have finished the PR. It's merged, thank you 👍

@cianc

cianc commented Sep 1, 2025

Copy link
Copy Markdown
Contributor Author

Thank you Benoit!

@cianc cianc deleted the test/fix-gpu-and-cpu-tests-for-mac branch September 1, 2025 12:57
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