Packages

trait Tensors extends OpenCL

Source
Tensors.scala
Linear Supertypes
OpenCL, DefaultCloseable, MonadicCloseable[UnitContinuation], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tensors
  2. OpenCL
  3. DefaultCloseable
  4. MonadicCloseable
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait CachedTensor extends NonInlineTensor
  2. type CommandQueue = OpenCL.CommandQueue[Tensors.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  3. trait CompiledKernel extends MonadicCloseable[UnitContinuation]
    Attributes
    protected
  4. type DeviceBuffer[Element] = OpenCL.DeviceBuffer[Tensors.this.type, Element]
    Attributes
    protected
    Definition Classes
    OpenCL
  5. type DeviceId = OpenCL.DeviceId[Tensors.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  6. type Event = OpenCL.Event[Tensors.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  7. final case class EventBuffer[JvmType](buffer: Tensors.DeviceBuffer[JvmType], event: Tensors.Event) extends PendingBuffer[JvmType] with Product with Serializable
    Attributes
    protected
    Annotations
    @silent()
  8. trait FillTensor extends InlineTensor
  9. trait InlineTensor extends Tensor

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

  10. type Kernel = OpenCL.Kernel[Tensors.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  11. trait MonoidPrograms extends AnyRef
    Attributes
    protected
  12. 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).

  13. sealed trait PendingBuffer[JvmType] extends AnyRef
    Attributes
    protected
  14. type PlatformId = OpenCL.PlatformId[Tensors.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  15. type Program = OpenCL.Program[Tensors.this.type]
    Attributes
    protected
    Definition Classes
    OpenCL
  16. final case class ReadyBuffer[JvmType](buffer: Tensors.DeviceBuffer[JvmType]) extends PendingBuffer[JvmType] with Product with Serializable
    Attributes
    protected
    Annotations
    @silent()
  17. sealed trait Tensor extends AnyRef

    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.
  18. trait TransformedTensor extends InlineTensor

Abstract Value Members

  1. abstract def acquireCommandQueue: Do[CommandQueue]
    Attributes
    protected
    Definition Classes
    OpenCL
  2. abstract val deviceIds: Seq[DeviceId]
    Attributes
    protected
    Definition Classes
    OpenCL
  3. implicit abstract val executionContext: ExecutionContext
    Attributes
    protected
  4. abstract def handleOpenCLNotification(errorInfo: String, privateInfo: Option[ByteBuffer]): Unit
    Attributes
    protected
    Definition Classes
    OpenCL
  5. abstract def hashSourceCode: Fastring
    Attributes
    protected
  6. abstract val logger: Logger
    Attributes
    protected
    Definition Classes
    OpenCL
  7. abstract val platformId: PlatformId
    Attributes
    protected
    Definition Classes
    OpenCL

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Tensors to any2stringadd[Tensors] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Tensors, B)
    Implicit
    This member is added by an implicit conversion from Tensors to ArrowAssoc[Tensors] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. 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
  7. 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
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. lazy val context: Long
    Attributes
    protected
    Definition Classes
    OpenCL
    Annotations
    @transient()
  11. def createCommandQueue(deviceId: DeviceId, properties: Map[Int, Long]): CommandQueue
    Attributes
    protected
    Definition Classes
    OpenCL
  12. def createKernel(program: Program): Kernel

    Creates single kernel from this Program.

    Creates single kernel from this Program.

    Attributes
    protected
    Definition Classes
    OpenCL
    Exceptions thrown

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

  13. def createKernels(program: Program): Seq[Kernel]
    Attributes
    protected
    Definition Classes
    OpenCL
  14. def createProgramWithSource(sourceCode: TraversableOnce[CharSequence]): Program
    Attributes
    protected
    Definition Classes
    OpenCL
  15. def defaultProgramOptions: CharSequence
    Attributes
    protected
    Definition Classes
    OpenCL
  16. lazy val deviceCapabilities: (DeviceId) ⇒ CLCapabilities
    Attributes
    protected
    Definition Classes
    OpenCL
    Annotations
    @transient()
  17. def dispatch(command: (CommandQueue) ⇒ Do[Event]): Do[Event]
    Attributes
    protected
    Definition Classes
    OpenCL
  18. def enqueueReadBuffer[Element, Destination](commandQueue: CommandQueue, deviceBuffer: DeviceBuffer[Element], hostBuffer: Destination, preconditionEvents: Event*)(implicit memory: Aux[Element, Destination]): Do[Event]
    Attributes
    protected
    Definition Classes
    OpenCL
  19. def ensuring(cond: (Tensors) ⇒ Boolean, msg: ⇒ Any): Tensors
    Implicit
    This member is added by an implicit conversion from Tensors to Ensuring[Tensors] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: (Tensors) ⇒ Boolean): Tensors
    Implicit
    This member is added by an implicit conversion from Tensors to Ensuring[Tensors] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean, msg: ⇒ Any): Tensors
    Implicit
    This member is added by an implicit conversion from Tensors to Ensuring[Tensors] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean): Tensors
    Implicit
    This member is added by an implicit conversion from Tensors to Ensuring[Tensors] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  25. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Tensors to StringFormat[Tensors] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. val kernelCache: Cache[(trees)#ValueTerm, CompiledKernel]
    Attributes
    protected[com.thoughtworks.compute]
  31. def kernelCacheBuilder: CacheBuilder[(trees)#ValueTerm, CompiledKernel]
    Attributes
    protected
  32. def monadicClose: UnitContinuation[Unit]
    Definition Classes
    TensorsOpenCL → DefaultCloseable → MonadicCloseable
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. lazy val platformCapabilities: CLCapabilities
    Attributes
    protected
    Definition Classes
    OpenCL
    Annotations
    @transient()
  37. def platformIds: Seq[PlatformId]
    Attributes
    protected
    Definition Classes
    OpenCL
  38. def releaseContext: UnitContinuation[Unit]
    Attributes
    protected
    Definition Classes
    OpenCL
  39. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. 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
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  45. def waitForStatus(event: Event, callbackType: Status): UnitContinuation[Status]
    Attributes
    protected
    Definition Classes
    OpenCL
  46. def [B](y: B): (Tensors, B)
    Implicit
    This member is added by an implicit conversion from Tensors to ArrowAssoc[Tensors] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
  47. object PlusPrograms extends MonoidPrograms
    Attributes
    protected
  48. object Tensor

Inherited from OpenCL

Inherited from DefaultCloseable

Inherited from MonadicCloseable[UnitContinuation]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Tensors to any2stringadd[Tensors]

Inherited by implicit conversion StringFormat from Tensors to StringFormat[Tensors]

Inherited by implicit conversion Ensuring from Tensors to Ensuring[Tensors]

Inherited by implicit conversion ArrowAssoc from Tensors to ArrowAssoc[Tensors]

Ungrouped