Answered by:
MATLAB

Question
-
Hello everybody,
Could you tell me is it possible to use MATLAB under a
cluster based on Windows Compute Cluster Server without
"Distributed Computing Toolbox"?
If someone did it?
I tried matlab -r "NameOfFile" and cluster told me that job
was finished but it didn't generate output file.
Best wishes NickSunday, February 24, 2008 8:46 AM
Answers
-
I tried to reply to you several times before today, but the post doesn't show up.
By looking at the output of the "task view" command: the command-line has been truncated: is matlab -r "starup" the whole command line? This has probably been caused by the nested quotes. To circumvent that, can you put the entire command line into a batch file, say foo.bat:
matlab -r "startup; exit"
then submit foo.bat as the commandline.
let me know how it goes.
-Ming
- Proposed as answer by Josh BarnardModerator Monday, June 23, 2008 11:35 PM
- Marked as answer by Josh BarnardModerator Wednesday, June 25, 2008 6:22 PM
Monday, March 24, 2008 6:21 PM -
Nick,
I investigated this very issue last year, albeit on Linux. Our license came with a compiler. MATLAB representatives told us that compiled executables are free of the licensing strictures. IIRC, we could run many instances of the compiled program once we figured out what environmental variables to set and/or which shell scripts we had to modify.
j- Proposed as answer by Josh BarnardModerator Monday, June 23, 2008 11:35 PM
- Marked as answer by Josh BarnardModerator Wednesday, June 25, 2008 6:23 PM
Friday, April 25, 2008 12:20 AM
All replies
-
Hi Nick,
Can I ask a few clarification quesitons?
1. Which version of CCS are you using, is it version 1?
2. Do you use the "job submit" command or the Job Manager UI to submit the job? Can you tell me the whole command line?
thanks,
-Ming
Tuesday, February 26, 2008 8:47 PM -
Hi Ming,
1) I\ve downloaded my CCS from microsoft.com one month ago, so I think it is the latest one.
2) When I try to use matlab -r "maneoffile; exit", I get output in the same directory: documents and settings\administrator\, but when I tried to use it unted cluster command line I haven't got the output, but I filled in output directory.
3) I've tried to use:
job submit /scheduler:headnode /user:CLUSTERDOMAIN\ClusterUserName /jobname:TestJob /numprocessors:4-6 /workdir:\\headnode\ClusterUserHomeDir /stdout:results.dat mpiexec batchpi.exe
and Job Manager filling in "matlab -r "maneoffile; exit""
best wishes, Nick
Wednesday, February 27, 2008 10:46 AM -
Hi Nick,
The command:
job submit /scheduler:headnode /user:CLUSTERDOMAIN\ClusterUserName /jobname:TestJob /numprocessors:4-6 /workdir:\\headnode\ClusterUserHomeDir /stdout:results.dat mpiexec batchpi.exe
will run batchpi.exe and not the matlab command, are you using the following command line?
job submit /scheduler:headnode /user:CLUSTERDOMAIN\ClusterUserName /jobname:TestJob /numprocessors:4-6 /workdir:\\headnode\ClusterUserHomeDir /stdout:results.dat matlab -r "maneoffine;exit"
When you say "and Job Manager filling in "matlab -r "maneoffile; exit", what do you mean?
thanks,
-Ming
Thursday, February 28, 2008 8:47 PM -
Hi, Ming
Sorry, I did a mistake. I wrote matlab instead batchpi.exe.
I meen that I fill in "matlab -r "NameOfFile; exit"" in the field "Command line" in "Task" in Job Manager. It is the same with
job submit /scheduler:headnode /user:CLUSTERDOMAIN\ClusterUserName /jobname:TestJob /numprocessors:1 /workdir:\\headnode\ClusterUserHomeDir /stdout:results.dat matlab -r "nameoffile;exit"
But it doesn't work... I don't get any results
NickMonday, March 3, 2008 9:48 PM -
Can you provide the output of the following commands:
1. job view JOBID
where JOBID is the numeric ID you get from the output of the "job submit" command
2. task view JOBID
3. node list
thanks,
-Ming
Wednesday, March 5, 2008 1:03 AM -
Hello Ming,
Excuse me I didn't understand exactly the question.
1) JOBID - a job gets it automatically the same with TASKID.2) Node list – I just tried to send my job for one machine, I filled in the name of this machine
Nick
Wednesday, March 5, 2008 3:37 PM -
Nick,
Can you type the following commands:
"job view JOBID"
"task view JOBID"
replace JOBID with the numeric value you get when submitting the job. For example:
"job view 43"
"task view 43"
and
"node list"
thanks,
-Ming
Friday, March 7, 2008 8:15 AM -
Hello Ming.
I've done it:
JOB VIEW ID:
Job ID : 5
Status : Finished
Name : matlab
Submitted by : DOMAIN\head
Number of processors : 1-1
Allocated nodes : CLUSTER
Submit time : 2/21/2008 7:38:29 PM
Start time : 2/21/2008 7:38:29 PM
End time : 2/21/2008 7:38:29 PM
Number of tasks : 1
Notsubmitted : 0
Queued : 0
Running : 0
Finished : 1
Failed : 0
Cancelled : 0TASK VIEW ID:
Task ID : 5.1
Status : Finished
Name : My Task
Command line : matlab -r "startup"
Allocated nodes : CLUSTER
Exit code : 0
Submit time : 2/21/2008 7:38:29 PM
Start time : 2/21/2008 7:38:29 PM
End time : 2/21/2008 7:38:29 PM
Kernel time : 0.046
User time : 0.015
Working set : 4908 KBNODE LIST:
NODE_NAME STATUS MAX RUN IDLE
CLUSTER READY 2 0 2Best wishes, Nick
Monday, March 10, 2008 7:56 AM -
By looking at the task view:
TASK VIEW ID:
Task ID : 5.1
Status : Finished
Name : My Task
Command line : matlab -r "startup"
Allocated nodes : CLUSTER
Exit code : 0
Submit time : 2/21/2008 7:38:29 PM
Start time : 2/21/2008 7:38:29 PM
End time : 2/21/2008 7:38:29 PM
Kernel time : 0.046
User time : 0.015
Working set : 4908 KBI seems that the command line gets truncated. Can you put the whole command line into a batch file, say foo.bat:
matlab -r "startup; exit"
Make sure that foo.bat is in the working directory: \\headnode\ClusterUserHomeDir
and then submit foo.bat as follows:
job submit /scheduler:headnode /user:CLUSTERDOMAIN\ClusterUserName /jobname:TestJob /numprocessors:4-6 /workdir:\\headnode\ClusterUserHomeDir /stdout:results.dat foo.bat
Let me know how it goes.
-Ming
Saturday, March 22, 2008 12:12 AM -
I tried to reply to you several times before today, but the post doesn't show up.
By looking at the output of the "task view" command: the command-line has been truncated: is matlab -r "starup" the whole command line? This has probably been caused by the nested quotes. To circumvent that, can you put the entire command line into a batch file, say foo.bat:
matlab -r "startup; exit"
then submit foo.bat as the commandline.
let me know how it goes.
-Ming
- Proposed as answer by Josh BarnardModerator Monday, June 23, 2008 11:35 PM
- Marked as answer by Josh BarnardModerator Wednesday, June 25, 2008 6:22 PM
Monday, March 24, 2008 6:21 PM -
Nick,
I investigated this very issue last year, albeit on Linux. Our license came with a compiler. MATLAB representatives told us that compiled executables are free of the licensing strictures. IIRC, we could run many instances of the compiled program once we figured out what environmental variables to set and/or which shell scripts we had to modify.
j- Proposed as answer by Josh BarnardModerator Monday, June 23, 2008 11:35 PM
- Marked as answer by Josh BarnardModerator Wednesday, June 25, 2008 6:23 PM
Friday, April 25, 2008 12:20 AM