Exception: OpenCL::Error::DEVICE_NOT_AVAILABLE

Inherits:
OpenCL::Error
  • Object
show all
Defined in:
lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb

Overview

Represents the OpenCL CL_DEVICE_NOT_AVAILABLE error

Constant Summary

Constants inherited from OpenCL::Error

BuildProgramFailure, CompileProgramFailure, CompilerNotAvailable, DeviceNotAvailable, DeviceNotFound, DevicePartitionFailed, ExecStatusErrorForEventsInWaitList, ImageFormatMismatch, ImageFormatNotSupported, InvalidArgIndex, InvalidArgSize, InvalidArgValue, InvalidBinary, InvalidBufferSize, InvalidBuildOptions, InvalidCommandQueue, InvalidCompilerOptions, InvalidContext, InvalidDevice, InvalidDevicePartitionCount, InvalidDeviceQueue, InvalidDeviceType, InvalidEvent, InvalidEventWaitList, InvalidGLOBALOffset, InvalidGLOBALWorkSize, InvalidGLObject, InvalidGLSharegroupReferenceKHR, InvalidHostPtr, InvalidImageDescriptor, InvalidImageFormatDescriptor, InvalidImageSize, InvalidKernel, InvalidKernelArgs, InvalidKernelDefinition, InvalidKernelName, InvalidLinkerOptions, InvalidMemObject, InvalidMipLevel, InvalidOperation, InvalidPipeSize, InvalidPlatform, InvalidProgram, InvalidProgramExecutable, InvalidProperty, InvalidQueueProperties, InvalidSampler, InvalidValue, InvalidWorkDimension, InvalidWorkGroupSize, InvalidWorkItemSize, KernelArgInfoNotAvailable, LinkProgramFailure, LinkerNotAvailable, MapFailure, MemCopyOverlap, MemObjectAllocationFailure, MisalignedSubBufferOffset, OutOfHostMemory, OutOfResources, PlatformNotFoundKHR, ProfilingInfoNotAvailable

Instance Attribute Summary

Attributes inherited from OpenCL::Error

#code

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDEVICE_NOT_AVAILABLE

Initilizes code to -2



592
593
594
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 592

def initialize
  super(-2)
end

Class Method Details

.codeObject

Returns the code corresponding to this error class



607
608
609
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 607

def self.code
  return -2
end

.nameObject

Returns a string representing the name corresponding to the error classe



597
598
599
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 597

def self.name
  return "DEVICE_NOT_AVAILABLE"
end

Instance Method Details

#nameObject

Returns a string representing the name corresponding to the error



602
603
604
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 602

def name
  return "DEVICE_NOT_AVAILABLE"
end