- Write the script in condor-compatible way: (see https://gist.github.com/dineshj1/935a703f93c12a3efc19#file-sample_condorized_function-m, and read tips and details)
- Compile code after adding all necessary paths to Matlab path: (see https://gist.github.com/dineshj1/935a703f93c12a3efc19#file-compilecodes-m-example)
- Create submit script: (see https://gist.github.com/dineshj1/935a703f93c12a3efc19#file-sample_submit_file)
- Some edits to PATH, LD_LIBRARY_PATH etc. may be necessary (see full .profile at https://gist.github.com/dineshj1/935a703f93c12a3efc19#file-profile-when-working):
- export PATH=$PATH:/lusr/share/software/matlab-r2015b/bin/glnxa64/:/lusr/share/software/matlab-r2015b/toolbox/compiler/deploy/;
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/v/filer4b/software/matlab-r2015b/bin/glnxa64/:/v/filer4b/software/matlab-r2015b/runtime/glnxa64/;
- export MCR_CACHE_ROOT=/scratch/vision/dineshj/mcrCache/ # where executables will extract ctf archives
- export KMP_DUPLICATE_LIB_OK=true;
Friday, February 19, 2016
Compiling and submitting matlab scripts to condor on the UTCS cluster
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment