Hi Ulrich,

In this case, you can use the option -machinefile $TMPDIR/machines instead of 
specifying all hosts.
SGE creates the temporary file $TMPDIR/machines which contains the assigned 
machines.
Farid. 



________________________________
 De : Ulrich Hiller <[email protected]>
À : Reuti <[email protected]> 
Cc : Farid Chabane <[email protected]>; "[email protected] Users" 
<[email protected]> 
Envoyé le : Mardi 16 juillet 2013 11h08
Objet : Re: [gridengine users] CPU allocation SOLVED
 

Hi again,
i know i should have answered earlier, but in the meantime the problem
seems to be solved. A colleague found out that in the command line the
host option has to be added with all the nodes (which was not the case
in earlier versions - so i was seeking at the wrong place).
So the command should look like this:
mpirun -np $NSLOTS -host node1,node2,node3,...,noden -prefix
my-prefix-if-necessary mycode.py
Again thanks a lot for all your help, Farid and especially Reuti.
With kind regards, ulrich


On 07/11/2013 08:21 PM, Reuti wrote:
> Am 11.07.2013 um 19:45 schrieb Ulrich Hiller:
> 
>> Hi,
>>
>>
>> On 07/11/2013 05:25 PM, Reuti wrote:
>>> Hi,
>>>
>>> Am 11.07.2013 um 15:24 schrieb Ulrich Hiller:
>>>
>>>> Thank you Faris and Reuti for the answers.
>>>> This is an example of a job:
>>>>
>>>> #!/bin/bash
>>>> #
>>>> #$ -cwd
>>>> #$ -pe * 24
>>>
>>> You can request a PE this way, but what types of PEs and allocation rules 
>>> is available in the installation.
>>>
>>> $ qconf -spl
>>>
>>>
>>
>>
>> qconf -spl
>> gives me only 'make'
>>
>> qconf -sp make
>> gives
>> pe_name            make
>> slots              999
>> user_lists         NONE
>> xuser_lists        NONE
>> start_proc_args    NONE
>> stop_proc_args     NONE
>> allocation_rule    $round_robin
>> control_slaves     TRUE
>> job_is_first_task  FALSE
>> urgency_slots      min
>> accounting_summary TRUE
>>
>>
>> Do you see there any problem?
> 
> No, it conforms to the FAQ as you have only one:
> 
> http://www.open-mpi.org/faq/?category=running#run-n1ge-or-sge
> 
> But how does the Python script take advantage of it? There is no automatic 
> parallelism provided by SGE, the application has to run in parallel already 
> outside of SGE.
> 
> -- Reuti
> 
> 
>> With kind regards, ulrich
> 

-- 
------
Ulrich Hiller
Max-Planck-Institute for Astronomy
Koenigstuhl 17
69117 Heidelberg
Germany
phone +49 6221 528238
fax +49 6221 528246
e-mail [email protected]
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to