Class: Ikra::Translator::CommandTranslator::ProgramBuilder::Launcher::CommandNotifier
- Inherits:
-
Symbolic::Visitor
- Object
- Symbolic::Visitor
- Ikra::Translator::CommandTranslator::ProgramBuilder::Launcher::CommandNotifier
- Defined in:
- lib/translator/program_launcher.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
This visitor executes the post_execute function on every Array Command That way the responsible command node will recieve the adress of the computed result that will be kept on GPU.
Instance Method Summary collapse
-
#initialize(environment) ⇒ CommandNotifier
constructor
A new instance of CommandNotifier.
- #visit_array_command(command) ⇒ Object
Methods inherited from Symbolic::Visitor
#visit_array_combine_command, #visit_array_host_section_command, #visit_array_identity_command, #visit_array_in_host_section_command, #visit_array_index_command, #visit_array_reduce_command, #visit_array_select_command, #visit_array_stencil_command, #visit_array_zip_command, #visit_fixed_size_array_in_host_section_command
Constructor Details
#initialize(environment) ⇒ CommandNotifier
Returns a new instance of CommandNotifier.
14 15 16 |
# File 'lib/translator/program_launcher.rb', line 14 def initialize(environment) @environment = environment end |
Instance Attribute Details
#environment ⇒ Object (readonly)
This visitor executes the post_execute function on every Array Command That way the responsible command node will recieve the adress of the computed result that will be kept on GPU
12 13 14 |
# File 'lib/translator/program_launcher.rb', line 12 def environment @environment end |
Instance Method Details
#visit_array_command(command) ⇒ Object
18 19 20 21 |
# File 'lib/translator/program_launcher.rb', line 18 def visit_array_command(command) super(command) command.post_execute(environment) end |