parpool issues on a cluster when called through Torque/PBS qsub command

3 visualizzazioni (ultimi 30 giorni)
I have a matlab script which calls "parpool(10)". When I pass the script to the PBS/Torque scheduler via a qsub command on the head node, the "parpool(10)" command has issues:
unable to resolve the name
com.mathworks.toolbox.distcomp.pmode.SessionInfo.NULL_SESSION_INFO.
Eror in parpool (line 91)
sessionInfo = com.mathworks.toolbox.distcomp.pmode.SessionInfo.NULL_SESSION_INFO.
I have tested the same matlab script successfully two ways:
1) Running the script above directly on the compute node specified in my PBS/torque script (for testing only). I log into the compute node, start matlab, run the matlab script, and start a local parallel pool with parpool(10).
2) Running the script above through qsub but with the "parpool(10)" line removed. The same script successfully calls other matlab toolboxes (verifying the license server via a qsub command)
Unsure if this is a license server configuration issue or something else. The cluster and administrators are new to this. Parpool using a cluster configuration on the head node also is successful. Cluster has both parallel server toolbox and parallel computing toolbox. Thanks for your help!
  2 Commenti
Edric Ellis
Edric Ellis il 5 Apr 2022
That looks like something has gone wrong accessing the Java code needed by Parallel Computing Toolbox. It might be worth checking the startup arguments you're passing to MATLAB - in particular do not use the -nojvm flag (although the error in that case ought to be more informative). I would suggest contacting MathWorks support directly who can help you better with configuration problems like this.
David L.
David L. il 5 Apr 2022
You nailed the answer. Yes, I was using the -nojvm flag. Turned it off and all is working well!
Thank you!!!

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Parallel Computing Fundamentals in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by