How can I fix error in working directory location change when using a parallel cluster?
Ältere Kommentare anzeigen
This issue is a little complicated, I think. So here's the general rundown:
- Local machine, R2014a, Windows 7
- Off-site computing cluster that only accepts batch() commands, some linux distro, requires ssh connection
- Matlab-authored config scripts were provided
- Files for the job are stored on my local machine, not on the server
- When running a script, the files get copied over into a temp directory on the server, but matlab attempts to change the working directory from the server to my personal matlab's current working directory
Here's the output from c=parcluster() for that cluster
>> c=parcluster()
c =
Generic Cluster
Properties:
Profile: ghpcc_remote_r2014a
Modified: false
Host: MYPERSONALPC.uml.edu
NumWorkers: 128
JobStorageLocation: C:\Users\Ronen\AppData\Local\Temp\MdcsDataLocation\umass\ghpcc\R2014a\remote
ClusterMatlabRoot: /share/pkg/matlab/R2014a
OperatingSystem: unix
IndependentSubmitFcn: [1x3 cell]
CommunicatingSubmitFcn: [1x3 cell]
GetJobStateFcn: @profiles.umass.ghpcc.getJobStateFcn
CancelJobFcn: []
CancelTaskFcn: []
DeleteJobFcn: @profiles.umass.ghpcc.deleteJobFcn
DeleteTaskFcn: []
RequiresMathWorksHostedLicensing: false
Associated Jobs:
Number Pending: 0
Number Queued: 0
Number Running: 0
Number Finished: 1
That completed job that is listed errored out with the following:
>> j
j =
Job
Properties:
ID: 8
Type: pool
Username: Ronen
State: finished
SubmitTime: Tue May 12 12:57:16 EDT 2015
StartTime: Tue May 12 12:59:07 EDT 2015
Running Duration: 0 days 0h 0m 10s
NumWorkersRange: [11 11]
AutoAttachFiles: true
Auto Attached Files: List files
AttachedFiles: {}
AdditionalPaths: {}
Associated Tasks:
Number Pending: 0
Number Running: 0
Number Finished: 11
Task ID of Errors: [1]
Task with properties:
ID: 1
State: finished
Function: @parallel.internal.cluster.executeScript
Parent: Job 8
StartTime: Tue May 12 12:59:08 EDT 2015
Running Duration: 0 days 0h 0m 7s
ErrorIdentifier: MATLAB:undefinedVarOrClass
ErrorMessage: Undefined variable "tester" or class "tester.m".
>> diary(j)
--- Start Diary ---
Warning: Unable to change to requested folder: 'C:\Users\Ronen\Google Drive\School\Masters Thesis 22.743\Spring 2015\Optimization'. Current folder is: '/home/myserverfolder'.
Reason: Cannot CD to C:\Users\Ronen\Google Drive\School\Masters Thesis 22.743\Spring 2015\Optimization (Name is nonexistent or not a directory).
--- End Diary ---
1 Kommentar
Ronen Yudzinsky
am 15 Mai 2015
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Parallel Computing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!