Skip to content

Commit

Permalink
Scalasca: Add patch to fix tests after OpenMP
Browse files Browse the repository at this point in the history
Signed-off-by: Jan André Reuter <[email protected]>
  • Loading branch information
Thyre authored and adrianreber committed Sep 23, 2024
1 parent 2191801 commit d28c134
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
This patch fixes a missing $ in configure, which causes following checks to
fail if they produce any output to stdout or stderr.

diff -Nrup scalasca-2.6.1.orig/build-config/m4/scalasca_nowarn_omp_pragmas.m4 scalasca-2.6.1/build-config/m4/scalasca_nowarn_omp_pragmas.m4
--- scalasca-2.6.1.orig/build-config/m4/scalasca_nowarn_omp_pragmas.m4 2022-12-14 11:55:38.810618928 +0100
+++ scalasca-2.6.1/build-config/m4/scalasca_nowarn_omp_pragmas.m4 2023-09-27 09:47:31.155201804 +0200
@@ -62,7 +62,7 @@ AS_CASE([$_scalasca_nowarn_omp_pragmas],
AC_SUBST([NOWARN_OMP_PRAGMAS_]_AC_LANG_PREFIX[FLAGS])

dnl Reset environment
-ac_[]_AC_LANG_ABBREV[]_werror_flag=_scalasca_save_[]_AC_LANG_ABBREV[]_werror_flag
+ac_[]_AC_LANG_ABBREV[]_werror_flag=$_scalasca_save_[]_AC_LANG_ABBREV[]_werror_flag
])


diff -Nrup scalasca-2.6.1.orig/build-backend/configure scalasca-2.6.1/build-backend/configure
--- scalasca-2.6.1.orig/build-backend/configure 2022-12-14 11:56:16.350709778 +0100
+++ scalasca-2.6.1/build-backend/configure 2023-09-27 09:49:35.847822426 +0200
@@ -21128,7 +21128,7 @@ case $_scalasca_nowarn_omp_pragmas in #(
esac


-ac_cxx_werror_flag=_scalasca_save_cxx_werror_flag
+ac_cxx_werror_flag=$_scalasca_save_cxx_werror_flag

if test "x${ac_cv_prog_cxx_openmp}" != "xunsupported" \
&& test "x${enable_openmp}" != "xno"; then
diff -Nrup scalasca-2.6.1.orig/build-mpi/configure scalasca-2.6.1/build-mpi/configure
--- scalasca-2.6.1.orig/build-mpi/configure 2022-12-14 11:56:33.574751469 +0100
+++ scalasca-2.6.1/build-mpi/configure 2023-09-27 09:49:06.135678364 +0200
@@ -21878,7 +21878,7 @@ case $_scalasca_nowarn_omp_pragmas in #(
esac


-ac_cxx_werror_flag=_scalasca_save_cxx_werror_flag
+ac_cxx_werror_flag=$_scalasca_save_cxx_werror_flag

if test "x${ac_cv_prog_cxx_openmp}" != "xunsupported" \
&& test "x${enable_openmp}" != "xno"; then
2 changes: 2 additions & 0 deletions components/perf-tools/scalasca/SPECS/scalasca.spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Requires: cubew-%{compiler_family}%{PROJ_DELIM} >= 4.8
Requires: cubelib-%{compiler_family}%{PROJ_DELIM} >= 4.4
Requires: otf2-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} >= 3.0
Requires: scorep-%{compiler_family}-%{mpi_family}%{PROJ_DELIM} >= 1.2
Patch1: scalasca-2.6.1-nowarn-omp-pragmas.patch

# Default library install path
%define install_path %{OHPC_LIBS}/%{compiler_family}/%{mpi_family}/%{pname}/%version
Expand All @@ -56,6 +57,7 @@ This is the %{compiler_family}-%{mpi_family} version.
%prep

%setup -q -n %{pname}-%{version}
%patch -P 1 -p1

%build

Expand Down

0 comments on commit d28c134

Please sign in to comment.