Skip to content

Commit efe72d3

Browse files
Merge pull request #6055 from ggouaillardet/topic/c11_atomics
Misc C11 atomics related fixes
2 parents 2f479d1 + 72eb53e commit efe72d3

File tree

5 files changed

+9
-204
lines changed

5 files changed

+9
-204
lines changed

config/opal_config_asm.m4

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ dnl Copyright (c) 2004-2005 The Regents of the University of California.
1111
dnl All rights reserved.
1212
dnl Copyright (c) 2008-2018 Cisco Systems, Inc. All rights reserved.
1313
dnl Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
14-
dnl Copyright (c) 2015-2017 Research Organization for Information Science
15-
dnl and Technology (RIST). All rights reserved.
14+
dnl Copyright (c) 2015-2018 Research Organization for Information Science
15+
dnl and Technology (RIST). All rights reserved.
1616
dnl Copyright (c) 2014-2018 Los Alamos National Security, LLC. All rights
1717
dnl reserved.
1818
dnl Copyright (c) 2017 Amazon.com, Inc. or its affiliates. All Rights
@@ -1148,6 +1148,9 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
11481148
if test "x$enable_c11_atomics" != "xno" && test "$opal_cv_c11_supported" = "yes" ; then
11491149
opal_cv_asm_builtin="BUILTIN_C11"
11501150
OPAL_CHECK_C11_CSWAP_INT128
1151+
elif test "x$enable_c11_atomics" = "xyes"; then
1152+
AC_MSG_WARN([C11 atomics were requested but are not supported])
1153+
AC_MSG_ERROR([Cannot continue])
11511154
else
11521155
opal_cv_asm_builtin="BUILTIN_NO"
11531156
AS_IF([test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes"],

opal/include/opal/sys/atomic_stdc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/*
33
* Copyright (c) 2018 Los Alamos National Security, LLC. All rights
44
* reserved.
5+
* Copyright (c) 2018 Research Organization for Information Science
6+
* and Technology (RIST). All rights reserved.
57
* $COPYRIGHT$
68
*
79
* Additional copyrights may follow
@@ -23,7 +25,7 @@
2325

2426
#include <stdatomic.h>
2527
#include <stdint.h>
26-
#include "opal/include/opal_stdint.h"
28+
#include "opal_stdint.h"
2729

2830
#define OPAL_HAVE_ATOMIC_MEM_BARRIER 1
2931

orte/test/mpi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PROGS = mpi_no_op mpi_barrier hello hello_nodename abort multi_abort simple_spaw
44
crisscross read_write ziatest slave reduce-hang ziaprobe ziatest bcast_loop \
55
parallel_w8 parallel_w64 parallel_r8 parallel_r64 sio sendrecv_blaster early_abort \
66
debugger singleton_client_server intercomm_create spawn_tree init-exit77 mpi_info \
7-
info_spawn server client paccept pconnect ring hello.sapp binding badcoll attach xlib \
7+
info_spawn server client ring binding badcoll attach xlib \
88
no-disconnect nonzero interlib pinterlib add_host
99

1010
all: $(PROGS)

orte/test/mpi/paccept.c

Lines changed: 0 additions & 102 deletions
This file was deleted.

orte/test/mpi/pconnect.c

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)