Matlab on AWS doesn't seem to recognize (@)Class-folders
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I recently started working with the Parallel Computing Toolbox and now I want to extend the performance by using the AmazonWebServices. For simple scripts this works fine already.
Now I want to segment some neuroimaging data using the SPM12-toolbox. Parallel-Computing on my local computer doesn't cause any problems, but when use AWS, I get the following Error:
"An UndefinedFunction error was thrown on the workers for 'list'. This might be because the file containing 'list' is not accessible on the workers. Use addAttachedFiles(pool, files) to specify the required files to be attached. For more information see the documentation for 'parallel.Pool/addAttachedFiles'.
... Caused by: Undefined function 'list' for input arguments of type 'cell'."
The function "list" is located in a class folder "@foldername". When I copy "list" into a path folder, "list" is recognized and I get an error for the function "match", which is located in another class folder. However, when I put every function into a single path folder SPM12 crashes (they must have had a reason to do this). So that doesn't seem to be a solution.
addAttachedFiles(gcp,{'C:\...\@foldername\list.m'}) doesn't add "list" to AWS either.
Does anybody know a workaround for this problem?
Best regards, Sander
0 comentarios
Respuestas (2)
Philip Borghesani
el 17 de Oct. de 2018
You must add the complete @foldername folder. The clue here is Caused by: Undefined function 'list' for input arguments of type 'cell'." Your class was not correctly copied to the worker machines (most likely because the constructor was not found) and was converted to a structure.
2 comentarios
Sander Groeneweg
el 18 de Oct. de 2018
Editada: Sander Groeneweg
el 18 de Oct. de 2018
Oli_ee
el 18 de Dic. de 2022
Hi, Philip, have you got any solution for this problem. I got the same error message today, and if you have solved the problem, it will be greatly apprecitated that you may share your solution. Thankyou.
Oli_ee
el 18 de Dic. de 2022
I occurently found that if I shut downd the parralle pool first, and then run the draft, it was ok.
0 comentarios
Ver también
Categorías
Más información sobre Parallel Computing Fundamentals en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!