Skip to content

Commit de0f34e

Browse files
authored
Merge pull request #7665 from rhc54/topic/hwl
Remove no-longer-used hwloc support fns
2 parents 1281e2a + ae90412 commit de0f34e

File tree

6 files changed

+4
-1384
lines changed

6 files changed

+4
-1384
lines changed

opal/dss/dss_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ typedef struct {
9191
#define OPAL_BYTE_OBJECT (opal_data_type_t) 20 /**< byte object structure */
9292
#define OPAL_DATA_TYPE (opal_data_type_t) 21 /**< data type */
9393
#define OPAL_NULL (opal_data_type_t) 22 /**< don't interpret data type */
94-
#define OPAL_HWLOC_TOPO (opal_data_type_t) 25 /**< hwloc topology */
9594
#define OPAL_VALUE (opal_data_type_t) 26 /**< opal value structure */
9695
#define OPAL_BUFFER (opal_data_type_t) 27 /**< pack the remaining contents of a buffer as an object */
9796
#define OPAL_PTR (opal_data_type_t) 28 /**< pointer to void* */

opal/mca/hwloc/base/Makefile.am

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
3-
# Copyright (c) 2015 Intel, Inc. All rights reserved.
3+
# Copyright (c) 2015-2020 Intel, Inc. All rights reserved.
44
# $COPYRIGHT$
55
#
66
# Additional copyrights may follow
@@ -15,7 +15,6 @@ headers += \
1515

1616
libmca_hwloc_la_SOURCES += \
1717
base/hwloc_base_frame.c \
18-
base/hwloc_base_dt.c \
1918
base/hwloc_base_util.c \
2019
base/hwloc_base_maffinity.c
2120

opal/mca/hwloc/base/base.h

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2011-2017 Cisco Systems, Inc. All rights reserved
3-
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
3+
* Copyright (c) 2013-2020 Intel, Inc. All rights reserved.
44
* Copyright (c) 2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* $COPYRIGHT$
@@ -175,46 +175,20 @@ OPAL_DECLSPEC unsigned int opal_hwloc_base_get_nbobjs_by_type(hwloc_topology_t t
175175
hwloc_obj_type_t target,
176176
unsigned cache_level,
177177
opal_hwloc_resource_type_t rtype);
178-
OPAL_DECLSPEC void opal_hwloc_base_clear_usage(hwloc_topology_t topo);
179178

180179
OPAL_DECLSPEC hwloc_obj_t opal_hwloc_base_get_obj_by_type(hwloc_topology_t topo,
181180
hwloc_obj_type_t target,
182181
unsigned cache_level,
183182
unsigned int instance,
184183
opal_hwloc_resource_type_t rtype);
185-
OPAL_DECLSPEC unsigned int opal_hwloc_base_get_obj_idx(hwloc_topology_t topo,
186-
hwloc_obj_t obj,
187-
opal_hwloc_resource_type_t rtype);
188184

189-
OPAL_DECLSPEC int opal_hwloc_get_sorted_numa_list(hwloc_topology_t topo,
190-
char* device_name,
191-
opal_list_t *sorted_list);
192-
193-
/**
194-
* Get the number of pu's under a given hwloc object.
195-
*/
196-
OPAL_DECLSPEC unsigned int opal_hwloc_base_get_npus(hwloc_topology_t topo,
197-
hwloc_obj_t target);
198185
OPAL_DECLSPEC char* opal_hwloc_base_print_binding(opal_binding_policy_t binding);
199186

200187
/**
201188
* Determine if there is a single cpu in a bitmap.
202189
*/
203190
OPAL_DECLSPEC bool opal_hwloc_base_single_cpu(hwloc_cpuset_t cpuset);
204191

205-
/**
206-
* Provide a utility to parse a slot list against the local
207-
* cpus of given type, and produce a cpuset for the described binding
208-
*/
209-
OPAL_DECLSPEC int opal_hwloc_base_cpu_list_parse(const char *slot_str,
210-
hwloc_topology_t topo,
211-
opal_hwloc_resource_type_t rtype,
212-
hwloc_cpuset_t cpumask);
213-
214-
OPAL_DECLSPEC char* opal_hwloc_base_find_coprocessors(hwloc_topology_t topo);
215-
OPAL_DECLSPEC char* opal_hwloc_base_check_on_coprocessor(void);
216-
217-
218192
/**
219193
* Report a bind failure using the normal mechanisms if a component
220194
* fails to bind memory -- according to the value of the
@@ -243,23 +217,6 @@ OPAL_DECLSPEC int opal_hwloc_base_node_name_to_id(char *node_name, int *id);
243217
OPAL_DECLSPEC int opal_hwloc_base_memory_set(opal_hwloc_base_memory_segment_t *segments,
244218
size_t num_segments);
245219

246-
/* datatype support */
247-
OPAL_DECLSPEC int opal_hwloc_pack(opal_buffer_t *buffer, const void *src,
248-
int32_t num_vals,
249-
opal_data_type_t type);
250-
OPAL_DECLSPEC int opal_hwloc_unpack(opal_buffer_t *buffer, void *dest,
251-
int32_t *num_vals,
252-
opal_data_type_t type);
253-
OPAL_DECLSPEC int opal_hwloc_copy(hwloc_topology_t *dest,
254-
hwloc_topology_t src,
255-
opal_data_type_t type);
256-
OPAL_DECLSPEC int opal_hwloc_compare(const hwloc_topology_t topo1,
257-
const hwloc_topology_t topo2,
258-
opal_data_type_t type);
259-
OPAL_DECLSPEC int opal_hwloc_print(char **output, char *prefix,
260-
hwloc_topology_t src,
261-
opal_data_type_t type);
262-
263220
/**
264221
* Make a prettyprint string for a hwloc_cpuset_t (e.g., "socket
265222
* 2[core 3]").
@@ -285,11 +242,6 @@ OPAL_DECLSPEC hwloc_obj_t opal_hwloc_base_get_pu(hwloc_topology_t topo,
285242
int lid,
286243
opal_hwloc_resource_type_t rtype);
287244

288-
/* get the topology "signature" so we can check for differences - caller
289-
* if responsible for freeing the returned string */
290-
OPAL_DECLSPEC char* opal_hwloc_base_get_topo_signature(hwloc_topology_t topo);
291-
292-
293245
/* get a string describing the locality of a given process */
294246
OPAL_DECLSPEC char* opal_hwloc_base_get_locality_string(hwloc_topology_t topo, char *bitmap);
295247

@@ -300,8 +252,6 @@ OPAL_DECLSPEC char* opal_hwloc_base_get_location(char *locality,
300252

301253
OPAL_DECLSPEC opal_hwloc_locality_t opal_hwloc_compute_relative_locality(char *loc1, char *loc2);
302254

303-
OPAL_DECLSPEC int opal_hwloc_base_topology_export_xmlbuffer(hwloc_topology_t topology, char **xmlpath, int *buflen);
304-
305255
OPAL_DECLSPEC int opal_hwloc_base_topology_set_flags (hwloc_topology_t topology, unsigned long flags, bool io);
306256
END_C_DECLS
307257

0 commit comments

Comments
 (0)