Packages

object gpu extends StrictLogging with UnsafeMathOptimizations with LogContextNotification with GlobalExecutionContext with CommandQueuePool with UseAllGpuDevices with DontReleaseEventTooEarly with SynchronizedCreatingKernel with HandleEventInExecutionContextForIntelAndAMDPlatform with WangHashingRandomNumberGenerator

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. gpu
  2. WangHashingRandomNumberGenerator
  3. Tensors
  4. HandleEventInExecutionContextForIntelAndAMDPlatform
  5. SynchronizedCreatingKernel
  6. DontReleaseEventTooEarly
  7. UseAllGpuDevices
  8. UseAllDevicesByType
  9. CommandQueuePool
  10. GlobalExecutionContext
  11. LogContextNotification
  12. UnsafeMathOptimizations
  13. OpenCL
  14. DefaultCloseable
  15. MonadicCloseable
  16. StrictLogging
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait CachedTensor extends NonInlineTensor
    Definition Classes
    Tensors
  2. trait CompiledKernel extends MonadicCloseable[UnitContinuation]
    Attributes
    protected
    Definition Classes
    Tensors
  3. final case class EventBuffer[JvmType](buffer: Tensors.DeviceBuffer[JvmType], event: Tensors.Event) extends PendingBuffer[JvmType] with Product with Serializable
    Attributes
    protected
    Definition Classes
    Tensors
    Annotations
    @silent()
  4. trait FillTensor extends InlineTensor
    Definition Classes
    Tensors
  5. trait InlineTensor extends Tensor

    An intermediate expression of tensor that can be composed into a more complex expression.

    An intermediate expression of tensor that can be composed into a more complex expression.

    Definition Classes
    Tensors
  6. trait MonoidPrograms extends AnyRef
    Attributes
    protected
    Definition Classes
    Tensors
  7. trait NonInlineTensor extends Tensor

    A Tensor that is associated with a non-inline kernel program (i.e.

    A Tensor that is associated with a non-inline kernel program (i.e. never merged into a larger kernel).

    Definition Classes
    Tensors
  8. sealed trait PendingBuffer[JvmType] extends AnyRef
    Attributes
    protected
    Definition Classes
    Tensors
  9. final case class ReadyBuffer[JvmType](buffer: Tensors.DeviceBuffer[JvmType]) extends PendingBuffer[JvmType] with Product with Serializable
    Attributes
    protected
    Definition Classes
    Tensors
    Annotations
    @silent()
  10. sealed trait Tensor extends AnyRef

    Definition Classes
    Tensors
    Note

    There are three kinds of Tensor.

    • InlineTensor and TransformedTensor are like a @inline def, which can be merged into a larger kernel and will be recalculated whenever a slow action is performed.
    • NonInlineTensor is like a @noinline def, which is never merged into a larger kernel and will be recalculated whenever a slow action is performed.
    • CachedTensor is like a lazy val, which has an associated data buffer on the compute device and will be calculated only once even when slow actions are performed more than once.
  11. trait TransformedTensor extends InlineTensor
    Definition Classes
    Tensors
  12. type CommandQueue = OpenCL.CommandQueue[gpu.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  13. type DeviceBuffer[Element] = OpenCL.DeviceBuffer[gpu.this.type, Element]
    Attributes
    protected
    Definition Classes
    OpenCL
  14. type DeviceId = OpenCL.DeviceId[gpu.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  15. type Event = OpenCL.Event[gpu.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  16. type Kernel = OpenCL.Kernel[gpu.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  17. type PlatformId = OpenCL.PlatformId[gpu.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  18. type Program = OpenCL.Program[gpu.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL

Value Members

  1. object PlusPrograms extends MonoidPrograms
    Attributes
    protected
    Definition Classes
    Tensors
  2. object Tensor
    Definition Classes
    Tensors
  3. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def ##(): Int
    Definition Classes
    AnyRef → Any
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. lazy val acquireCommandQueue: Do[CommandQueue]
    Attributes
    protected
    Definition Classes
    CommandQueuePoolOpenCL
    Annotations
    @transient()
  7. def allocateBuffer[Element](size: Long)(implicit memory: Memory[Element]): Do[DeviceBuffer[Element]]

    Returns an uninitialized buffer of Element on device.

    Returns an uninitialized buffer of Element on device.

    Attributes
    protected
    Definition Classes
    OpenCL
  8. def allocateBufferFrom[Element, HostBuffer](hostBuffer: HostBuffer)(implicit memory: Aux[Element, HostBuffer]): Do[DeviceBuffer[Element]]

    Returns a buffer of Element on device whose content is copied from hostBuffer.

    Returns a buffer of Element on device whose content is copied from hostBuffer.

    Attributes
    protected
    Definition Classes
    OpenCL
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. lazy val context: Long
    Attributes
    protected
    Definition Classes
    OpenCL
    Annotations
    @transient()
  12. def createCommandQueue(deviceId: DeviceId, properties: Map[Int, Long]): CommandQueue
    Attributes
    protected
    Definition Classes
    OpenCL
  13. def createKernel(program: Program): Kernel

    Creates single kernel from this Program.

    Creates single kernel from this Program.

    Attributes
    protected
    Definition Classes
    SynchronizedCreatingKernelOpenCL
    Exceptions thrown

    com.thoughtworks.compute.OpenCL.Exceptions.InvalidValue if the this Program has more than one kernel.

  14. def createKernels(program: Program): Seq[Kernel]
    Attributes
    protected
    Definition Classes
    SynchronizedCreatingKernelOpenCL
  15. def createProgramWithSource(sourceCode: TraversableOnce[CharSequence]): Program
    Attributes
    protected
    Definition Classes
    OpenCL
  16. def defaultProgramOptions: CharSequence
    Attributes
    protected
    Definition Classes
    UnsafeMathOptimizationsOpenCL
  17. lazy val deviceCapabilities: (DeviceId) ⇒ CLCapabilities
    Attributes
    protected
    Definition Classes
    OpenCL
    Annotations
    @transient()
  18. lazy val deviceIds: Seq[DeviceId]
    Attributes
    protected
    Definition Classes
    UseAllDevicesByTypeOpenCL
    Annotations
    @transient()
  19. val deviceType: Status
    Attributes
    protected
    Definition Classes
    UseAllGpuDevicesUseAllDevicesByType
  20. def dispatch(command: (CommandQueue) ⇒ Do[Event]): Do[Event]
    Attributes
    protected
    Definition Classes
    OpenCL
  21. def enqueueReadBuffer[Element, Destination](commandQueue: CommandQueue, deviceBuffer: DeviceBuffer[Element], hostBuffer: Destination, preconditionEvents: Event*)(implicit memory: Aux[Element, Destination]): Do[Event]
    Attributes
    protected
    Definition Classes
    DontReleaseEventTooEarlyOpenCL
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. val executionContext: ExecutionContextExecutor
    Attributes
    protected
    Definition Classes
    GlobalExecutionContext
  25. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def handleOpenCLNotification(errorInfo: String, privateInfoOption: Option[ByteBuffer]): Unit
    Attributes
    protected
    Definition Classes
    LogContextNotificationOpenCL
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def hashSourceCode: Fastring
    Attributes
    protected
    Definition Classes
    WangHashingRandomNumberGeneratorTensors
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. val kernelCache: Cache[(trees)#ValueTerm, CompiledKernel]
    Attributes
    protected[com.thoughtworks.compute]
    Definition Classes
    Tensors
  32. def kernelCacheBuilder: CacheBuilder[(trees)#ValueTerm, CompiledKernel]
    Attributes
    protected
    Definition Classes
    Tensors
  33. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  34. def monadicClose: UnitContinuation[Unit]
    Definition Classes
    TensorsOpenCL → DefaultCloseable → MonadicCloseable
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. val numberOfCommandQueuesPerDevice: Int
    Attributes
    protected
    Definition Classes
    gpuCommandQueuePool
  39. lazy val platformCapabilities: CLCapabilities
    Attributes
    protected
    Definition Classes
    OpenCL
    Annotations
    @transient()
  40. lazy val platformId: PlatformId
    Attributes
    protected
    Definition Classes
    UseAllDevicesByTypeOpenCL
    Annotations
    @transient()
  41. def platformIds: Seq[PlatformId]
    Attributes
    protected
    Definition Classes
    OpenCL
  42. def releaseContext: UnitContinuation[Unit]
    Attributes
    protected
    Definition Classes
    OpenCL
  43. lazy val shutdownCommandQueues: UnitContinuation[Unit]
    Attributes
    protected
    Definition Classes
    CommandQueuePool
    Annotations
    @transient()
  44. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. val trees: AllTrees with MemoryTrees with StructuralTrees { type Category = com.thoughtworks.compute.Expressions.Tuples with com.thoughtworks.compute.Expressions.Floats with com.thoughtworks.compute.Expressions.Arrays }
    Attributes
    protected
    Definition Classes
    Tensors
  47. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  50. def waitForStatus(event: Event, callbackType: Status): UnitContinuation[Status]
    Attributes
    protected
    Definition Classes
    HandleEventInExecutionContextForIntelAndAMDPlatformOpenCL

Inherited from Tensors

Inherited from DontReleaseEventTooEarly

Inherited from UseAllGpuDevices

Inherited from UseAllDevicesByType

Inherited from CommandQueuePool

Inherited from GlobalExecutionContext

Inherited from LogContextNotification

Inherited from UnsafeMathOptimizations

Inherited from OpenCL

Inherited from DefaultCloseable

Inherited from MonadicCloseable[UnitContinuation]

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped