1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
|
.TH "The Cpuset API" 3 "20 Jul 2010" "Version 1.0.2" "Hardware Locality (hwloc)" \" -*- nroff -*-
.ad l
.nh
.SH NAME
The Cpuset API \-
.SS "Defines"
.in +1c
.ti -1c
.RI "#define \fBhwloc_cpuset_foreach_begin\fP(cpu, set)"
.br
.RI "\fILoop macro iterating on CPU set \fCset\fP. \fP"
.ti -1c
.RI "#define \fBhwloc_cpuset_foreach_end\fP()"
.br
.RI "\fIEnd of loop. Needs a terminating ';'. \fP"
.in -1c
.SS "Typedefs"
.in +1c
.ti -1c
.RI "typedef struct hwloc_cpuset_s * \fBhwloc_cpuset_t\fP"
.br
.RI "\fISet of CPUs represented as an opaque pointer to an internal bitmask. \fP"
.ti -1c
.RI "typedef struct hwloc_cpuset_s * \fBhwloc_const_cpuset_t\fP"
.br
.in -1c
.SS "Functions"
.in +1c
.ti -1c
.RI "HWLOC_DECLSPEC \fBhwloc_cpuset_t\fP \fBhwloc_cpuset_alloc\fP (void) __hwloc_attribute_malloc"
.br
.RI "\fIAllocate a new empty CPU set. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_free\fP (\fBhwloc_cpuset_t\fP set)"
.br
.RI "\fIFree CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC \fBhwloc_cpuset_t\fP \fBhwloc_cpuset_dup\fP (\fBhwloc_const_cpuset_t\fP set) __hwloc_attribute_malloc"
.br
.RI "\fIDuplicate CPU set \fCset\fP by allocating a new CPU set and copying \fCset's\fP contents. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_copy\fP (\fBhwloc_cpuset_t\fP dst, \fBhwloc_const_cpuset_t\fP src)"
.br
.RI "\fICopy the contents of CPU set \fCsrc\fP into the already allocated CPU set \fCdst\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_snprintf\fP (char *__hwloc_restrict buf, size_t buflen, \fBhwloc_const_cpuset_t\fP set)"
.br
.RI "\fIStringify a cpuset. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_asprintf\fP (char **strp, \fBhwloc_const_cpuset_t\fP set)"
.br
.RI "\fIStringify a cpuset into a newly allocated string. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_from_string\fP (\fBhwloc_cpuset_t\fP set, const char *__hwloc_restrict string)"
.br
.RI "\fIParse a cpuset string and stores it in CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_zero\fP (\fBhwloc_cpuset_t\fP set)"
.br
.RI "\fIEmpty the CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_fill\fP (\fBhwloc_cpuset_t\fP set)"
.br
.RI "\fIFill CPU set \fCset\fP with all possible CPUs (even if those CPUs don't exist or are otherwise unavailable). \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_from_ulong\fP (\fBhwloc_cpuset_t\fP set, unsigned long mask)"
.br
.RI "\fISetup CPU set \fCset\fP from unsigned long \fCmask\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_from_ith_ulong\fP (\fBhwloc_cpuset_t\fP set, unsigned i, unsigned long mask)"
.br
.RI "\fISetup CPU set \fCset\fP from unsigned long \fCmask\fP used as \fCi\fP -th subset. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC unsigned long \fBhwloc_cpuset_to_ulong\fP (\fBhwloc_const_cpuset_t\fP set) __hwloc_attribute_pure"
.br
.RI "\fIConvert the beginning part of CPU set \fCset\fP into unsigned long \fCmask\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC unsigned long \fBhwloc_cpuset_to_ith_ulong\fP (\fBhwloc_const_cpuset_t\fP set, unsigned i) __hwloc_attribute_pure"
.br
.RI "\fIConvert the \fCi\fP -th subset of CPU set \fCset\fP into unsigned long mask. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_cpu\fP (\fBhwloc_cpuset_t\fP set, unsigned cpu)"
.br
.RI "\fIEmpty the CPU set \fCset\fP and add CPU \fCcpu\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_all_but_cpu\fP (\fBhwloc_cpuset_t\fP set, unsigned cpu)"
.br
.RI "\fIEmpty the CPU set \fCset\fP and add all but the CPU \fCcpu\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_set\fP (\fBhwloc_cpuset_t\fP set, unsigned cpu)"
.br
.RI "\fIAdd CPU \fCcpu\fP in CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_set_range\fP (\fBhwloc_cpuset_t\fP set, unsigned begincpu, unsigned endcpu)"
.br
.RI "\fIAdd CPUs from \fCbegincpu\fP to \fCendcpu\fP in CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_clr\fP (\fBhwloc_cpuset_t\fP set, unsigned cpu)"
.br
.RI "\fIRemove CPU \fCcpu\fP from CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_clr_range\fP (\fBhwloc_cpuset_t\fP set, unsigned begincpu, unsigned endcpu)"
.br
.RI "\fIRemove CPUs from \fCbegincpu\fP to \fCendcpu\fP in CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_isset\fP (\fBhwloc_const_cpuset_t\fP set, unsigned cpu) __hwloc_attribute_pure"
.br
.RI "\fITest whether CPU \fCcpu\fP is part of set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_iszero\fP (\fBhwloc_const_cpuset_t\fP set) __hwloc_attribute_pure"
.br
.RI "\fITest whether set \fCset\fP is empty. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_isfull\fP (\fBhwloc_const_cpuset_t\fP set) __hwloc_attribute_pure"
.br
.RI "\fITest whether set \fCset\fP is completely full. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_isequal\fP (\fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2) __hwloc_attribute_pure"
.br
.RI "\fITest whether set \fCset1\fP is equal to set \fCset2\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_intersects\fP (\fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2) __hwloc_attribute_pure"
.br
.RI "\fITest whether sets \fCset1\fP and \fCset2\fP intersects. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_isincluded\fP (\fBhwloc_const_cpuset_t\fP sub_set, \fBhwloc_const_cpuset_t\fP super_set) __hwloc_attribute_pure"
.br
.RI "\fITest whether set \fCsub_set\fP is part of set \fCsuper_set\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_or\fP (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.br
.RI "\fIOr sets \fCset1\fP and \fCset2\fP and store the result in set \fCres\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_and\fP (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.br
.RI "\fIAnd sets \fCset1\fP and \fCset2\fP and store the result in set \fCres\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_andnot\fP (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.br
.RI "\fIAnd set \fCset1\fP and the negation of \fCset2\fP and store the result in set \fCres\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_xor\fP (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.br
.RI "\fIXor sets \fCset1\fP and \fCset2\fP and store the result in set \fCres\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_not\fP (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set)"
.br
.RI "\fINegate set \fCset\fP and store the result in set \fCres\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_first\fP (\fBhwloc_const_cpuset_t\fP set) __hwloc_attribute_pure"
.br
.RI "\fICompute the first CPU (least significant bit) in CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_last\fP (\fBhwloc_const_cpuset_t\fP set) __hwloc_attribute_pure"
.br
.RI "\fICompute the last CPU (most significant bit) in CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_next\fP (\fBhwloc_const_cpuset_t\fP set, unsigned prev_cpu) __hwloc_attribute_pure"
.br
.RI "\fICompute the next CPU in CPU set \fCset\fP which is after CPU \fCprev_cpu\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC void \fBhwloc_cpuset_singlify\fP (\fBhwloc_cpuset_t\fP set)"
.br
.RI "\fIKeep a single CPU among those set in CPU set \fCset\fP. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_compare_first\fP (\fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2) __hwloc_attribute_pure"
.br
.RI "\fICompare CPU sets \fCset1\fP and \fCset2\fP using their lowest index CPU. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_compare\fP (\fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2) __hwloc_attribute_pure"
.br
.RI "\fICompare CPU sets \fCset1\fP and \fCset2\fP using their highest index CPU. \fP"
.ti -1c
.RI "HWLOC_DECLSPEC int \fBhwloc_cpuset_weight\fP (\fBhwloc_const_cpuset_t\fP set) __hwloc_attribute_pure"
.br
.RI "\fICompute the 'weight' of CPU set \fCset\fP (i.e., number of CPUs that are in the set). \fP"
.in -1c
.SH "Detailed Description"
.PP
For use in hwloc itself, a hwloc_cpuset_t represents a set of logical processors.
.PP
\fBNote:\fP
.RS 4
cpusets are indexed by OS logical processor number.
.RE
.PP
.SH "Define Documentation"
.PP
.SS "#define hwloc_cpuset_foreach_begin(cpu, set)"
.PP
Loop macro iterating on CPU set \fCset\fP. \fCcpu\fP is the loop variable; it should be an unsigned int. The first iteration will set \fCcpu\fP to the lowest index CPU in the set. Successive iterations will iterate through, in order, all remaining CPUs that in the set. To be specific: each iteration will return a value for \fCcpu\fP such that hwloc_cpuset_isset(set, cpu) is true.
.SS "#define hwloc_cpuset_foreach_end()"
.PP
End of loop. Needs a terminating ';'. \fBSee also:\fP
.RS 4
\fBhwloc_cpuset_foreach_begin\fP
.RE
.PP
.SH "Typedef Documentation"
.PP
.SS "typedef struct hwloc_cpuset_s* \fBhwloc_const_cpuset_t\fP"
.SS "typedef struct hwloc_cpuset_s* \fBhwloc_cpuset_t\fP"
.PP
Set of CPUs represented as an opaque pointer to an internal bitmask.
.SH "Function Documentation"
.PP
.SS "HWLOC_DECLSPEC void hwloc_cpuset_all_but_cpu (\fBhwloc_cpuset_t\fP set, unsigned cpu)"
.PP
Empty the CPU set \fCset\fP and add all but the CPU \fCcpu\fP.
.SS "HWLOC_DECLSPEC \fBhwloc_cpuset_t\fP hwloc_cpuset_alloc (void)"
.PP
Allocate a new empty CPU set. \fBReturns:\fP
.RS 4
A valid CPU set or NULL.
.RE
.PP
The CPU set should be freed by a corresponding call to \fBhwloc_cpuset_free()\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_and (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.PP
And sets \fCset1\fP and \fCset2\fP and store the result in set \fCres\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_andnot (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.PP
And set \fCset1\fP and the negation of \fCset2\fP and store the result in set \fCres\fP.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_asprintf (char ** strp, \fBhwloc_const_cpuset_t\fP set)"
.PP
Stringify a cpuset into a newly allocated string. \fBReturns:\fP
.RS 4
the number of character that were actually written (not including the ending \\0).
.RE
.PP
.SS "HWLOC_DECLSPEC void hwloc_cpuset_clr (\fBhwloc_cpuset_t\fP set, unsigned cpu)"
.PP
Remove CPU \fCcpu\fP from CPU set \fCset\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_clr_range (\fBhwloc_cpuset_t\fP set, unsigned begincpu, unsigned endcpu)"
.PP
Remove CPUs from \fCbegincpu\fP to \fCendcpu\fP in CPU set \fCset\fP.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_compare (\fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.PP
Compare CPU sets \fCset1\fP and \fCset2\fP using their highest index CPU. Higher most significant bit is higher. The empty CPU set is considered lower than anything.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_compare_first (\fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.PP
Compare CPU sets \fCset1\fP and \fCset2\fP using their lowest index CPU. Smaller least significant bit is smaller. The empty CPU set is considered higher than anything.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_copy (\fBhwloc_cpuset_t\fP dst, \fBhwloc_const_cpuset_t\fP src)"
.PP
Copy the contents of CPU set \fCsrc\fP into the already allocated CPU set \fCdst\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_cpu (\fBhwloc_cpuset_t\fP set, unsigned cpu)"
.PP
Empty the CPU set \fCset\fP and add CPU \fCcpu\fP.
.SS "HWLOC_DECLSPEC \fBhwloc_cpuset_t\fP hwloc_cpuset_dup (\fBhwloc_const_cpuset_t\fP set)"
.PP
Duplicate CPU set \fCset\fP by allocating a new CPU set and copying \fCset's\fP contents.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_fill (\fBhwloc_cpuset_t\fP set)"
.PP
Fill CPU set \fCset\fP with all possible CPUs (even if those CPUs don't exist or are otherwise unavailable).
.SS "HWLOC_DECLSPEC int hwloc_cpuset_first (\fBhwloc_const_cpuset_t\fP set)"
.PP
Compute the first CPU (least significant bit) in CPU set \fCset\fP. \fBReturns:\fP
.RS 4
-1 if no CPU is set.
.RE
.PP
.SS "HWLOC_DECLSPEC void hwloc_cpuset_free (\fBhwloc_cpuset_t\fP set)"
.PP
Free CPU set \fCset\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_from_ith_ulong (\fBhwloc_cpuset_t\fP set, unsigned i, unsigned long mask)"
.PP
Setup CPU set \fCset\fP from unsigned long \fCmask\fP used as \fCi\fP -th subset.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_from_string (\fBhwloc_cpuset_t\fP set, const char *__hwloc_restrict string)"
.PP
Parse a cpuset string and stores it in CPU set \fCset\fP. Must start and end with a digit.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_from_ulong (\fBhwloc_cpuset_t\fP set, unsigned long mask)"
.PP
Setup CPU set \fCset\fP from unsigned long \fCmask\fP.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_intersects (\fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.PP
Test whether sets \fCset1\fP and \fCset2\fP intersects.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_isequal (\fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.PP
Test whether set \fCset1\fP is equal to set \fCset2\fP.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_isfull (\fBhwloc_const_cpuset_t\fP set)"
.PP
Test whether set \fCset\fP is completely full.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_isincluded (\fBhwloc_const_cpuset_t\fP sub_set, \fBhwloc_const_cpuset_t\fP super_set)"
.PP
Test whether set \fCsub_set\fP is part of set \fCsuper_set\fP.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_isset (\fBhwloc_const_cpuset_t\fP set, unsigned cpu)"
.PP
Test whether CPU \fCcpu\fP is part of set \fCset\fP.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_iszero (\fBhwloc_const_cpuset_t\fP set)"
.PP
Test whether set \fCset\fP is empty.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_last (\fBhwloc_const_cpuset_t\fP set)"
.PP
Compute the last CPU (most significant bit) in CPU set \fCset\fP. \fBReturns:\fP
.RS 4
-1 if no CPU is set.
.RE
.PP
.SS "HWLOC_DECLSPEC int hwloc_cpuset_next (\fBhwloc_const_cpuset_t\fP set, unsigned prev_cpu)"
.PP
Compute the next CPU in CPU set \fCset\fP which is after CPU \fCprev_cpu\fP. \fBReturns:\fP
.RS 4
-1 if no CPU with higher index is set.
.RE
.PP
.SS "HWLOC_DECLSPEC void hwloc_cpuset_not (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set)"
.PP
Negate set \fCset\fP and store the result in set \fCres\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_or (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.PP
Or sets \fCset1\fP and \fCset2\fP and store the result in set \fCres\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_set (\fBhwloc_cpuset_t\fP set, unsigned cpu)"
.PP
Add CPU \fCcpu\fP in CPU set \fCset\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_set_range (\fBhwloc_cpuset_t\fP set, unsigned begincpu, unsigned endcpu)"
.PP
Add CPUs from \fCbegincpu\fP to \fCendcpu\fP in CPU set \fCset\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_singlify (\fBhwloc_cpuset_t\fP set)"
.PP
Keep a single CPU among those set in CPU set \fCset\fP. May be useful before binding so that the process does not have a chance of migrating between multiple logical CPUs in the original mask.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_snprintf (char *__hwloc_restrict buf, size_t buflen, \fBhwloc_const_cpuset_t\fP set)"
.PP
Stringify a cpuset. Up to \fCbuflen\fP characters may be written in buffer \fCbuf\fP.
.PP
\fBReturns:\fP
.RS 4
the number of character that were actually written if not truncating, or that would have been written (not including the ending \\0).
.RE
.PP
.SS "HWLOC_DECLSPEC unsigned long hwloc_cpuset_to_ith_ulong (\fBhwloc_const_cpuset_t\fP set, unsigned i)"
.PP
Convert the \fCi\fP -th subset of CPU set \fCset\fP into unsigned long mask.
.SS "HWLOC_DECLSPEC unsigned long hwloc_cpuset_to_ulong (\fBhwloc_const_cpuset_t\fP set)"
.PP
Convert the beginning part of CPU set \fCset\fP into unsigned long \fCmask\fP.
.SS "HWLOC_DECLSPEC int hwloc_cpuset_weight (\fBhwloc_const_cpuset_t\fP set)"
.PP
Compute the 'weight' of CPU set \fCset\fP (i.e., number of CPUs that are in the set). \fBReturns:\fP
.RS 4
the number of CPUs that are in the set.
.RE
.PP
.SS "HWLOC_DECLSPEC void hwloc_cpuset_xor (\fBhwloc_cpuset_t\fP res, \fBhwloc_const_cpuset_t\fP set1, \fBhwloc_const_cpuset_t\fP set2)"
.PP
Xor sets \fCset1\fP and \fCset2\fP and store the result in set \fCres\fP.
.SS "HWLOC_DECLSPEC void hwloc_cpuset_zero (\fBhwloc_cpuset_t\fP set)"
.PP
Empty the CPU set \fCset\fP.
.SH "Author"
.PP
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
|