IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37369 for trunk/tools


Ignore:
Timestamp:
Sep 4, 2014, 4:57:13 PM (12 years ago)
Author:
watersc1
Message:

Update that I think fixes the oversubscription issue, which should in turn allow stacks to finish correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/stask_chip.py

    r37368 r37369  
    4646task_file = sys.argv[1]
    4747hosts_file = sys.argv[2]
    48 nprocs = int(sys.argv[3])
     48nprocs = int(sys.argv[3])  # Oversubscription parameter: number of processors to devote to a task
    4949
    5050hosts = []
     
    5757busy = {}
    5858timeout = 2*3600
     59n_active = 0 # number of active jobs we expect to have running should equal Nhosts * Ncore_per_host / nprocs
     60
    5961
    6062n_completed=0
     
    6971    for host in f:
    7072        if host[:2] == 'mu':
    71             cores = 12
     73            cores = int(12 / nprocs)  # Use nprocs to reduce the core subscription
    7274            nname = 6
    7375        elif host[:2] == 'ml':
     
    8486            hosts.append(h)
    8587            busy[h] = 0
     88            n_active = n_active + 1
    8689
    8790print 'running %d commands at a time from %d tasks in %s' \
    88     % (len(hosts)/nprocs, len(tasks), task_file)
     91    % (n_active, len(tasks), task_file)
    8992
    9093for task in tasks:
     
    102105    cmds[p] = command
    103106    times[p] = time.time()
    104     wait(len(hosts)/nprocs)
     107    wait(n_active)
    105108
    106109wait(1)
Note: See TracChangeset for help on using the changeset viewer.