Skip to content

Commit

Permalink
Merge pull request ofiwg#2813 from pkcoff/BGQ_Provider_subblock_check
Browse files Browse the repository at this point in the history
prov/bgq: Exit if running in a sub-block
  • Loading branch information
pkcoff authored Mar 15, 2017
2 parents 150e5cf + 1b613f2 commit ae48f3f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions prov/bgq/src/fi_bgq_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,18 @@ static int fi_bgq_getinfo(uint32_t version, const char *node,

if (!((FI_BGQ_FABRIC_DIRECT_PROGRESS == FI_PROGRESS_MANUAL) || (FI_BGQ_FABRIC_DIRECT_PROGRESS == FI_PROGRESS_AUTO))){
fprintf(stderr,"BGQ Provider must be configured with either auto or manual progresss mode specified\n");
exit(1);
assert(0);
}

BG_JobCoords_t jobCoords;
uint32_t jcrc = Kernel_JobCoords(&jobCoords);
if (jobCoords.isSubBlock) {
fprintf(stderr,"BGQ Provider cannot be run in a sub-block.\n");
fflush(stderr);
exit(1);
}

int ret;
struct fi_info *fi, *prev_fi, *curr;

Expand Down

0 comments on commit ae48f3f

Please sign in to comment.