Skip to content

Commit 4128a5d

Browse files
committed
Update the configury script.
This allows the component to correctly configure and compile with current main branch. Signed-off-by: George Bosilca <gbosilca@nvidia.com>
1 parent 061e60e commit 4128a5d

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

ompi/mca/op/sve/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ sources = \
4141
# MCA_BUILD_ompi_<framework>_<component>_DSO AM_CONDITIONAL to indicate
4242
# which way this component should be built.
4343

44-
if MCA_BUILD_ompi_op_arm_sve_op_DSO
45-
component_noinst =
44+
if MCA_BUILD_ompi_op_sve_DSO
45+
component_noinst =
4646
component_install = mca_op_sve.la
4747
else
4848
component_install =
49-
component_noinst = component_noinst
49+
component_noinst = libmca_op_sve.la
5050
endif
5151

5252
# Specific information for DSO builds.

ompi/mca/op/sve/configure.m4

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,18 @@
1717
# We can always build, unless we were explicitly disabled.
1818
AC_DEFUN([MCA_ompi_op_sve_CONFIG],[
1919
AC_CONFIG_FILES([ompi/mca/op/sve/Makefile])
20-
[$1],
20+
case "${host}" in
21+
aarch64)
22+
op_sve_support="yes";;
23+
*)
24+
op_sve_support="no";;
25+
esac
26+
[$1]
27+
AM_CONDITIONAL([MCA_BUILD_ompi_op_has_sve_support],
28+
[test "$op_sve_support" = "yes"])
29+
AC_SUBST(MCA_BUILD_ompi_op_has_sve_support)
30+
31+
AS_IF([test $op_sve_support == "yes"],
32+
[$1],
33+
[$2])
2134
])dnl

0 commit comments

Comments
 (0)