Skip to content

Commit

Permalink
Fix jacobi omp examples.
Browse files Browse the repository at this point in the history
Makes sure the `HPX_APPLICATION_STRING` is set correctly for non-hpx targets.
  • Loading branch information
rtohid committed Oct 19, 2023
1 parent 103a7b8 commit 03350d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jacobi_smp/jacobi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ int hpx_main(variables_map& vm)
#endif
}

#if !defined(HPX_APPLICATION_STRING)
#define HPX_APPLICATION_STRING "jacobi"
#if defined(JACOBI_SMP_NO_HPX)
#define HPX_APPLICATION_STRING "jacobi_omp_[static,dynamic]"
#endif

int main(int argc, char** argv)
Expand Down
4 changes: 4 additions & 0 deletions examples/jacobi_smp/jacobi_nonuniform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ int hpx_main(variables_map& vm)
#endif
}

#if defined(JACOBI_SMP_NO_HPX)
#define HPX_APPLICATION_STRING "jacobi_omp_[static,dynamic]"
#endif

int main(int argc, char** argv)
{
options_description desc_cmd("usage: " HPX_APPLICATION_STRING " [options]");
Expand Down

0 comments on commit 03350d4

Please sign in to comment.