Skip to content

Add MacOS support#410

Merged
waltsims merged 23 commits into
masterfrom
darwin-support
Jun 23, 2024
Merged

Add MacOS support#410
waltsims merged 23 commits into
masterfrom
darwin-support

Conversation

@waltsims

Copy link
Copy Markdown
Owner

This PR adds support for M1 Apple processors to k-wave-python. This support only extends to shared memory parallel computations (OMP). CUDA execution is not supported on Apple M1.

This PR does not graciously tell the user that CUDA is not supported and instead throws a file not found when a GPU-accelerated simulation is attempted.

closes #69

@waltsims waltsims requested a review from faridyagubbayli June 11, 2024 17:05
@faridyagubbayli

Copy link
Copy Markdown
Collaborator

A test is failing, seems you need to adapt it to MacOS support.

@codecov

codecov Bot commented Jun 11, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.58%. Comparing base (f647d70) to head (4f5c9c5).
Report is 26 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #410      +/-   ##
==========================================
+ Coverage   71.53%   71.58%   +0.04%     
==========================================
  Files          46       46              
  Lines        6732     6736       +4     
  Branches     1495     1495              
==========================================
+ Hits         4816     4822       +6     
+ Misses       1346     1345       -1     
+ Partials      570      569       -1     
Flag Coverage Δ
3.10 71.79% <100.00%> (+0.04%) ⬆️
3.11 71.79% <100.00%> (+0.04%) ⬆️
3.12 71.79% <100.00%> (+0.04%) ⬆️
3.9 71.56% <100.00%> (+0.04%) ⬆️
macos-latest 71.52% <100.00%> (?)
ubuntu-latest 71.55% <100.00%> (+0.04%) ⬆️
windows-latest 71.57% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@waltsims

Copy link
Copy Markdown
Owner Author

Fixed the tests @faridyagubbayli

1 similar comment
@waltsims

Copy link
Copy Markdown
Owner Author

Fixed the tests @faridyagubbayli

@waltsims

waltsims commented Jun 19, 2024

Copy link
Copy Markdown
Owner Author

It looks like with the new test of the simulation_checks, we caught a failure case on this branch.

  • Pass CI

@faridyagubbayli faridyagubbayli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

So happy to see us testing in MacOS too!

@waltsims waltsims merged commit 41f00ee into master Jun 23, 2024
@waltsims waltsims deleted the darwin-support branch June 23, 2024 15:03
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.

Support Darwin.

2 participants