# Distributed and SGE qsub

**URL:** <https://discourse.julialang.org/t/distributed-and-sge-qsub/114386>\
**Category:** General Usage\
**Created:** [May 17, 2024, 7:44am UTC](https://discourse.julialang.org/t/distributed-and-sge-qsub/114386 "2024-05-17T07:44:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TongTongYee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tongtongyee/32/207244_2.png) [@TongTongYee](https://discourse.julialang.org/u/TongTongYee)\
**Post date:** [May 17, 2024, 7:44am UTC](https://discourse.julialang.org/t/distributed-and-sge-qsub/114386/1 "2024-05-17T07:44:59Z")

</div>

Hi!

How to qsub julia codes with Distributed package?

I’m using Distributed package. And to run the code, I have used SGE qsub. I maybe understood ‘how to run MPI’ with qsub. MPI need an option ‘-pe N’, where N is number of parallel process. So I think Distributed package also the option ‘-pe N’. If the code set ‘addprocs(N-1)’, then I added option ‘-pe N’. Is this right?  
The reason why I am skeptical is because cpu ‘load\_average’ exceeds maximum number of cpu.

The following is a result of ‘qstat -f’ .

```julia
queuename qtype resv/used/tot. load_avg arch states
---------------------------------------------------------------------------------
node BIP 0/10/96 115.54 lx-amd64      
 312031 0.55500 f r r 05/16/2024 22:59:38 2        
 312032 0.55500 f r r 05/16/2024 22:59:38 2        
 312417 0.55500 f r r 05/17/2024 13:37:53 2        
 312419 0.55500 f r r 05/17/2024 15:56:53 2        
 312420 0.55500 f r r 05/17/2024 15:57:53 2        
---------------------------------------------------------------------------------

```
