Class: Ignis::CUDA::DefaultStream

Inherits:
Stream
  • Object
show all
Defined in:
lib/nvruby/cuda/stream.rb

Overview

Default stream that wraps the null stream.

Constant Summary

Constants inherited from Stream

Stream::DEFAULT

Instance Attribute Summary

Attributes inherited from Stream

#handle

Instance Method Summary collapse

Methods inherited from Stream

#completed?, default, #destroyed?, release_finalizer, #synchronize, #to_ptr, #to_s

Constructor Details

#initializeDefaultStream

Returns a new instance of DefaultStream.



122
123
124
125
126
# File 'lib/nvruby/cuda/stream.rb', line 122

def initialize
  @handle = Fiddle::Pointer.new(0)
  @destroyed = false
  @synchronous = true
end

Instance Method Details

#default?Boolean

Returns:

  • (Boolean)


132
133
134
# File 'lib/nvruby/cuda/stream.rb', line 132

def default?
  true
end

#destroy!Object



128
129
130
# File 'lib/nvruby/cuda/stream.rb', line 128

def destroy!
  # Cannot destroy default stream
end