Skip to content

Commit 3d7910f

Browse files
author
Ralph Castain
authored
Merge pull request #5010 from rhc54/topic/srun
Move past the '.' when getting jobstepid
2 parents ef28d94 + cd52ccd commit 3d7910f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

opal/mca/pmix/s1/pmix_s1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
3+
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
44
* Copyright (c) 2014-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
@@ -223,7 +223,7 @@ static int s1_init(opal_list_t *ilist)
223223
s1_pname.jobid = strtoul(pmix_id, &str, 10);
224224
s1_pname.jobid = (s1_pname.jobid << 16) & 0xffff0000;
225225
if (NULL != str) {
226-
ui32 = strtoul(str, NULL, 10);
226+
ui32 = strtoul(str+1, NULL, 10);
227227
s1_pname.jobid |= (ui32 & 0x0000ffff);
228228
}
229229
ldr.jobid = s1_pname.jobid;

opal/mca/pmix/s2/pmix_s2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright (c) 2011-2016 Cisco Systems, Inc. All rights reserved.
66
* Copyright (c) 2011-2017 Los Alamos National Security, LLC. All
77
* rights reserved.
8-
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
8+
* Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
99
* Copyright (c) 2014-2016 Research Organization for Information Science
1010
* and Technology (RIST). All rights reserved.
1111
* $COPYRIGHT$
@@ -230,7 +230,7 @@ static int s2_init(opal_list_t *ilist)
230230
s2_pname.jobid = strtoul(pmix_kvs_name, &str, 10);
231231
s2_pname.jobid = (s2_pname.jobid << 16) & 0xffff0000;
232232
if (NULL != str) {
233-
stepid = strtoul(str, NULL, 10);
233+
stepid = strtoul(str+1, NULL, 10);
234234
s2_pname.jobid |= (stepid & 0x0000ffff);
235235
}
236236
s2_pname.vpid = s2_rank;

0 commit comments

Comments
 (0)