Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Dorier
codes
Commits
c25d0dc9
Commit
c25d0dc9
authored
Jan 16, 2015
by
Jonathan Jenkins
Browse files
clean up err handling for LP registration
parent
b3dd47d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/codes_mapping.c
View file @
c25d0dc9
...
...
@@ -396,6 +396,7 @@ static void codes_mapping_init(void)
char
lp_type_name
[
MAX_NAME_LENGTH
];
int
nkp_per_pe
=
g_tw_nkp
;
tw_lpid
lpid
,
kpid
;
const
tw_lptype
*
lptype
;
/* have 16 kps per pe, this is the optimized configuration for ROSS custom mapping */
for
(
kpid
=
0
;
kpid
<
nkp_per_pe
;
kpid
++
)
...
...
@@ -419,7 +420,12 @@ static void codes_mapping_init(void)
#endif
tw_lp_onpe
(
ross_lid
,
pe
,
ross_gid
);
tw_lp_onkp
(
g_tw_lp
[
ross_lid
],
g_tw_kp
[
kpid
]);
tw_lp_settype
(
ross_lid
,
lp_type_lookup
(
lp_type_name
));
lptype
=
lp_type_lookup
(
lp_type_name
);
if
(
lptype
==
NULL
)
tw_error
(
TW_LOC
,
"could not find LP with type name
\"
%s
\"
, "
"did you forget to register the LP?
\n
"
,
lp_type_name
);
else
tw_lp_settype
(
ross_lid
,
lptype
);
}
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment