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

 
 

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

Submitter:  None
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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 -email is unavailable-
    2020-12-18 None Attached File- Added parallel-20201122-localslot.patch, #50509

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code