Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for cache_efficient, and load balance #77

Closed
2 tasks done
salvadord opened this issue Jun 7, 2016 · 0 comments
Closed
2 tasks done

Option for cache_efficient, and load balance #77

salvadord opened this issue Jun 7, 2016 · 0 comments

Comments

@salvadord
Copy link
Collaborator

salvadord commented Jun 7, 2016

  • cache_efficient

  • load balance output

    set cache_efficient on

    f.sim.h('objref cvode')
    f.sim.h('cvode = new CVode()')
    f.sim.h.cvode.cache_efficient(0)

    f.sim.runSim() # run parallel Neuron simulation

    computation_time = f.pc.step_time()
    max_comp_time = f.pc.allreduce(computation_time, 2)
    min_comp_time = f.pc.allreduce(computation_time, 3)
    avg_comp_time = f.pc.allreduce(computation_time, 1)/f.nhosts
    load_balance = avg_comp_time/max_comp_time

    #print 'node:',f.rank,' comp_time:',computation_time
    if f.rank==0:
    print 'max_comp_time:', max_comp_time
    print 'min_comp_time:', min_comp_time
    print 'avg_comp_time:', avg_comp_time
    print 'load_balance:',load_balance
    print '\nspike exchange time atp(run_time-comp_time): ', f.timing['runTime'] - max_comp_time

@salvadord salvadord added this to the Paper (2016) milestone Jun 7, 2016
@salvadord salvadord self-assigned this Jun 7, 2016
@salvadord salvadord changed the title Option for cvode, cache_efficient, and load balance Option for cache_efficient, and load balance Aug 7, 2016
salvadord added a commit that referenced this issue Aug 7, 2016
@salvadord salvadord reopened this Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant