Fixing ovni for multiple nodes (workaround)
This commit is contained in:
parent
e80bcdd224
commit
8b78baa587
2
emu.c
2
emu.c
@ -301,6 +301,8 @@ load_metadata(struct ovni_emu *emu)
|
||||
for(i=0; i<trace->nlooms; i++)
|
||||
{
|
||||
loom = &trace->loom[i];
|
||||
loom->offset_ncpus = emu->total_cpus;
|
||||
|
||||
for(j=0; j<loom->nprocs; j++)
|
||||
{
|
||||
proc = &loom->proc[j];
|
||||
|
1
emu.h
1
emu.h
@ -143,6 +143,7 @@ struct ovni_loom {
|
||||
int max_ncpus;
|
||||
int max_phyid;
|
||||
int ncpus;
|
||||
int offset_ncpus;
|
||||
struct ovni_cpu cpu[OVNI_MAX_CPU];
|
||||
|
||||
int64_t clock_offset;
|
||||
|
@ -313,7 +313,7 @@ emit_thread_count(struct ovni_emu *emu)
|
||||
if(loom->cpu[i].last_nthreads != loom->cpu[i].nthreads)
|
||||
{
|
||||
/* Start at 1 */
|
||||
row = i + 1;
|
||||
row = loom->offset_ncpus + i + 1;
|
||||
n = loom->cpu[i].nthreads;
|
||||
prv_ev_cpu(emu, row, PTC_NTHREADS, n);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user