@@ -171,8 +171,13 @@ static int orte_rmaps_rr_map(orte_job_t *jdata)
171
171
app -> num_procs );
172
172
}
173
173
} else if (ORTE_MAPPING_BYL1CACHE == ORTE_GET_MAPPING_POLICY (jdata -> map -> mapping )) {
174
- rc = orte_rmaps_rr_byobj (jdata , app , & node_list , num_slots ,
175
- app -> num_procs , HWLOC_OBJ_CACHE , 1 );
174
+ rc = orte_rmaps_rr_byobj (jdata , app , & node_list , num_slots , app -> num_procs ,
175
+ #if HWLOC_API_VERSION < 0x20000
176
+ HWLOC_OBJ_CACHE , 1
177
+ #else
178
+ HWLOC_OBJ_L1CACHE , 0
179
+ #endif
180
+ );
176
181
if (ORTE_ERR_NOT_FOUND == rc ) {
177
182
/* if the mapper couldn't map by this object because
178
183
* it isn't available, but the error allows us to try
@@ -183,8 +188,13 @@ static int orte_rmaps_rr_map(orte_job_t *jdata)
183
188
app -> num_procs );
184
189
}
185
190
} else if (ORTE_MAPPING_BYL2CACHE == ORTE_GET_MAPPING_POLICY (jdata -> map -> mapping )) {
186
- rc = orte_rmaps_rr_byobj (jdata , app , & node_list , num_slots ,
187
- app -> num_procs , HWLOC_OBJ_CACHE , 2 );
191
+ rc = orte_rmaps_rr_byobj (jdata , app , & node_list , num_slots , app -> num_procs ,
192
+ #if HWLOC_API_VERSION < 0x20000
193
+ HWLOC_OBJ_CACHE , 2
194
+ #else
195
+ HWLOC_OBJ_L2CACHE , 0
196
+ #endif
197
+ );
188
198
if (ORTE_ERR_NOT_FOUND == rc ) {
189
199
/* if the mapper couldn't map by this object because
190
200
* it isn't available, but the error allows us to try
@@ -195,8 +205,13 @@ static int orte_rmaps_rr_map(orte_job_t *jdata)
195
205
app -> num_procs );
196
206
}
197
207
} else if (ORTE_MAPPING_BYL3CACHE == ORTE_GET_MAPPING_POLICY (jdata -> map -> mapping )) {
198
- rc = orte_rmaps_rr_byobj (jdata , app , & node_list , num_slots ,
199
- app -> num_procs , HWLOC_OBJ_CACHE , 3 );
208
+ rc = orte_rmaps_rr_byobj (jdata , app , & node_list , num_slots , app -> num_procs ,
209
+ #if HWLOC_API_VERSION < 0x20000
210
+ HWLOC_OBJ_CACHE , 3
211
+ #else
212
+ HWLOC_OBJ_L3CACHE , 0
213
+ #endif
214
+ );
200
215
if (ORTE_ERR_NOT_FOUND == rc ) {
201
216
/* if the mapper couldn't map by this object because
202
217
* it isn't available, but the error allows us to try
0 commit comments