Initialize last_phy in test mp-simple

This commit is contained in:
Rodrigo Arias 2022-12-19 15:30:27 +01:00
parent 5a9f667553
commit 730082024f

View File

@ -56,7 +56,7 @@ instr_start(int rank)
cpu_set_t mask; cpu_set_t mask;
char hostname[HOST_NAME_MAX]; char hostname[HOST_NAME_MAX];
int i, j = 0, curcpu = -1; int i, j = 0, curcpu = -1;
int last_phy; int last_phy = 0;
if (gethostname(hostname, HOST_NAME_MAX) != 0) if (gethostname(hostname, HOST_NAME_MAX) != 0)
fail("gethostname failed"); fail("gethostname failed");