diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-07-15 15:15:41 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2013-07-17 18:04:15 -0400 |
commit | 2a0b62dd7d73ad595d60fe2d2ede96befe9c65e6 (patch) | |
tree | bad9364f4ac617d35e6669aacc4e0153c81fe722 /grc/python | |
parent | b2cfe7d00a5c89670d16fd491af51ea3d8a2373e (diff) |
runtime: added support for setting thread affinity to all blocks under a hier_block2.
grc: added field to all blocks to set the thread affinity to a list of processors.
docs: updated docs on thread affinity for new features.
Conflicts:
grc/base/Block.py
grc/python/flow_graph.tmpl
Diffstat (limited to 'grc/python')
-rw-r--r-- | grc/python/flow_graph.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl index 550ecd78b5..2220e28ff7 100644 --- a/grc/python/flow_graph.tmpl +++ b/grc/python/flow_graph.tmpl @@ -161,6 +161,9 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))]) $indent($blk.get_make()) #else self.$blk.get_id() = $indent($blk.get_make()) + #if $blk.get_param('affinity').get_value() + (self.$blk.get_id()).set_processor_affinity($blk.get_param('affinity').get_value()) + #end if #end if #end for ######################################################## |