Skip to content

Commit 48231fc

Browse files
author
Ralph Castain
committed
Update to latest nightly tarball of hwloc 1.9.1
1 parent 62b0ba3 commit 48231fc

27 files changed

+510
-414
lines changed

opal/mca/hwloc/hwloc191/hwloc/NEWS

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ bug fixes (and other actions) for each version of hwloc since version
1717
in v0.9.1).
1818

1919

20-
Version 1.9.2
21-
-------------
22-
* Fix some build failures in private/misc.h.
23-
Thanks to Pavan Balaji and Ralph Castain for the reports.
24-
* Fix failures to detect X11/Xutil.h on some Solaris platforms.
25-
Thanks to Siegmar Gross for reporting the failure.
26-
27-
2820
Version 1.9.1
2921
-------------
3022
* Fix a crash when the PCI locality is invalid. Attach to the root object

opal/mca/hwloc/hwloc191/hwloc/README

Lines changed: 263 additions & 257 deletions
Large diffs are not rendered by default.

opal/mca/hwloc/hwloc191/hwloc/VERSION

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# If snapshot=1, then use the value from snapshot_version as the
66
# entire hwloc version (i.e., ignore major, minor, release, and
77
# greek). This is only set to 1 when making snapshot tarballs.
8-
snapshot=0
9-
snapshot_version=gitclone
8+
snapshot=1
9+
snapshot_version=1.9.1-76-g8725d82
1010

1111
# major, minor, and release are generally combined in the form
1212
# <major>.<minor>.<release>. If release is zero, then it is omitted.
@@ -22,11 +22,11 @@ release=2
2222
# requirement is that it must be entirely printable ASCII characters
2323
# and have no white space.
2424

25-
greek=
25+
greek=rc1
2626

2727
# The date when this release was created
2828

29-
date="Aug 25, 2014"
29+
date="Unreleased developer copy"
3030

3131
# The shared library version of hwloc's public library. This version
3232
# is maintained in accordance with the "Library Interface Versions"

opal/mca/hwloc/hwloc191/hwloc/config/hwloc.m4

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dnl -*- Autoconf -*-
22
dnl
33
dnl Copyright © 2009-2014 Inria. All rights reserved.
4-
dnl Copyright (c) 2009-2012 Université Bordeaux 1
4+
dnl Copyright (c) 2009-2012, 2015 Université Bordeaux 1
55
dnl Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
66
dnl University Research and Technology
77
dnl Corporation. All rights reserved.
@@ -533,15 +533,13 @@ EOF])
533533
AC_MSG_RESULT([yes])],
534534
[AC_MSG_RESULT([no])])
535535
536-
AC_MSG_CHECKING([for working _syscall3])
536+
AC_MSG_CHECKING([for working syscall])
537537
AC_LINK_IFELSE([
538538
AC_LANG_PROGRAM([[
539-
#include <linux/unistd.h>
540-
#include <errno.h>
541-
#define __NR_hwloc_test 123
542-
_syscall3(int, hwloc_test, int, param1, int, param2, int, param3);
543-
]], [[ hwloc_test(1, 2, 3); ]])],
544-
[AC_DEFINE([HWLOC_HAVE__SYSCALL3], [1], [Define to 1 if the _syscall3 macro works])
539+
#include <unistd.h>
540+
#include <sys/syscall.h>
541+
]], [[syscall(1, 2, 3);]])],
542+
[AC_DEFINE([HWLOC_HAVE_SYSCALL], [1], [Define to 1 if function `syscall' is available])
545543
AC_MSG_RESULT([yes])],
546544
[AC_MSG_RESULT([no])])
547545
@@ -929,8 +927,11 @@ EOF])
929927
# lstopo needs more
930928
AC_CHECK_HEADERS([X11/Xutil.h],
931929
[AC_CHECK_HEADERS([X11/keysym.h],
932-
[AC_DEFINE([HWLOC_HAVE_X11_KEYSYM], [1], [Define to 1 if X11 headers including Xutil.h and keysym.h are available.])])
933-
AC_SUBST([HWLOC_X11_LIBS], ["-lX11"])
930+
[AC_DEFINE([HWLOC_HAVE_X11_KEYSYM], [1], [Define to 1 if X11 headers including Xutil.h and keysym.h are available.])
931+
HWLOC_X11_CPPFLAGS="$X_CFLAGS"
932+
AC_SUBST([HWLOC_X11_CPPFLAGS])
933+
HWLOC_X11_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
934+
AC_SUBST([HWLOC_X11_LIBS])])
934935
], [], [#include <X11/Xlib.h>])
935936
])
936937
])

opal/mca/hwloc/hwloc191/hwloc/include/hwloc.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,8 @@ HWLOC_DECLSPEC int hwloc_topology_ignore_type_keep_structure(hwloc_topology_t to
676676
/** \brief Ignore all objects that do not bring any structure.
677677
*
678678
* Ignore all objects that do not bring any structure:
679-
* Each ignored object should have a single children or be the only child of its parent.
680-
* I/O objects may not be ignored, topology flags should be used to configure
681-
* their discovery instead.
679+
* This is equivalent to calling hwloc_topology_ignore_type_keep_structure()
680+
* for all object types.
682681
*/
683682
HWLOC_DECLSPEC int hwloc_topology_ignore_all_keep_structure(hwloc_topology_t topology);
684683

@@ -693,6 +692,10 @@ enum hwloc_topology_flags_e {
693692
* Gather all resources, even if some were disabled by the administrator.
694693
* For instance, ignore Linux Cpusets and gather all processors and memory nodes,
695694
* and ignore the fact that some resources may be offline.
695+
*
696+
* When this flag is not set, PUs that are disallowed are not added to the topology.
697+
* Parent objects (package, core, cache, etc.) are added only if some of their children are allowed.
698+
* NUMA nodes are always added but their available memory is set to 0 when disallowed.
696699
* \hideinitializer
697700
*/
698701
HWLOC_TOPOLOGY_FLAG_WHOLE_SYSTEM = (1UL<<0),
@@ -1196,7 +1199,7 @@ HWLOC_DECLSPEC const char * hwloc_obj_type_string (hwloc_obj_type_t type) __hwlo
11961199
* Attributes that are not specified in the string (for instance "Group"
11971200
* without a depth, or "L2Cache" without a cache type) are set to -1.
11981201
*
1199-
* \p typeattrd is only filled if the size specified in \p typeattrsize
1202+
* \p typeattrp is only filled if the size specified in \p typeattrsize
12001203
* is large enough. It is currently only used for caches, and the required
12011204
* size is at least the size of hwloc_obj_cache_type_t.
12021205
*

opal/mca/hwloc/hwloc191/hwloc/include/hwloc/bitmap.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright © 2009 CNRS
3-
* Copyright © 2009-2011 inria. All rights reserved.
4-
* Copyright © 2009-2012 Université Bordeaux 1
3+
* Copyright © 2009-2015 Inria. All rights reserved.
4+
* Copyright © 2009-2012 Université Bordeaux
55
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
66
* See COPYING in top-level directory.
77
*/
@@ -332,10 +332,14 @@ HWLOC_DECLSPEC int hwloc_bitmap_isequal (hwloc_const_bitmap_t bitmap1, hwloc_con
332332
*/
333333
HWLOC_DECLSPEC int hwloc_bitmap_compare_first(hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2) __hwloc_attribute_pure;
334334

335-
/** \brief Compare bitmaps \p bitmap1 and \p bitmap2 using their highest index.
335+
/** \brief Compare bitmaps \p bitmap1 and \p bitmap2 in lexicographic order.
336336
*
337-
* Higher most significant bit is higher.
337+
* Lexicographic comparison of bitmaps, starting for their highest indexes.
338+
* Compare last indexes first, then second, etc.
338339
* The empty bitmap is considered lower than anything.
340+
*
341+
* \note This is different from the non-existing hwloc_bitmap_compare_last()
342+
* which would only compare the highest index of each bitmap.
339343
*/
340344
HWLOC_DECLSPEC int hwloc_bitmap_compare(hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2) __hwloc_attribute_pure;
341345

opal/mca/hwloc/hwloc191/hwloc/include/hwloc/cuda.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright © 2010-2013 Inria. All rights reserved.
3-
* Copyright © 2010-2011 Université Bordeaux 1
2+
* Copyright © 2010-2015 Inria. All rights reserved.
3+
* Copyright © 2010-2011 Université Bordeaux
44
* Copyright © 2011 Cisco Systems, Inc. All rights reserved.
55
* See COPYING in top-level directory.
66
*/
@@ -49,7 +49,7 @@ hwloc_cuda_get_device_pci_ids(hwloc_topology_t topology __hwloc_attribute_unused
4949
{
5050
CUresult cres;
5151

52-
#ifdef CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID
52+
#if CUDA_VERSION >= 4000
5353
cres = cuDeviceGetAttribute(domain, CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID, cudevice);
5454
if (cres != CUDA_SUCCESS) {
5555
errno = ENOSYS;

opal/mca/hwloc/hwloc191/hwloc/include/hwloc/cudart.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright © 2010-2013 Inria. All rights reserved.
3-
* Copyright © 2010-2011 Université Bordeaux 1
2+
* Copyright © 2010-2015 Inria. All rights reserved.
3+
* Copyright © 2010-2011 Université Bordeaux
44
* Copyright © 2011 Cisco Systems, Inc. All rights reserved.
55
* See COPYING in top-level directory.
66
*/
@@ -23,6 +23,7 @@
2323
#include <hwloc/linux.h>
2424
#endif
2525

26+
#include <cuda.h> /* for CUDA_VERSION */
2627
#include <cuda_runtime_api.h>
2728

2829

@@ -56,7 +57,7 @@ hwloc_cudart_get_device_pci_ids(hwloc_topology_t topology __hwloc_attribute_unus
5657
return -1;
5758
}
5859

59-
#ifdef CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID
60+
#if CUDA_VERSION >= 4000
6061
*domain = prop.pciDomainID;
6162
#else
6263
*domain = 0;

opal/mca/hwloc/hwloc191/hwloc/include/hwloc/plugins.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2013-2014 Inria. All rights reserved.
2+
* Copyright © 2013-2015 Inria. All rights reserved.
33
* See COPYING in top-level directory.
44
*/
55

@@ -336,7 +336,7 @@ hwloc_plugin_check_namespace(const char *pluginname __hwloc_attribute_unused, co
336336
static int verboseenv_value = 0;
337337
if (!verboseenv_checked) {
338338
char *verboseenv = getenv("HWLOC_PLUGINS_VERBOSE");
339-
verboseenv_value = atoi(verboseenv);
339+
verboseenv_value = verboseenv ? atoi(verboseenv) : 0;
340340
verboseenv_checked = 1;
341341
}
342342
if (verboseenv_value)
@@ -383,6 +383,8 @@ HWLOC_DECLSPEC int hwloc_pci_find_linkspeed(const unsigned char *config, unsigne
383383
/** \brief Modify the PCI device object into a bridge and fill its attribute if a bridge is found in the PCI config space.
384384
*
385385
* This function requires 64 bytes of common configuration header at the beginning of config.
386+
*
387+
* Returns -1 and destroys /p obj if bridge fields are invalid.
386388
*/
387389
HWLOC_DECLSPEC int hwloc_pci_prepare_bridge(hwloc_obj_t obj, const unsigned char *config);
388390

opal/mca/hwloc/hwloc191/hwloc/include/private/autogen/config.h.in

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
/* Define to 1 if you have the `cpuset_setid' function. */
4040
#undef HAVE_CPUSET_SETID
4141

42+
/* Define to 1 if you have the <ctype.h> header file. */
43+
#undef HAVE_CTYPE_H
44+
4245
/* Define to 1 if we have -lcuda */
4346
#undef HAVE_CUDA
4447

@@ -528,6 +531,9 @@
528531
/* Define to 1 if you have the <stdint.h> header file. */
529532
#undef HWLOC_HAVE_STDINT_H
530533

534+
/* Define to 1 if function `syscall' is available */
535+
#undef HWLOC_HAVE_SYSCALL
536+
531537
/* Define to 1 if you have the `windows.h' header. */
532538
#undef HWLOC_HAVE_WINDOWS_H
533539

@@ -537,9 +543,6 @@
537543
/* Define to 1 if you have x86 cpuid */
538544
#undef HWLOC_HAVE_X86_CPUID
539545

540-
/* Define to 1 if the _syscall3 macro works */
541-
#undef HWLOC_HAVE__SYSCALL3
542-
543546
/* Define to 1 on HP-UX */
544547
#undef HWLOC_HPUX_SYS
545548

0 commit comments

Comments
 (0)