Skip to content

Commit

Permalink
Update the configury script.
Browse files Browse the repository at this point in the history
This allows the component to correctly configure and compile with
current main branch.

Signed-off-by: George Bosilca <[email protected]>
  • Loading branch information
bosilca committed Feb 23, 2024
1 parent 061e60e commit b8a182f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ompi/mca/op/sve/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ sources = \
# MCA_BUILD_ompi_<framework>_<component>_DSO AM_CONDITIONAL to indicate
# which way this component should be built.

if MCA_BUILD_ompi_op_arm_sve_op_DSO
component_noinst =
if MCA_BUILD_ompi_op_sve_DSO
component_noinst =
component_install = mca_op_sve.la
else
component_install =
component_noinst = component_noinst
component_noinst = libmca_op_sve.la
endif

# Specific information for DSO builds.
Expand Down
15 changes: 14 additions & 1 deletion ompi/mca/op/sve/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,18 @@
# We can always build, unless we were explicitly disabled.
AC_DEFUN([MCA_ompi_op_sve_CONFIG],[
AC_CONFIG_FILES([ompi/mca/op/sve/Makefile])
[$1],
case "${host}" in
aarch64)
op_sve_support="yes";;
*)
op_sve_support="no";;
esac
[$1]
AM_CONDITIONAL([MCA_BUILD_ompi_op_has_sve_support],
[test "$op_sve_support" = "yes"])
AC_SUBST(MCA_BUILD_ompi_op_has_sve_support)

AS_IF([test $op_sve_support == "yes"],
[$1],
[$2])
])dnl

0 comments on commit b8a182f

Please sign in to comment.