Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

matlab backward compatibility & slurm support #135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fMeow
Copy link

@fMeow fMeow commented Oct 5, 2020

Matlab backward compatibility

Fix the compatibility issue with old age matlab (tested with MATLAB 2012b on Linux, Centos 8):

  • old matlab do not accept sparse matrix creation with dimension set to an empty matrix
    sparse([], [], [], 1, []) % this is NOT acceptable
    sparse([], [], [], 1, 0) % this is acceptable
  • only single quote is accetable when defining a string
  • matlab does not support subscription on result from a function: regexp(script,'(^.*)/logs','tokens'){1}{1}

Slurm support

Slurm offers a set of PBS command (qsub, qdel and etc), but it mandatorily require shebang.

And the solution is simple that to add #!/bin/sh to worker script ($LOG_DIR/tmp/psomX.sh).

In some cases, jobs are submitted before workers are ready.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant