Commit 486fb259 authored by Pavan Balaji's avatar Pavan Balaji
Browse files

White space cleanup.


Signed-off-by: Kenneth Raffenetti's avatarKen Raffenetti <raffenet@mcs.anl.gov>
parent e35ab750
......@@ -27,8 +27,7 @@ int main(int argc, char **argv)
num_cpus = atoi(argv[1]);
argv += 2;
}
else if (!strcmp(argv[0], "--help") || !strcmp(argv[0], "-help") ||
!strcmp(argv[0], "-h")) {
else if (!strcmp(argv[0], "--help") || !strcmp(argv[0], "-help") || !strcmp(argv[0], "-h")) {
fprintf(stderr, "Usage: ./binding {--num-cpus [CPUs]}\n");
MPI_Abort(MPI_COMM_WORLD, -1);
}
......
......@@ -13,12 +13,12 @@ int main(int argc, char **argv)
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name,&namelen);
MPI_Get_processor_name(processor_name, &namelen);
fp = popen("grep Cpus_allowed_list /proc/$$/status", "r");
while (fgets(path, PATH_MAX, fp) != NULL) {
printf("%s[%d]: %s", processor_name, rank, path);
printf("%s[%d]: %s", processor_name, rank, path);
}
pclose(fp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment