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

How is MCR version chosen based on SPM12 #393

Closed
JohannesWiesner opened this issue Apr 8, 2021 · 5 comments
Closed

How is MCR version chosen based on SPM12 #393

JohannesWiesner opened this issue Apr 8, 2021 · 5 comments

Comments

@JohannesWiesner
Copy link

I installed SPM12 (v7771) using --spm12 version=r7771. In the README it says "Note: Matlab Compiler Runtime is installed when SPM12 is installed." but which MCR version is installed given a specified SPM version? Apparently --spm12 version=r7771 comes with matlabmcr-2010a (which seems to be the default)? Does switching over to a more recent version of MCR using --matlabmcr give me any advantages?

@kaczmarj
Copy link
Collaborator

kaczmarj commented Apr 8, 2021

good question. spm12 is compiled (not sure if that is the right term) for different versions of the matlab compiler runtime. the MCR version is part of the spm12 url. spm12 versions are also compiled for other MCR versions, but we decided to stick with MCR 2010a because all of the recent spm12 versions seem to support it. that makes installation simpler.

i'm not sure if a more recent MCR provides advantages...

@JohannesWiesner
Copy link
Author

Ah I see, thanks for the link! So, if I got that right --spm12 and --matlabmcr are independent commands? Regardless of the SPM12 version that I chose I would always get the one with MCR2010a? Or could I say for example give me --spm12 version=r7771 with --matlabmcr version=2013a which overwrites the default 2010a? In other words, are all combinations of SPM and MCR versions valid?

In case the latter is true this could possibly be added? "Note: If not otherwise specified, Matlab Compiler Runtime (2010a) is installed when SPM12 is installed".

Would be interesting to know if there are any advantages from using a more recent version, I mean 11 years are something, right? :D

@kaczmarj
Copy link
Collaborator

kaczmarj commented Apr 8, 2021

yes, --spm12 and --matlabmcr are independent commands. they do not "know" about each other, so using --matlabmcr will not overwrite the mcr that --spm12 uses. also, a different spm12 download would have to be used for a different mcr, because spm12 is compiled for specific mcr versions.

not all combinations combinations of spm12 and mcr are valid... i made a new issue #394 to consider adding the valid spm12-mcr version pairs.

@gllmflndn
Copy link
Contributor

The versions of the Compiler and the Runtime have to match for a given compiled application. Compiled SPM12 started with R2010a and that version was kept such that an update of SPM didn't require an update of the Runtime. With this version it is also possible to create a single compiled application for all operating systems, which is handy. That said, I agree that R2010a is very old now and future versions of standalone SPM will use a more recent version.

There are unofficial compiled SPM12 here: r7771 with R2019b and dev with R2020a.

@djarecka
Copy link
Member

I think we can close it now and just keep #394
feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants