Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:matlab:matlab [2019-08-27 16:27] – [Batch job] anita | software:matlab:matlab [2021-02-24 16:37] (current) – [Details by cluster] anita | ||
---|---|---|---|
Line 8: | Line 8: | ||
====== License information ====== | ====== License information ====== | ||
- | MATLAB is product licensed by Mathworks. | + | MATLAB is product licensed by Mathworks. |
The Mathworks R2013b and newer license server is being queried every 6 minutes on each cluster for available seats licensed for Matlab, Simulink and associated toolboxes. | The Mathworks R2013b and newer license server is being queried every 6 minutes on each cluster for available seats licensed for Matlab, Simulink and associated toolboxes. | ||
Line 32: | Line 32: | ||
When you have a MATLAB job tested and debugged in a project directory, you are ready run on a cluster. | When you have a MATLAB job tested and debugged in a project directory, you are ready run on a cluster. | ||
- | ===== Copy the project folder ===== | + | See [[#details-by-clusters|cluster details]] for examples on running |
- | + | ||
- | Copy the project folder to a directory on the cluster. | + | |
- | Use any [[: | + | |
- | + | ||
- | ====== Batch job====== | + | |
- | + | ||
- | See [[#cluster details]] for running | + | |
- | + | ||
- | <note important> | + | |
- | + | ||
- | MATLAB has a new version twice a year. It is important to keep the version you use on your desktop the same as the | + | |
- | one on the cluster. | + | |
- | < | + | |
- | vpkg_versions matlab | + | |
- | </ | + | |
- | will show you the versions available on a cluster. | + | |
- | </ | + | |
- | + | ||
- | <note tip> | + | |
- | + | ||
- | It is frequently advisable to keep your MATLAB project clean from non-MATLAB files such as the queue | + | |
- | script file and the script output file. But you may combine them, and even use the MATLAB editor to | + | |
- | create the script file and look at the output file. | + | |
- | If you create the file on a PC, take care to not transfer the files as binary. See Transfer Files for the appropriate cluster. | + | |
- | + | ||
- | When you have one combined directory, do not put the '' | + | |
- | to the project directory using '' | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ===== Create a job script file ===== | + | |
- | You should create a job script file to submit a batch job. Start by modifying a job template file (''/ | + | |
- | In your copy change the commented '' | + | |
- | require MATLAB, and then add your shell commands to the end of the file. Your copy may contain the lines: | + | |
- | < | + | |
- | # Add vpkg_require commands after this line: | + | |
- | vpkg_require matlab | + | |
- | + | ||
- | # Now append all of your shell commands necessary to run your program | + | |
- | # after this line: | + | |
- | cd project_directory | + | |
- | matlab -nodisplay -singleCompThread -r main_script | + | |
- | </ | + | |
- | The '' | + | |
- | one line **'' | + | |
- | + | ||
- | For more examples, including examples that use multiple computational threads or the Parallel toolbox, see the [[#cluster details]] | + | |
====== Parallel job ====== | ====== Parallel job ====== | ||
Line 100: | Line 53: | ||
- | =====Details by clusters===== | + | ======Details by cluster====== |
+ | * [[software: | ||
* [[software: | * [[software: | ||
* [[software: | * [[software: |