Skip to content

Commit bc54c99

Browse files
committed
configure: add builtin asm check for s390/s390x
We accepted a change that enabled CMA on s390 and s390x. This change had the side-effect that we were no longer using the builtin atomics for these systems. This is a problem since we do not have ASM for s390 and s390x. This commit restores the atomics. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 0c258c3 commit bc54c99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/opal_config_asm.m4

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dnl Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
1313
dnl Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
1414
dnl Copyright (c) 2015-2017 Research Organization for Information Science
1515
dnl and Technology (RIST). All rights reserved.
16-
dnl Copyright (c) 2014-2016 Los Alamos National Security, LLC. All rights
16+
dnl Copyright (c) 2014-2017 Los Alamos National Security, LLC. All rights
1717
dnl reserved.
1818
dnl Copyright (c) 2017 Amazon.com, Inc. or its affiliates. All Rights
1919
dnl reserved.
@@ -1088,9 +1088,13 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
10881088
# as s390 is 31bits while s390x is 64bits
10891089
s390-*)
10901090
opal_cv_asm_arch="S390"
1091+
OPAL_CHECK_SYNC_BUILTINS([opal_cv_asm_builtin="BUILTIN_SYNC"],
1092+
[AC_MSG_ERROR([No atomic primitives available for $host])])
10911093
;;
10921094
s390x-*)
10931095
opal_cv_asm_arch="S390X"
1096+
OPAL_CHECK_SYNC_BUILTINS([opal_cv_asm_builtin="BUILTIN_SYNC"],
1097+
[AC_MSG_ERROR([No atomic primitives available for $host])])
10941098
;;
10951099
sparc*-*)
10961100
# SPARC v9 (and above) are the only ones with 64bit support

0 commit comments

Comments
 (0)