|
10 | 10 | * Copyright (c) 2004-2005 The Regents of the University of California. |
11 | 11 | * All rights reserved. |
12 | 12 | * Copyright (c) 2009-2013 Cisco Systems, Inc. All rights reserved. |
13 | | - * Copyright (c) 2013-2015 Intel, Inc. All rights reserved. |
| 13 | + * Copyright (c) 2013-2016 Intel, Inc. All rights reserved. |
14 | 14 | * Copyright (c) 2015 Research Organization for Information Science |
15 | 15 | * and Technology (RIST). All rights reserved. |
16 | 16 | * $COPYRIGHT$ |
@@ -60,6 +60,7 @@ int orte_rmaps_rr_byslot(orte_job_t *jdata, |
60 | 60 | if (ORTE_MAPPING_NO_OVERSUBSCRIBE & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) { |
61 | 61 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
62 | 62 | true, app->num_procs, app->app); |
| 63 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
63 | 64 | return ORTE_ERR_SILENT; |
64 | 65 | } |
65 | 66 | } |
@@ -194,11 +195,13 @@ int orte_rmaps_rr_byslot(orte_job_t *jdata, |
194 | 195 | if (!(ORTE_MAPPING_SUBSCRIBE_GIVEN & ORTE_GET_MAPPING_DIRECTIVE(orte_rmaps_base.mapping))) { |
195 | 196 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
196 | 197 | true, app->num_procs, app->app); |
| 198 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
197 | 199 | return ORTE_ERR_SILENT; |
198 | 200 | } else if (ORTE_MAPPING_NO_OVERSUBSCRIBE & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) { |
199 | 201 | /* if we were explicitly told not to oversubscribe, then don't */ |
200 | 202 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
201 | 203 | true, app->num_procs, app->app); |
| 204 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
202 | 205 | return ORTE_ERR_SILENT; |
203 | 206 | } |
204 | 207 | } |
@@ -237,6 +240,7 @@ int orte_rmaps_rr_bynode(orte_job_t *jdata, |
237 | 240 | if (ORTE_MAPPING_NO_OVERSUBSCRIBE & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) { |
238 | 241 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
239 | 242 | true, app->num_procs, app->app); |
| 243 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
240 | 244 | return ORTE_ERR_SILENT; |
241 | 245 | } |
242 | 246 | oversubscribed = true; |
@@ -375,11 +379,13 @@ int orte_rmaps_rr_bynode(orte_job_t *jdata, |
375 | 379 | if (!(ORTE_MAPPING_SUBSCRIBE_GIVEN & ORTE_GET_MAPPING_DIRECTIVE(orte_rmaps_base.mapping))) { |
376 | 380 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
377 | 381 | true, app->num_procs, app->app); |
| 382 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
378 | 383 | return ORTE_ERR_SILENT; |
379 | 384 | } else if (ORTE_MAPPING_NO_OVERSUBSCRIBE & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) { |
380 | 385 | /* if we were explicitly told not to oversubscribe, then don't */ |
381 | 386 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
382 | 387 | true, app->num_procs, app->app); |
| 388 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
383 | 389 | return ORTE_ERR_SILENT; |
384 | 390 | } |
385 | 391 | } |
@@ -486,6 +492,7 @@ int orte_rmaps_rr_byobj(orte_job_t *jdata, |
486 | 492 | if (ORTE_MAPPING_NO_OVERSUBSCRIBE & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) { |
487 | 493 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
488 | 494 | true, app->num_procs, app->app); |
| 495 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
489 | 496 | return ORTE_ERR_SILENT; |
490 | 497 | } |
491 | 498 | } |
@@ -592,11 +599,13 @@ int orte_rmaps_rr_byobj(orte_job_t *jdata, |
592 | 599 | if (!(ORTE_MAPPING_SUBSCRIBE_GIVEN & ORTE_GET_MAPPING_DIRECTIVE(orte_rmaps_base.mapping))) { |
593 | 600 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
594 | 601 | true, app->num_procs, app->app); |
| 602 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
595 | 603 | return ORTE_ERR_SILENT; |
596 | 604 | } else if (ORTE_MAPPING_NO_OVERSUBSCRIBE & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) { |
597 | 605 | /* if we were explicitly told not to oversubscribe, then don't */ |
598 | 606 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
599 | 607 | true, app->num_procs, app->app); |
| 608 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
600 | 609 | return ORTE_ERR_SILENT; |
601 | 610 | } |
602 | 611 | } |
@@ -643,6 +652,7 @@ static int byobj_span(orte_job_t *jdata, |
643 | 652 | if (ORTE_MAPPING_NO_OVERSUBSCRIBE & ORTE_GET_MAPPING_DIRECTIVE(jdata->map->mapping)) { |
644 | 653 | orte_show_help("help-orte-rmaps-base.txt", "orte-rmaps-base:alloc-error", |
645 | 654 | true, app->num_procs, app->app); |
| 655 | + ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE); |
646 | 656 | return ORTE_ERR_SILENT; |
647 | 657 | } |
648 | 658 | } |
|
0 commit comments