-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRcppExports.R
192 lines (164 loc) · 5.92 KB
/
RcppExports.R
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
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Fork and initialize zeromq sockets for writing globalDef definitions
#' @param max_nprocs Maximum number of R processes (ie evtWriters required)
#' @param archivePath Path to otf2 archive
#' @param archiveName Name of otf2 archive
#' @param overwrite_archivePath If true then use archivePath as prefix for directory to avoid overwriting, the suffix is generated using current time in seconds
#' @param collect_metrics Collect HWPC metrics via pmpmeas
#' @param flag_print_pids True to print pids of parent and child procs
#' @return <0 if error, 0 if R master, else >0 if child
init_otf2_logger <- function(max_nprocs, archivePath, archiveName, overwrite_archivePath, collect_metrics, flag_print_pids) {
.Call(`_rTrace_init_otf2_logger`, max_nprocs, archivePath, archiveName, overwrite_archivePath, collect_metrics, flag_print_pids)
}
#' r_pmpmeas_init
#' @description Wrapper for pmpmeas_init
#' @return R_NilValue
r_pmpmeas_init <- function() {
.Call(`_rTrace_r_pmpmeas_init`)
}
#' r_pmpmeas_finish
#' @description Wrapper for pmpmeas_finish
#' @return R_NilValue
r_pmpmeas_finish <- function() {
.Call(`_rTrace_r_pmpmeas_finish`)
}
#' r_pmpmeas_start
#' @description Wrapper for pmpmeas_start
#' @return R_NilValue
r_pmpmeas_start <- function() {
.Call(`_rTrace_r_pmpmeas_start`)
}
#' r_pmpmeas_stop
#' @description Wrapper for pmpmeas_stop
#' @param weight Weight to scale metric values (eg average over N runs)
#' @return R_NilValue
r_pmpmeas_stop <- function(weight) {
.Call(`_rTrace_r_pmpmeas_stop`, weight)
}
#' assign_regionRef_array_master
#' @description Array is not assigned on master,
#' rather is signalled to assign on server
#' @param num_funcs Required length of array to store regionRef for each func
#' @return R_NilValue
assign_regionRef_array_master <- function(num_funcs) {
.Call(`_rTrace_assign_regionRef_array_master`, num_funcs)
}
#' assign_regionRef_array_slave
#' @param num_funcs Required length of array to store regionRef for each func
#' @return R_NilValue
assign_regionRef_array_slave <- function(num_funcs) {
.Call(`_rTrace_assign_regionRef_array_slave`, num_funcs)
}
#' get_regionRef_from_array_slave
#' @param func_index Index of function to get regionRef for
#' @return regionRef
get_regionRef_from_array_slave <- function(func_index) {
.Call(`_rTrace_get_regionRef_from_array_slave`, func_index)
}
#' free_regionRef_array_slave
#' @return R_NilValue
free_regionRef_array_slave <- function() {
.Call(`_rTrace_free_regionRef_array_slave`)
}
#' finalize_GlobalDefWriter_client
#' @return RNilValue
finalize_GlobalDefWriter_client <- function() {
.Call(`_rTrace_finalize_GlobalDefWriter_client`)
}
#' define_otf2_regionRef_client
#' @param func_name Name of function to create event for
#' @param func_index Global index of function in R namespace
#' @return regionRef regionRef for use when logging events
define_otf2_regionRef_client <- function(func_name, func_index) {
.Call(`_rTrace_define_otf2_regionRef_client`, func_name, func_index)
}
#' finalize_EvtWriter_client
#' @return R_NilValue
finalize_EvtWriter_client <- function() {
.Call(`_rTrace_finalize_EvtWriter_client`)
}
#' finalize_otf2_client
#' @description Send signal to server to stop collecting event information
#' @return R_NilValue
finalize_otf2_client <- function() {
.Call(`_rTrace_finalize_otf2_client`)
}
#' Send message to enable or disable event measurement from client side
#' @param measurementMode True to enable, else disable
#' @return R_NilValue
evtWriter_MeasurementOnOff_client <- function(measurementMode) {
.Call(`_rTrace_evtWriter_MeasurementOnOff_client`, measurementMode)
}
#' close_EvtWriterSocket_client
#' @return R_NilValue
close_EvtWriterSocket_client <- function() {
.Call(`_rTrace_close_EvtWriterSocket_client`)
}
#' open_EvtWriterSocket_client
#' @return R_NilValue
open_EvtWriterSocket_client <- function() {
.Call(`_rTrace_open_EvtWriterSocket_client`)
}
#' Write event to evt_writer
#' @param regionRef Region id
#' @param event_type True for enter, False for leave region
#' @return R_NilValue
evtWriter_Write_client <- function(regionRef, event_type) {
.Call(`_rTrace_evtWriter_Write_client`, regionRef, event_type)
}
#' set_locationRef
#' @param id ID value belonging to this R proc
#' @return R_NilValue
set_locationRef <- function(id) {
.Call(`_rTrace_set_locationRef`, id)
}
#' get_locationRef
#' @return locationRef Proc number between 0,nprocs-1
get_locationRef <- function() {
.Call(`_rTrace_get_locationRef`)
}
#' set_maxUsedLocationRef_client
#' @param nprocs Current number of active evtWriters/procs
#' @return maxUsedLocationRef Current maximum evtWriters which were active so far
set_maxUsedLocationRef_client <- function(nprocs) {
.Call(`_rTrace_set_maxUsedLocationRef_client`, nprocs)
}
#' print_errnos
#' @description Print error numbers relating to zmq sockets
#' @return R_NilValue
print_errnos <- function() {
.Call(`_rTrace_print_errnos`)
}
#' get_regionRef_array_master
#' @description Signal to server to send regionRef array to new procs
#' @param nprocs Number of new procs to update
#' @return R_NilValue
get_regionRef_array_master <- function(nprocs) {
.Call(`_rTrace_get_regionRef_array_master`, nprocs)
}
#' stopCluster_master
#' @description Signal to end cluster
#' @return R_NilValue
stopCluster_master <- function() {
.Call(`_rTrace_stopCluster_master`)
}
#' get_regionRef_array_slave
#' @description Requests regionRef array from logger proc
#' @param num_funcs Total number of functions in R namespace
#' @return R_NilValue
get_regionRef_array_slave <- function(num_funcs) {
.Call(`_rTrace_get_regionRef_array_slave`, num_funcs)
}
#' get_pid
get_pid <- function() {
.Call(`_rTrace_get_pid`)
}
#' get_tid
get_tid <- function() {
.Call(`_rTrace_get_tid`)
}
#' get_ppid
get_ppid <- function() {
.Call(`_rTrace_get_ppid`)
}