-
Notifications
You must be signed in to change notification settings - Fork 164
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
Brainstorm: Apple silicon support #663
Conversation
Since the only difference between the |
Like that or would you change the version for everyone? I guess most users don't need the new mex. actually shoudn't we remove the mex from https://github.com/brainstorm-tools/brainstorm3/tree/master/external/spm ? |
The switch option should be ok. Not only saves the 6 MB for the Apple silicon binaries, but also saves the user of downloading from GitHub which can be slow, SPM is around 200 MB. I hope the zip in their page get updated at some point. Regarding the duplicated binaries, the opposite approach will be done (later push by me also in this PR):
P.S. Adding the small bugfix for not existent plugin process directly in |
4a573f0
to
dbf59e3
Compare
Thanks. let me know if i can help. Maybe we should identify the toolbox that doesn't have new mex yet like iso2mesh, Mcxlab, and put a warning or something indicating that they cannot be used on ARM mac with matlab >2023b. |
These things are needed:
Edit: It is quite a lot what is not supported yet: |
it might seem like a lot but this is actually not really impacting us as its mainly packages for Simulink or specific decide like Arduino boards. Here is an incomplete list of plugins that are not compatible yet
Maybe the generic warning is enough |
11-dec-2023: This is what I have checked so far. Parenthesis indicate not supported due to dependency ❓ 'adi-sdk' |
For brainentropy, if fminunc is available, then it's already working as part of the optimisation toolbox. Edit; in case its needed, I recompiled it: multifunkim/best-brainstorm#15 |
Added an error message for the Plugins that have been already tested. As testing exhaustively all plugins may take a long time, due to lack of HW to test on my side. I think we should merge this PR for the moment and update the list (in f72d0a6) with future tests and reports from users. What do you think? |
Also added an error when loading an already downloaded plugin. I'll try to compile them slowly first with iso2mesh and mxclab. I agree that we can merge it like that. |
update. I was able to compile iso2mesh today: fangq/iso2mesh#75 Some tests are needed but when this is merged; we should be able to check that from our todo list :) |
This PR is here to use the maint branch of SPM when using an ARM Mac (which requires new Mex files) and fix a small bug
Note: this cannot be merged as is as brainstorm doesn't really like that SPM is in the folder called spm12-maint. But this works after adding SPM manually to the path: addpath('/Users/edelaire1/.brainstorm/plugins/spm12/spm12-maint')
Edit: actually would that be ok with you if we directly pull from the main branch of SPM: https://github.com/spm/spm ?