Skip to content

Commit

Permalink
programs: patch to work with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 8, 2023
1 parent 47927ed commit fd7799b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion programs/gpmetis.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void GPReportResults(params_t *params, graph_t *graph, idx_t *part, idx_t objval
printf("\nMemory Information ----------------------------------------------------------\n");
printf(" Max memory used:\t\t %7.3"PRREAL" MB\n", (real_t)(params->maxmemory/(1024.0*1024.0)));

#ifndef MACOS
#ifdef __linux__
{
struct rusage usage;
getrusage(RUSAGE_SELF, &usage);
Expand Down
2 changes: 1 addition & 1 deletion programs/mpmetis.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void MPReportResults(params_t *params, mesh_t *mesh, idx_t *epart, idx_t *npart,
printf("\nMemory Information ----------------------------------------------------------\n");
printf(" Max memory used:\t\t %7.3"PRREAL" MB\n", (real_t)(params->maxmemory/(1024.0*1024.0)));

#ifndef MACOS
#ifdef __linux__
{
struct rusage usage;
getrusage(RUSAGE_SELF, &usage);
Expand Down
2 changes: 1 addition & 1 deletion programs/ndmetis.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void NDReportResults(params_t *params, graph_t *graph, idx_t *perm,
printf("\nMemory Information ----------------------------------------------------------\n");
printf(" Max memory used:\t\t %7.3"PRREAL" MB\n", (real_t)(params->maxmemory/(1024.0*1024.0)));

#ifndef MACOS
#ifdef __linux__
{
struct rusage usage;
getrusage(RUSAGE_SELF, &usage);
Expand Down

0 comments on commit fd7799b

Please sign in to comment.