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++)
|
for(i=0; i<trace->nlooms; i++)
|
||||||
{
|
{
|
||||||
loom = &trace->loom[i];
|
loom = &trace->loom[i];
|
||||||
|
loom->offset_ncpus = emu->total_cpus;
|
||||||
|
|
||||||
for(j=0; j<loom->nprocs; j++)
|
for(j=0; j<loom->nprocs; j++)
|
||||||
{
|
{
|
||||||
proc = &loom->proc[j];
|
proc = &loom->proc[j];
|
||||||
|
1
emu.h
1
emu.h
@ -143,6 +143,7 @@ struct ovni_loom {
|
|||||||
int max_ncpus;
|
int max_ncpus;
|
||||||
int max_phyid;
|
int max_phyid;
|
||||||
int ncpus;
|
int ncpus;
|
||||||
|
int offset_ncpus;
|
||||||
struct ovni_cpu cpu[OVNI_MAX_CPU];
|
struct ovni_cpu cpu[OVNI_MAX_CPU];
|
||||||
|
|
||||||
int64_t clock_offset;
|
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)
|
if(loom->cpu[i].last_nthreads != loom->cpu[i].nthreads)
|
||||||
{
|
{
|
||||||
/* Start at 1 */
|
/* Start at 1 */
|
||||||
row = i + 1;
|
row = loom->offset_ncpus + i + 1;
|
||||||
n = loom->cpu[i].nthreads;
|
n = loom->cpu[i].nthreads;
|
||||||
prv_ev_cpu(emu, row, PTC_NTHREADS, n);
|
prv_ev_cpu(emu, row, PTC_NTHREADS, n);
|
||||||
|
|
||||||
|
2
prv.c
2
prv.c
@ -36,7 +36,7 @@ prv_ev_autocpu(struct ovni_emu *emu, int type, int val)
|
|||||||
assert(cpu->i >= 0);
|
assert(cpu->i >= 0);
|
||||||
|
|
||||||
/* Begin at 1 */
|
/* Begin at 1 */
|
||||||
row = cpu->i + 1;
|
row = emu->cur_loom->offset_ncpus + cpu->i + 1;
|
||||||
|
|
||||||
prv_ev_cpu(emu, row, type, val);
|
prv_ev_cpu(emu, row, type, val);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user