File: hwlocality_linux.3

package info (click to toggle)
hwloc 1.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,916 kB
  • ctags: 7,500
  • sloc: ansic: 34,194; sh: 12,810; xml: 8,466; makefile: 1,632; sed: 9; php: 8
file content (66 lines) | stat: -rw-r--r-- 2,421 bytes parent folder | download | duplicates (2)
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
.TH "Linux-specific helpers" 3 "Tue Oct 7 2014" "Version 1.10.0" "Hardware Locality (hwloc)" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Linux-specific helpers \- 
.SS "Functions"

.in +1c
.ti -1c
.RI "int \fBhwloc_linux_parse_cpumap_file\fP (FILE *file, \fBhwloc_cpuset_t\fP set)"
.br
.ti -1c
.RI "int \fBhwloc_linux_set_tid_cpubind\fP (\fBhwloc_topology_t\fP topology, pid_t tid, \fBhwloc_const_cpuset_t\fP set)"
.br
.ti -1c
.RI "int \fBhwloc_linux_get_tid_cpubind\fP (\fBhwloc_topology_t\fP topology, pid_t tid, \fBhwloc_cpuset_t\fP set)"
.br
.ti -1c
.RI "int \fBhwloc_linux_get_tid_last_cpu_location\fP (\fBhwloc_topology_t\fP topology, pid_t tid, \fBhwloc_bitmap_t\fP set)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This includes helpers for manipulating Linux kernel cpumap files, and hwloc equivalents of the Linux sched_setaffinity and sched_getaffinity system calls\&. 
.SH "Function Documentation"
.PP 
.SS "int hwloc_linux_get_tid_cpubind (\fBhwloc_topology_t\fPtopology, pid_ttid, \fBhwloc_cpuset_t\fPset)"

.PP
Get the current binding of thread \fCtid\fP\&. The behavior is exactly the same as the Linux sched_getaffinity system call, but uses a hwloc cpuset\&.
.PP
\fBNote:\fP
.RS 4
This is equivalent to calling \fBhwloc_get_proc_cpubind()\fP with HWLOC_CPUBIND_THREAD as flags\&. 
.RE
.PP

.SS "int hwloc_linux_get_tid_last_cpu_location (\fBhwloc_topology_t\fPtopology, pid_ttid, \fBhwloc_bitmap_t\fPset)"

.PP
Get the last physical CPU where thread \fCtid\fP ran\&. 
.PP
\fBNote:\fP
.RS 4
This is equivalent to calling \fBhwloc_get_proc_last_cpu_location()\fP with HWLOC_CPUBIND_THREAD as flags\&. 
.RE
.PP

.SS "int hwloc_linux_parse_cpumap_file (FILE *file, \fBhwloc_cpuset_t\fPset)"

.PP
Convert a linux kernel cpumap file \fCfile\fP into hwloc CPU set\&. Might be used when reading CPU set from sysfs attributes such as topology and caches for processors, or local_cpus for devices\&. 
.SS "int hwloc_linux_set_tid_cpubind (\fBhwloc_topology_t\fPtopology, pid_ttid, \fBhwloc_const_cpuset_t\fPset)"

.PP
Bind a thread \fCtid\fP on cpus given in cpuset \fCset\fP\&. The behavior is exactly the same as the Linux sched_setaffinity system call, but uses a hwloc cpuset\&.
.PP
\fBNote:\fP
.RS 4
This is equivalent to calling \fBhwloc_set_proc_cpubind()\fP with HWLOC_CPUBIND_THREAD as flags\&. 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.