Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
5ea2c1f3
Commit
5ea2c1f3
authored
Jan 16, 2015
by
Jonathan Jenkins
Committed by
Misbah Mubarak
Feb 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up err handling for LP registration
parent
e9bbb298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/util/codes_mapping.c
src/util/codes_mapping.c
+7
-1
No files found.
src/util/codes_mapping.c
View file @
5ea2c1f3
...
...
@@ -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