Uses of Class
com.ibm.cuda.CudaException
Packages that use CudaException
-
Uses of CudaException in com.ibm.cuda
Methods in com.ibm.cuda that throw CudaExceptionModifier and TypeMethodDescriptionCudaLinker.add
(CudaJitInputType type, byte[] data, String name) Adds a new code fragment to be linked into the module under construction using the default options.CudaLinker.add
(CudaJitInputType type, byte[] data, String name, CudaJitOptions options) Adds a new code fragment to be linked into the module under construction using the specified options.CudaLinker.add
(CudaJitInputType type, InputStream input, String name) Adds a new code fragment to be linked into the module under construction using the default options.CudaLinker.add
(CudaJitInputType type, InputStream input, String name, CudaJitOptions options) Adds a new code fragment to be linked into the module under construction using the default options.void
CudaDevice.addCallback
(Runnable callback) Queues the givencallback
to be executed when the associated device has completed all previous actions in the default stream.void
CudaStream.addCallback
(Runnable callback) Enqueues a callback to be run after all previous work on this stream has been completed.static ByteBuffer
Cuda.allocatePinnedHostBuffer
(long capacity) Allocates a new direct byte buffer, backed by page-locked host memory; enabling optimal performance of transfers to and from device memory.boolean
CudaDevice.canAccessPeer
(CudaDevice peerDevice) Returns whether this device can access memory of the specifiedpeerDevice
.void
CudaBuffer.close()
Releases the region of device memory backing this buffer.void
CudaEvent.close()
Releases resources associated with this event.void
CudaStream.close()
Closes this stream.byte[]
CudaLinker.complete()
Completes the module under construction and return an image suitable for loading.void
CudaBuffer.copyFrom
(byte[] array) Copies all data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(byte[] array, int fromIndex, int toIndex) Copies data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(char[] array) Copies all data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(char[] array, int fromIndex, int toIndex) Copies data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(double[] array) Copies all data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(double[] array, int fromIndex, int toIndex) Copies data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(float[] array) Copies all data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(float[] array, int fromIndex, int toIndex) Copies data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(int[] array) Copies all data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(int[] array, int fromIndex, int toIndex) Copies data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(long[] array) Copies all data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(long[] array, int fromIndex, int toIndex) Copies data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(short[] array) Copies all data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(short[] array, int fromIndex, int toIndex) Copies data from the specifiedarray
(on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(CudaBuffer source, long fromOffset, long toOffset) Copies data from the specifiedsource
buffer (on a device) to this buffer (on the device).void
CudaBuffer.copyFrom
(ByteBuffer source) Copies data from the specifiedsource
buffer (on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(CharBuffer source) Copies data from the specifiedsource
buffer (on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(DoubleBuffer source) Copies data from the specifiedsource
buffer (on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(FloatBuffer source) Copies data from the specifiedsource
buffer (on the Java host) to this buffer (on the device).void
Copies data from the specifiedsource
buffer (on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(LongBuffer source) Copies data from the specifiedsource
buffer (on the Java host) to this buffer (on the device).void
CudaBuffer.copyFrom
(ShortBuffer source) Copies data from the specifiedsource
buffer (on the Java host) to this buffer (on the device).void
CudaBuffer.copyTo
(byte[] array) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(byte[] array, int fromIndex, int toIndex) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(char[] array) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(char[] array, int fromIndex, int toIndex) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(double[] array) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(double[] array, int fromIndex, int toIndex) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(float[] array) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(float[] array, int fromIndex, int toIndex) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(int[] array) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(int[] array, int fromIndex, int toIndex) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(long[] array) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(long[] array, int fromIndex, int toIndex) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(short[] array) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(short[] array, int fromIndex, int toIndex) Copies data from this buffer (on the device) to the specifiedarray
(on the Java host).void
CudaBuffer.copyTo
(ByteBuffer target) Copies data from this buffer (on the device) to the specifiedtarget
buffer (on the Java host).void
CudaBuffer.copyTo
(CharBuffer target) Copies data from this buffer (on the device) to the specifiedtarget
buffer (on the Java host).void
CudaBuffer.copyTo
(DoubleBuffer target) Copies data from this buffer (on the device) to the specifiedtarget
buffer (on the Java host).void
CudaBuffer.copyTo
(FloatBuffer target) Copies data from this buffer (on the device) to the specifiedtarget
buffer (on the Java host).void
Copies data from this buffer (on the device) to the specifiedtarget
buffer (on the Java host).void
CudaBuffer.copyTo
(LongBuffer target) Copies data from this buffer (on the device) to the specifiedtarget
buffer (on the Java host).void
CudaBuffer.copyTo
(ShortBuffer target) Copies data from this buffer (on the device) to the specifiedtarget
buffer (on the Java host).void
CudaLinker.destroy()
Destroys this linker, releasing associated resources.void
CudaDevice.disablePeerAccess
(CudaDevice peerDevice) Disable access to memory ofpeerDevice
by this device.float
CudaEvent.elapsedTimeSince
(CudaEvent priorEvent) Returns the elapsed time (in milliseconds) relative to the specifiedpriorEvent
.void
CudaDevice.enablePeerAccess
(CudaDevice peerDevice) Enable access to memory ofpeerDevice
by this device.void
CudaBuffer.fillByte
(byte value, long count) Storescount
copies ofvalue
in this buffer.void
CudaBuffer.fillChar
(char value, long count) Storescount
copies ofvalue
in this buffer.void
CudaBuffer.fillFloat
(float value, long count) Storescount
copies ofvalue
in this buffer.void
CudaBuffer.fillInt
(int value, long count) Storescount
copies ofvalue
in this buffer.void
CudaBuffer.fillShort
(short value, long count) Storescount
copies ofvalue
in this buffer.int
CudaDevice.getAttribute
(int attribute) Returns the value of the specifiedattribute
.int
CudaFunction.getAttribute
(int attribute) Returns the value of the specified @{code attribute}.final int
CudaKernel.getAttribute
(int attribute) Returns the value of the specified @{code attribute} for thefunction
associated with this kernel.CudaDevice.getCacheConfig()
Returns the current cache configuration of this device.static int
CudaDevice.getCount()
Returns the number of CUDA-capable devices available to the Java host.static int
Cuda.getDeviceCount()
Returns the number of CUDA-capable devices available to the Java host.static int
Cuda.getDriverVersion()
Returns a number identifying the driver version.static int
CudaDevice.getDriverVersion()
Deprecated.Use Cuda.getDriverVersion() instead.int
CudaStream.getFlags()
Returns the flags of this stream.long
CudaDevice.getFreeMemory()
Returns the amount of free device memory in bytes.CudaModule.getFunction
(String name) Returns the function of the specified name from this module.Returns the global variable of the specified name from this module.int
CudaDevice.getGreatestStreamPriority()
Returns the greatest possible priority of a stream on this device.int
CudaDevice.getLeastStreamPriority()
Returns the least possible priority of a stream on this device.long
CudaDevice.getLimit
(CudaDevice.Limit limit) Returns the value of the specifiedlimit
.CudaDevice.getName()
Returns the name of this device.int
CudaStream.getPriority()
Returns the priority of this stream.static int
Cuda.getRuntimeVersion()
Returns a number identifying the runtime version.static int
CudaDevice.getRuntimeVersion()
Deprecated.Use Cuda.getRuntimeVersion() instead.CudaDevice.getSharedMemConfig()
Returns the current shared memory configuration of this device.CudaModule.getSurface
(String name) Returns the surface of the specified name from this module.CudaModule.getTexture
(String name) Returns the texture of the specified name from this module.long
CudaDevice.getTotalMemory()
Returns the total amount of memory on this device in bytes.final void
CudaKernel.launch
(CudaGrid grid, CudaKernel.Parameters parameters) Launches this kernel.final void
Launches this kernel.void
CudaEvent.record
(CudaDevice device) Records this event on the default stream of the specified device.void
CudaEvent.record
(CudaStream stream) Records this event on the specified stream.void
CudaDevice.setCacheConfig
(CudaDevice.CacheConfig config) Configures the cache of this device.void
CudaFunction.setCacheConfig
(CudaDevice.CacheConfig config) Configures the cache for this function.final void
CudaKernel.setCacheConfig
(CudaDevice.CacheConfig config) Configures the cache for thefunction
associated with this kernel.void
CudaDevice.setLimit
(CudaDevice.Limit limit, long value) Configures the specifiedlimit
.void
CudaDevice.setSharedMemConfig
(CudaDevice.SharedMemConfig config) Configures the shared memory of this device.void
CudaFunction.setSharedMemConfig
(CudaDevice.SharedMemConfig config) Configures the shared memory of this function.final void
CudaKernel.setSharedMemConfig
(CudaDevice.SharedMemConfig config) Configures the shared memory of thefunction
associated with this kernel.void
CudaDevice.synchronize()
Synchronizes on this device.void
CudaEvent.synchronize()
Synchronizes on this event.void
CudaStream.synchronize()
Synchronizes with this stream.void
CudaModule.unload()
Unloads this module from the associated device.void
Makes all future work submitted to this stream wait for the specified event to occur.Constructors in com.ibm.cuda that throw CudaExceptionModifierConstructorDescriptionCudaBuffer
(CudaDevice device, long byteCount) Allocates a new region on the specifieddevice
of sizebyteCount
bytes.CudaEvent
(CudaDevice device) Creates a new event on the specified device with default flags.CudaEvent
(CudaDevice device, int flags) Creates a new event on the specified device with the specifiedflags
.CudaKernel
(CudaModule module, String functionName) Creates a new kernel object in the given module whose entry point is the function with the specified name.CudaLinker
(CudaDevice device) Creates a new linker for the specifieddevice
using default options.CudaLinker
(CudaDevice device, CudaJitOptions options) Creates a new linker for the specifieddevice
using the specifiedoptions
.CudaModule
(CudaDevice device, byte[] image) Loads a module on the specified device, using the given image and the default options.CudaModule
(CudaDevice device, byte[] image, CudaJitOptions options) Loads a module on the specified device, using the given image and the given options.CudaModule
(CudaDevice device, InputStream input) Loads a module on the specified device from the given input stream using the default options.CudaModule
(CudaDevice device, InputStream input, CudaJitOptions options) Loads a module on the specified device from the given input stream using the specified options.CudaStream
(CudaDevice device) Creates a new stream on the specified device, with the default flags and the default priority.CudaStream
(CudaDevice device, int flags, int priority) Creates a new stream on the specified device, with the specified flags and priority.