From 03350d49bc959de0c17bd22683751b14beb34c6c Mon Sep 17 00:00:00 2001 From: "R. Tohid" Date: Mon, 16 Oct 2023 17:07:25 -0500 Subject: [PATCH] Fix jacobi omp examples. Makes sure the `HPX_APPLICATION_STRING` is set correctly for non-hpx targets. --- examples/jacobi_smp/jacobi.cpp | 4 ++-- examples/jacobi_smp/jacobi_nonuniform.cpp | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/jacobi_smp/jacobi.cpp b/examples/jacobi_smp/jacobi.cpp index 951b7f5b7020..9d9d9613cf5e 100644 --- a/examples/jacobi_smp/jacobi.cpp +++ b/examples/jacobi_smp/jacobi.cpp @@ -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) diff --git a/examples/jacobi_smp/jacobi_nonuniform.cpp b/examples/jacobi_smp/jacobi_nonuniform.cpp index 497d78a0b7d9..0499efd4197f 100644 --- a/examples/jacobi_smp/jacobi_nonuniform.cpp +++ b/examples/jacobi_smp/jacobi_nonuniform.cpp @@ -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]");