Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
843f9eb5
Commit
843f9eb5
authored
Aug 13, 2014
by
Jonathan Jenkins
Browse files
configurable mem-factor
parent
9aa50edf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/codes_mapping.c
View file @
843f9eb5
...
...
@@ -452,6 +452,14 @@ void codes_mapping_setup()
g_tw_mapping
=
CUSTOM
;
g_tw_custom_initial_mapping
=&
codes_mapping_init
;
g_tw_custom_lp_global_to_local_map
=&
codes_mapping_to_lp
;
// configure mem-factor
int
mem_factor_conf
;
int
rc
=
configuration_get_value_int
(
&
config
,
"PARAMS"
,
"pe_mem_factor"
,
NULL
,
&
mem_factor_conf
);
if
(
rc
==
0
&&
mem_factor_conf
>
0
)
mem_factor
=
mem_factor_conf
;
g_tw_events_per_pe
=
mem_factor
*
codes_mapping_get_lps_for_pe
();
configuration_get_value_int
(
&
config
,
"PARAMS"
,
"message_size"
,
NULL
,
&
message_size
);
if
(
!
message_size
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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