Global variables when doing Matlab array job in a cluster
Afficher commentaires plus anciens
I am running a Matlab array job in the cluster of my university. Specifically, I run a script f.m in parallel several times using the command qsub from the terminal. The parallel jobs may be done in different nodes, depending on the availability.
The script f.m defines some global variables and calls some other functions which use those global variables. I am aware that global variables are not recommended but in my setting they are the easiest way to perform certain tasks.
Question: Each parallel job should use "its own" global variables. Is it correct to say that the global variables do not interfere across parallel jobs despite having the same names?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Third-Party Cluster Configuration dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!