Timeline for Parallelization of MATLink
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 23, 2020 at 12:11 | history | edited | Szabolcs | CC BY-SA 4.0 |
added 587 characters in body
|
Feb 23, 2020 at 10:28 | vote | accept | DvanHuyssteen | ||
Feb 23, 2020 at 10:27 | comment | added | DvanHuyssteen | That was indeed the problem! Thanks a lot! | |
Feb 23, 2020 at 9:49 | comment | added | Szabolcs |
@DvanHuyssteen Thanks for posting the results. You say "Which yields the following two errors for each of the kernels". Actually this looks like you did not load MATLink on the main kernel before trying to use it on subkernels. You have the ParallelNeeds , but you are missing the Needs . Make sure you use both Needs and ParallelNeeds . Let me know if this was the problem.
|
|
Feb 23, 2020 at 7:33 | comment | added | DvanHuyssteen | I have added these outputs to the original question under the Additional Details section. | |
Feb 22, 2020 at 16:58 | comment | added | Szabolcs |
@DvanHuyssteen There are some misunderstandings here. What you say cannot possibly be true, at least the way I understand it. So, please edit into your answer the output from: FindFile["MATLink`"] , ParallelEvaluate[FindFile["MATLink`"]] , $Path , First@ParallelEvaluate[$Path] . Evaluate these (and nothing else!) as the first four commands immediately after kernel startup.
|
|
Feb 22, 2020 at 8:02 | comment | added | DvanHuyssteen |
Executing ParallelEvaluate[Print@FindFile["MATLink"]] yields a path that is not on the $Path for the parallel kernels. However, it also isn't on the regular $Path and for non parallel computations I am able to use MATLink. Adding the path to each kernel does eliminate the first error messages, but I am still unable to open MATLAB using ParallelNeeds["MATLink "]; ParallelEvaluate[ OpenMATLAB[]; TestFunction = MFunction["TestFunction", "OutputArguments" -> 2];];
|
|
Feb 21, 2020 at 13:54 | comment | added | Szabolcs |
I'm sorry, I'm not well today and can't show you how to effectively set the path on parallel kernels. For now just use ParallelEvaluate to change $Path .
|
|
Feb 21, 2020 at 13:53 | history | answered | Szabolcs | CC BY-SA 4.0 |