# Limited number of Matlab jobs on clusters

**URL:** <http://hpc-community.unige.ch/t/limited-number-of-matlab-jobs-on-clusters/3542>\
**Category:** HPC Technical\
**Created:** [July 16, 2024, 1:23pm UTC](http://hpc-community.unige.ch/t/limited-number-of-matlab-jobs-on-clusters/3542 "2024-07-16T13:23:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas.Cuny](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@Nicolas.Cuny](http://hpc-community.unige.ch/u/Nicolas.Cuny)\
**Post date:** [July 16, 2024, 1:23pm UTC](http://hpc-community.unige.ch/t/limited-number-of-matlab-jobs-on-clusters/3542/1 "2024-07-16T13:23:41Z")

</div>

Username: cuny  
Cluster: yggdrasil, baobab

Description:  
It seems that the number of job using matlab that can run in parallel on the clusters is limited. When I try to launch more than about 100 matlab jobs some jobs remain pending with license reason untill previous job end. Is there a way of getting rid of this limitation?

---

<div class="post-metadata">

**Author:** ![Adrien.Albert](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/adrien.albert/32/188_2.png) [@Adrien.Albert](http://hpc-community.unige.ch/u/Adrien.Albert)\
**Post date:** [July 16, 2024, 2:21pm UTC](http://hpc-community.unige.ch/t/limited-number-of-matlab-jobs-on-clusters/3542/2 "2024-07-16T14:21:16Z")

</div>

Dear @Nicolas.Cuny

This doc should interest you

[https://doc.eresearch.unige.ch/hpc/applications\_and\_libraries#compile\_your\_matlab\_code](https://doc.eresearch.unige.ch/hpc/applications_and_libraries#compile_your_matlab_code)

> The idea of compiling Matlab code is to save on licenses usage. Indeed, once compiled, a Matlab code can be run without using any license.

---

<div class="post-metadata">

**Author:** ![Nicolas.Cuny](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/n/ed8c4c/32.png) [@Nicolas.Cuny](http://hpc-community.unige.ch/u/Nicolas.Cuny)\
**Post date:** [July 17, 2024, 11:20am UTC](http://hpc-community.unige.ch/t/limited-number-of-matlab-jobs-on-clusters/3542/3 "2024-07-17T11:20:19Z")

</div>

Thank you very much for your answer. I compiled my Matlab code and tried to run the resulting executable with the following command:

./run.sh args

but it appears that before the arguments of my function (args) I need to give to the executable the path where Matlab is installed on the cluster but I don’t find this path, could you tell me what is the path?

Thank you very much

---

<div class="post-metadata">

**Author:** ![Adrien.Albert](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/adrien.albert/32/188_2.png) [@Adrien.Albert](http://hpc-community.unige.ch/u/Adrien.Albert)\
**Post date:** [July 17, 2024, 1:19pm UTC](http://hpc-community.unige.ch/t/limited-number-of-matlab-jobs-on-clusters/3542/4 "2024-07-17T13:19:25Z")

</div>

Hi @Nicolas.Cuny

The path depends of the version, but with the command which you can easily get it:

```auto
(baobab)-[alberta@login1 ~]$ ml MATLAB/2022a
(baobab)-[alberta@login1 ~]$ which matlab
/opt/ebsofts/MATLAB/2022a/bin/matlab

```
