@@ -75,10 +75,10 @@ qvi_test_scope_report(
75
75
76
76
const int pid = qvi_test_gettid ();
77
77
78
- int taskid ;
79
- int rc = qv_scope_taskid (scope, &taskid );
78
+ int sgrank ;
79
+ int rc = qv_scope_group_rank (scope, &sgrank );
80
80
if (rc != QV_SUCCESS) {
81
- ers = " qv_scope_taskid () failed" ;
81
+ ers = " qv_scope_group_rank () failed" ;
82
82
qvi_test_panic (" %s (rc=%s)" , ers, qv_strerr (rc));
83
83
}
84
84
@@ -90,9 +90,9 @@ qvi_test_scope_report(
90
90
}
91
91
92
92
printf (
93
- " [%d] %s taskid is %d\n "
93
+ " [%d] %s sgrank is %d\n "
94
94
" [%d] %s ntasks is %d\n " ,
95
- pid, scope_name, taskid ,
95
+ pid, scope_name, sgrank ,
96
96
pid, scope_name, ntasks
97
97
);
98
98
@@ -113,21 +113,12 @@ qvi_test_bind_push(
113
113
char const *ers = NULL ;
114
114
const int pid = qvi_test_gettid ();
115
115
116
- int taskid ;
117
- int rc = qv_scope_taskid (scope, &taskid );
116
+ int sgrank ;
117
+ int rc = qv_scope_group_rank (scope, &sgrank );
118
118
if (rc != QV_SUCCESS) {
119
- ers = " qv_scope_taskid () failed" ;
119
+ ers = " qv_scope_group_rank () failed" ;
120
120
qvi_test_panic (" %s (rc=%s)" , ers, qv_strerr (rc));
121
121
}
122
-
123
- if (getenv (" HWLOC_XMLFILE" )) {
124
- if (taskid == 0 ) {
125
- printf (" *** Using synthetic topology. "
126
- " Skipping change_bind tests. ***\n " );
127
- }
128
- return ;
129
- }
130
-
131
122
// Get current binding.
132
123
char *bind0s;
133
124
rc = qv_scope_bind_string (scope, QV_BIND_STRING_AS_LIST, &bind0s);
@@ -168,21 +159,12 @@ qvi_test_bind_pop(
168
159
169
160
const int pid = qvi_test_gettid ();
170
161
171
- int taskid ;
172
- int rc = qv_scope_taskid (scope, &taskid );
162
+ int sgrank ;
163
+ int rc = qv_scope_group_rank (scope, &sgrank );
173
164
if (rc != QV_SUCCESS) {
174
- ers = " qv_scope_taskid () failed" ;
165
+ ers = " qv_scope_group_rank () failed" ;
175
166
qvi_test_panic (" %s (rc=%s)" , ers, qv_strerr (rc));
176
167
}
177
-
178
- if (getenv (" HWLOC_XMLFILE" )) {
179
- if (taskid == 0 ) {
180
- printf (" *** Using synthetic topology. "
181
- " Skipping change_bind tests. ***\n " );
182
- }
183
- return ;
184
- }
185
-
186
168
// Get current binding.
187
169
char *bind0s;
188
170
rc = qv_scope_bind_string (scope, QV_BIND_STRING_AS_LIST, &bind0s);
@@ -198,7 +180,6 @@ qvi_test_bind_pop(
198
180
ers = " qv_bind_push() failed" ;
199
181
qvi_test_panic (" %s (rc=%s)" , ers, qv_strerr (rc));
200
182
}
201
-
202
183
// Get new, current binding.
203
184
char *bind1s;
204
185
rc = qv_scope_bind_string (scope, QV_BIND_STRING_AS_LIST, &bind1s);
@@ -224,21 +205,12 @@ qvi_test_change_bind(
224
205
225
206
const int pid = qvi_test_gettid ();
226
207
227
- int taskid ;
228
- int rc = qv_scope_taskid (scope, &taskid );
208
+ int sgrank ;
209
+ int rc = qv_scope_group_rank (scope, &sgrank );
229
210
if (rc != QV_SUCCESS) {
230
- ers = " qv_scope_taskid () failed" ;
211
+ ers = " qv_scope_group_rank () failed" ;
231
212
qvi_test_panic (" %s (rc=%s)" , ers, qv_strerr (rc));
232
213
}
233
-
234
- if (getenv (" HWLOC_XMLFILE" )) {
235
- if (taskid == 0 ) {
236
- printf (" *** Using synthetic topology. "
237
- " Skipping change_bind tests. ***\n " );
238
- }
239
- return ;
240
- }
241
-
242
214
// Get current binding.
243
215
char *bind0s;
244
216
rc = qv_scope_bind_string (scope, QV_BIND_STRING_AS_LIST, &bind0s);
0 commit comments