partitioned execution: pass process rank to LWK
Cherry-pick of d2d134d5e6a4b16a34d55d31b14614a2a91ecf47 Conflicts: kernel/include/process.h
This commit is contained in:
committed by
Masamichi Takagi
parent
4439b04d9f
commit
a697f5e98d
@ -2456,6 +2456,7 @@ int main(int argc, char **argv)
|
||||
struct get_cpu_set_arg cpu_set_arg;
|
||||
int mcexec_linux_numa = 0;
|
||||
int ikc_mapped = 0;
|
||||
int process_rank = -1;
|
||||
cpu_set_t mcexec_cpu_set;
|
||||
|
||||
CPU_ZERO(&mcexec_cpu_set);
|
||||
@ -2464,6 +2465,7 @@ int main(int argc, char **argv)
|
||||
cpu_set_arg.cpu_set_size = sizeof(desc->cpu_set);
|
||||
cpu_set_arg.nr_processes = nr_processes;
|
||||
cpu_set_arg.target_core = &target_core;
|
||||
cpu_set_arg.process_rank = &process_rank;
|
||||
cpu_set_arg.mcexec_linux_numa = &mcexec_linux_numa;
|
||||
cpu_set_arg.mcexec_cpu_set = &mcexec_cpu_set;
|
||||
cpu_set_arg.mcexec_cpu_set_size = sizeof(mcexec_cpu_set);
|
||||
@ -2476,6 +2478,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
desc->cpu = target_core;
|
||||
desc->process_rank = process_rank;
|
||||
|
||||
/* Bind to CPU cores where the LWK process' IKC target maps to */
|
||||
if (ikc_mapped && !no_bind_ikc_map) {
|
||||
|
||||
Reference in New Issue
Block a user