bugGNU Parallel - Bugs: bug #59722, [PATCH] Count local slot numbers...

 
 

bug #59722: [PATCH] Count local slot numbers for each sshlogin

Submitted by:  None
Submitted on:  Fri 18 Dec 2020 04:20:17 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 18 Dec 2020 04:20:17 PM UTC, original submission:  

Running the jobs on remote hosts with resources under a quota I needed to know the host-local slot number (from 1 to ncpus/) in order to select the corresponding free resource. Thus I've ended up with the following patch.

With this patch one can run:

parallel --plus -S 4/host1 -S 3/host2 mycmd -d workdirs/{localslot} :::: input

and have

mycmd -d workdirs/1 ...
mycmd -d workdirs/2 ...
mycmd -d workdirs/3 ...
mycmd -d workdirs/4 ...

for the jobs running on host1, while having only

mycmd -d workdirs/1 ...
mycmd -d workdirs/2 ...
mycmd -d workdirs/3 ...

for the jobs on host2.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #50509:  parallel-20201122-localslot.patch added by None (5KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by manowar
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-28 manowar Carbon-Copy- => Added manowar@altlinux.org
    2020-12-18 None Attached File- => Added parallel-20201122-localslot.patch, #50509

    Back to the top


    Powered by Savane 3.6