wikiroute

networking recipes

User Tools

Site Tools


compiled_matlab_on_igrida

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
compiled_matlab_on_igrida [2013/07/21 09:45] samercompiled_matlab_on_igrida [2014/03/02 17:44] (current) – [Preparing the Scripts] samer
Line 22: Line 22:
 c=sec_foo(a,x); c=sec_foo(a,x);
 matFilename = sprintf('/temp_dd/igrida-fs1/mylogin/results.mat'); matFilename = sprintf('/temp_dd/igrida-fs1/mylogin/results.mat');
-save(matFilename,a,b,c);+save(matFilename,'a','b','c');
 </file> </file>
  
Line 39: Line 39:
 Now, you have got an executable called main_foo that you test on the command line by typing: Now, you have got an executable called main_foo that you test on the command line by typing:
 <code bash> <code bash>
-./main_foo 10 20+igrida01-01%./main_foo 10 20
 </code> </code>
 You can now exit the interactive OAR session and get back to the frontend. You can now exit the interactive OAR session and get back to the frontend.
- 
 =====Preparing the OAR jobs===== =====Preparing the OAR jobs=====
 Let us suppose that you need to run hundreds of simulations of your MATLAB compiled script. You can choose to modify your MATLAB scripts and add iterating loops (then recompile). Then, you can follow this [[matlab_script_on_igrida|tutorial]] to run your job. However, with this method, you launch a single OAR job and do not take full advantage of the computing facilities on IGRIDA. Let us suppose that you need to run hundreds of simulations of your MATLAB compiled script. You can choose to modify your MATLAB scripts and add iterating loops (then recompile). Then, you can follow this [[matlab_script_on_igrida|tutorial]] to run your job. However, with this method, you launch a single OAR job and do not take full advantage of the computing facilities on IGRIDA.
Line 86: Line 85:
 Prepare you OAR launch script to be executed: Prepare you OAR launch script to be executed:
 <code bash> <code bash>
-igrida-oar-frontend%chmod +x oar-launch-script.sh+igrida-oar-frontend%chmod +x oar-launcher.sh
 </code> </code>
  
Line 92: Line 91:
 You can now launch your jobs by simply calling your launcher script as in the following: You can now launch your jobs by simply calling your launcher script as in the following:
 <code bash> <code bash>
-igrida-oar-frontend%./oar-launch-script.sh+igrida-oar-frontend%./oar-launcher.sh
 [ADMISSION RULE] Modify resource description with type constraints [ADMISSION RULE] Modify resource description with type constraints
 [ADMISSION RULE] Job walltime greater than 4 hours, adding property duration_weight > 2 (large job). [ADMISSION RULE] Job walltime greater than 4 hours, adding property duration_weight > 2 (large job).
compiled_matlab_on_igrida.1374392717.txt.gz · Last modified: 2014/01/11 05:24 (external edit)