class Ikra::Translator::BlockTranslationResult
The result of Ruby-to-CUDA translation of a block using {Translator}
Attributes
aux_methods[RW]
@return [String] Auxiliary methods that are called by this block (including transitive method calls)
block_source[RW]
@return [String] Generated CUDA source code
function_name[RW]
@return [String] Name of function of block in CUDA source code
result_type[RW]
@return [UnionType] Return value type of method/block
Public Class Methods
new(c_source:, result_type:, function_name:, aux_methods: [])
click to toggle source
# File lib/translator/block_translator.rb, line 27 def initialize(c_source:, result_type:, function_name:, aux_methods: []) @block_source = c_source @result_type = result_type @function_name = function_name @aux_methods = aux_methods end