Exception: CooCoo::CUDA::NoMemoryError
- Defined in:
- lib/coo-coo/cuda/error.rb
Instance Method Summary collapse
-
#initialize(amount = nil) ⇒ NoMemoryError
constructor
A new instance of NoMemoryError.
Constructor Details
#initialize(amount = nil) ⇒ NoMemoryError
Returns a new instance of NoMemoryError.
32 33 34 35 36 37 38 |
# File 'lib/coo-coo/cuda/error.rb', line 32 def initialize(amount = nil) if amount super("CUDA failed to allocate #{amount} bytes on the device.") else super("CUDA failed to allocate memory on the device.") end end |