For executables compiled with the Matlab Compiler, instead of the full Matlab install, you will need the MCR, the Matlab Compiler Runtime, but the general techniques are the same. -If you install Condor locally on each computer, it is recommended to place Matlab in the same location on each computer. That way individual jobs can easily find it. If Condor will be in different locations on each computer, you can set up {link:http://www.cs.wisc.edu/condor/manual/v7.6/3_3Configuration.html#param:SubsysAttrs STARTD_ATTRS} to advertise the correct location, then the job can use a {link:http://www.cs.wisc.edu/condor/manual/v7.6/condor_submit.html#73792 $$} expression to find it. For example, your configuration file might say: +If you install Matlab locally on each computer, it is recommended to place Matlab in the same location on each computer. That way individual jobs can easily find it. If Matlab will be in different locations on each computer, you can set up {link:http://www.cs.wisc.edu/condor/manual/v7.6/3_3Configuration.html#param:SubsysAttrs STARTD_ATTRS} to advertise the correct location, then the job can use a {link:http://www.cs.wisc.edu/condor/manual/v7.6/condor_submit.html#73792 $$} expression to find it. For example, your configuration file might say: {code} MATLAB_PATH = /opt/matlab/bin @@ -90,6 +90,26 @@ *: *TODO*: Is the lastN necessary? *: *TODO*: maxNumCompThreads is deprecated. The preferred solution is to pass "-singleCompThread" on the command line. _check if -singleCompThread works for compiled jobs_, we don't think it does. +{section: Example} + +This example assumes that Matlab is available in /opt/Matlab/bin. + +*COMPLETELY UNTESTED* +*:*TODO*: Is the DISPLAY=:0.0 required? Seems unlikely. +*:*TODO*: Is the HOME=. required? +*:*TODO*: Is the MATLAB_PREF=. required? + +{code} +executable = /opt/Matlab/bin/matlab +arguments = -nodisplay -nojvm -singleCompThread my-script.m +transfer_input_files = my-script.m +output = my-script.output +error = my-script.error +log = my-script.log +environment = "DISPLAY=:0.0 HOME=. MATLAB_PREF=." +queue +{endcode} + {section: Additional Resources} Many other sites are using Matlab under Condor. Here are links to the documentation from just a few.