Class: Ignis::CUDA::DefaultStream
- Defined in:
- lib/nvruby/cuda/stream.rb
Overview
Default stream that wraps the null stream.
Constant Summary
Constants inherited from Stream
Instance Attribute Summary
Attributes inherited from Stream
Instance Method Summary collapse
- #default? ⇒ Boolean
- #destroy! ⇒ Object
-
#initialize ⇒ DefaultStream
constructor
A new instance of DefaultStream.
Methods inherited from Stream
#completed?, default, #destroyed?, release_finalizer, #synchronize, #to_ptr, #to_s
Constructor Details
#initialize ⇒ DefaultStream
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
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 |