File tree Expand file tree Collapse file tree 8 files changed +40
-9
lines changed Expand file tree Collapse file tree 8 files changed +40
-9
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2010-2021 Inria. All rights reserved.
2
+ * Copyright © 2010-2023 Inria. All rights reserved.
3
3
* Copyright © 2010-2011 Université Bordeaux
4
4
* Copyright © 2011 Cisco Systems, Inc. All rights reserved.
5
5
* See COPYING in top-level directory.
@@ -42,6 +42,9 @@ extern "C" {
42
42
/** \brief Return the domain, bus and device IDs of the CUDA device \p cudevice.
43
43
*
44
44
* Device \p cudevice must match the local machine.
45
+ *
46
+ * \return 0 on success.
47
+ * \return -1 on error, for instance if device information could not be found.
45
48
*/
46
49
static __hwloc_inline int
47
50
hwloc_cuda_get_device_pci_ids (hwloc_topology_t topology __hwloc_attribute_unused ,
@@ -87,6 +90,9 @@ hwloc_cuda_get_device_pci_ids(hwloc_topology_t topology __hwloc_attribute_unused
87
90
*
88
91
* This function is currently only implemented in a meaningful way for
89
92
* Linux; other systems will simply get a full cpuset.
93
+ *
94
+ * \return 0 on success.
95
+ * \return -1 on error, for instance if device information could not be found.
90
96
*/
91
97
static __hwloc_inline int
92
98
hwloc_cuda_get_device_cpuset (hwloc_topology_t topology __hwloc_attribute_unused ,
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2010-2021 Inria. All rights reserved.
2
+ * Copyright © 2010-2023 Inria. All rights reserved.
3
3
* Copyright © 2010-2011 Université Bordeaux
4
4
* Copyright © 2011 Cisco Systems, Inc. All rights reserved.
5
5
* See COPYING in top-level directory.
@@ -43,6 +43,9 @@ extern "C" {
43
43
/** \brief Return the domain, bus and device IDs of the CUDA device whose index is \p idx.
44
44
*
45
45
* Device index \p idx must match the local machine.
46
+ *
47
+ * \return 0 on success.
48
+ * \return -1 on error, for instance if device information could not be found.
46
49
*/
47
50
static __hwloc_inline int
48
51
hwloc_cudart_get_device_pci_ids (hwloc_topology_t topology __hwloc_attribute_unused ,
@@ -84,6 +87,9 @@ hwloc_cudart_get_device_pci_ids(hwloc_topology_t topology __hwloc_attribute_unus
84
87
*
85
88
* This function is currently only implemented in a meaningful way for
86
89
* Linux; other systems will simply get a full cpuset.
90
+ *
91
+ * \return 0 on success.
92
+ * \return -1 on error, for instance if device information could not be found.
87
93
*/
88
94
static __hwloc_inline int
89
95
hwloc_cudart_get_device_cpuset (hwloc_topology_t topology __hwloc_attribute_unused ,
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright © 2012 Blue Brain Project, EPFL. All rights reserved.
3
- * Copyright © 2012-2021 Inria. All rights reserved.
3
+ * Copyright © 2012-2023 Inria. All rights reserved.
4
4
* See COPYING in top-level directory.
5
5
*/
6
6
@@ -102,7 +102,8 @@ hwloc_gl_get_display_osdev_by_name(hwloc_topology_t topology,
102
102
* Retrieves the OpenGL display port (server) in \p port and device (screen)
103
103
* in \p screen that correspond to the given hwloc OS device object.
104
104
*
105
- * \return \c -1 if none could be found.
105
+ * \return 0 on success.
106
+ * \return -1 if none could be found.
106
107
*
107
108
* The topology \p topology does not necessarily have to match the current
108
109
* machine. For instance the topology may be an XML import of a remote host.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2021 Inria. All rights reserved.
2
+ * Copyright © 2021-2023 Inria. All rights reserved.
3
3
* See COPYING in top-level directory.
4
4
*/
5
5
@@ -55,6 +55,9 @@ extern "C" {
55
55
*
56
56
* This function is currently only implemented in a meaningful way for
57
57
* Linux; other systems will simply get a full cpuset.
58
+ *
59
+ * \return 0 on success.
60
+ * \return -1 on error, for instance if device information could not be found.
58
61
*/
59
62
static __hwloc_inline int
60
63
hwloc_levelzero_get_device_cpuset (hwloc_topology_t topology __hwloc_attribute_unused ,
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2012-2021 Inria. All rights reserved.
2
+ * Copyright © 2012-2023 Inria. All rights reserved.
3
3
* See COPYING in top-level directory.
4
4
*/
5
5
@@ -51,6 +51,9 @@ extern "C" {
51
51
*
52
52
* This function is currently only implemented in a meaningful way for
53
53
* Linux; other systems will simply get a full cpuset.
54
+ *
55
+ * \return 0 on success.
56
+ * \return -1 on error, for instance if device information could not be found.
54
57
*/
55
58
static __hwloc_inline int
56
59
hwloc_nvml_get_device_cpuset (hwloc_topology_t topology __hwloc_attribute_unused ,
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2012-2021 Inria. All rights reserved.
2
+ * Copyright © 2012-2023 Inria. All rights reserved.
3
3
* Copyright © 2013, 2018 Université Bordeaux. All right reserved.
4
4
* See COPYING in top-level directory.
5
5
*/
@@ -69,6 +69,9 @@ typedef union {
69
69
/** \brief Return the domain, bus and device IDs of the OpenCL device \p device.
70
70
*
71
71
* Device \p device must match the local machine.
72
+ *
73
+ * \return 0 on success.
74
+ * \return -1 on error, for instance if device information could not be found.
72
75
*/
73
76
static __hwloc_inline int
74
77
hwloc_opencl_get_device_pci_busid (cl_device_id device ,
@@ -126,6 +129,9 @@ hwloc_opencl_get_device_pci_busid(cl_device_id device,
126
129
* This function is currently only implemented in a meaningful way for
127
130
* Linux with the AMD or NVIDIA OpenCL implementation; other systems will simply
128
131
* get a full cpuset.
132
+ *
133
+ * \return 0 on success.
134
+ * \return -1 on error, for instance if the device could not be found.
129
135
*/
130
136
static __hwloc_inline int
131
137
hwloc_opencl_get_device_cpuset (hwloc_topology_t topology __hwloc_attribute_unused ,
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright © 2009 CNRS
3
- * Copyright © 2009-2021 Inria. All rights reserved.
3
+ * Copyright © 2009-2023 Inria. All rights reserved.
4
4
* Copyright © 2009-2010 Université Bordeaux
5
5
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
6
6
* See COPYING in top-level directory.
@@ -57,6 +57,9 @@ extern "C" {
57
57
*
58
58
* This function is currently only implemented in a meaningful way for
59
59
* Linux; other systems will simply get a full cpuset.
60
+ *
61
+ * \return 0 on success.
62
+ * \return -1 on error, for instance if device information could not be found.
60
63
*/
61
64
static __hwloc_inline int
62
65
hwloc_ibv_get_device_cpuset (hwloc_topology_t topology __hwloc_attribute_unused ,
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2012-2021 Inria. All rights reserved.
2
+ * Copyright © 2012-2023 Inria. All rights reserved.
3
3
* Copyright (c) 2020, Advanced Micro Devices, Inc. All rights reserved.
4
4
* Written by Advanced Micro Devices,
5
5
* See COPYING in top-level directory.
@@ -55,6 +55,9 @@ extern "C" {
55
55
*
56
56
* This function is currently only implemented in a meaningful way for
57
57
* Linux; other systems will simply get a full cpuset.
58
+ *
59
+ * \return 0 on success.
60
+ * \return -1 on error, for instance if device information could not be found.
58
61
*/
59
62
static __hwloc_inline int
60
63
hwloc_rsmi_get_device_cpuset (hwloc_topology_t topology __hwloc_attribute_unused ,
You can’t perform that action at this time.
0 commit comments