Sha256: fa6041c49b8660c3035bbcc9e169d191d3c516c54f8c6ea06ba54338c76b7166
Contents?: true
Size: 549 Bytes
Versions: 20
Compression:
Stored size: 549 Bytes
Contents
require_relative '../cuda' module Cumo::CUDA # CUDA link state. class LinkState def initialize @ptr = Driver.cuLinkCreate if block_given? begin yield(self) ensure destroy end end end def destroy return unless @ptr Driver.cuLinkDestroy(@ptr) @ptr = nil end def add_ptr_data(data, name) Driver.cuLinkAddData(@ptr, Driver::CU_JIT_INPUT_PTX, data, name) end def complete cubin = Driver.cuLinkComplete(@ptr) end end end
Version data entries
20 entries across 20 versions & 1 rubygems