Exception: CooCoo::CUDA::NoMemoryError

Inherits:
Error
  • Object
show all
Defined in:
lib/coo-coo/cuda/error.rb

Instance Method Summary collapse

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