Trait

com.thoughtworks.compute.Tensors

UnsafeMathOptimizations

Related Doc: package Tensors

Permalink

trait UnsafeMathOptimizations extends Tensors

Source
Tensors.scala
Linear Supertypes
Tensors, OpenCL, DefaultCloseable, MonadicCloseable[UnitContinuation], AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnsafeMathOptimizations
  2. Tensors
  3. OpenCL
  4. DefaultCloseable
  5. MonadicCloseable
  6. AnyRef
  7. 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

    Permalink
    Definition Classes
    Tensors
  2. type CommandQueue = OpenCL.CommandQueue[UnsafeMathOptimizations.this.type]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  3. trait CompiledKernel extends MonadicCloseable[UnitContinuation]

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
  4. type DeviceBuffer[Element] = OpenCL.DeviceBuffer[UnsafeMathOptimizations.this.type, Element]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  5. type DeviceId = OpenCL.DeviceId[UnsafeMathOptimizations.this.type]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  6. type Event = OpenCL.Event[UnsafeMathOptimizations.this.type]

    Permalink
    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

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
    Annotations
    @silent()
  8. trait InlineTensor extends Tensor

    Permalink

    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
  9. type Kernel = OpenCL.Kernel[UnsafeMathOptimizations.this.type]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  10. trait MonoidPrograms extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
  11. trait NonInlineTensor extends Tensor

    Permalink

    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
  12. sealed trait PendingBuffer[JvmType] extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
  13. type PlatformId = OpenCL.PlatformId[UnsafeMathOptimizations.this.type]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  14. type Program = OpenCL.Program[UnsafeMathOptimizations.this.type]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  15. final case class ReadyBuffer[JvmType](buffer: Tensors.DeviceBuffer[JvmType]) extends PendingBuffer[JvmType] with Product with Serializable

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
    Annotations
    @silent()
  16. sealed trait Tensor extends AnyRef

    Permalink

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

    Permalink
    Definition Classes
    Tensors

Abstract Value Members

  1. abstract def acquireCommandQueue: Do[CommandQueue]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  2. abstract val deviceIds: Seq[DeviceId]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  3. implicit abstract val executionContext: ExecutionContext

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
  4. abstract def handleOpenCLNotification(errorInfo: String, privateInfo: Option[ByteBuffer]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  5. abstract def hashSourceCode: Fastring

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
  6. abstract val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  7. abstract val platformId: PlatformId

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from UnsafeMathOptimizations to any2stringadd[UnsafeMathOptimizations] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (UnsafeMathOptimizations, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from UnsafeMathOptimizations to ArrowAssoc[UnsafeMathOptimizations] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. object PlusPrograms extends MonoidPrograms

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
  7. object Tensor

    Permalink
    Definition Classes
    Tensors
  8. def allocateBuffer[Element](size: Long)(implicit memory: Memory[Element]): Do[DeviceBuffer[Element]]

    Permalink

    Returns an uninitialized buffer of Element on device.

    Returns an uninitialized buffer of Element on device.

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

    Permalink

    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
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. lazy val context: Long

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  13. def createCommandQueue(deviceId: DeviceId, properties: Map[Int, Long]): CommandQueue

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  14. def createKernel(program: Program): Kernel

    Permalink

    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.

  15. def createKernels(program: Program): Seq[Kernel]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  16. def createProgramWithSource(sourceCode: TraversableOnce[CharSequence]): Program

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  17. lazy val deviceCapabilities: (DeviceId) ⇒ CLCapabilities

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  18. def dispatch(command: (CommandQueue) ⇒ Do[Event]): Do[Event]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  19. def enqueueReadBuffer[Element, Destination](commandQueue: CommandQueue, deviceBuffer: DeviceBuffer[Element], hostBuffer: Destination, preconditionEvents: Event*)(implicit memory: Aux[Element, Destination]): Do[Event]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  20. def ensuring(cond: (UnsafeMathOptimizations) ⇒ Boolean, msg: ⇒ Any): UnsafeMathOptimizations

    Permalink
    Implicit information
    This member is added by an implicit conversion from UnsafeMathOptimizations to Ensuring[UnsafeMathOptimizations] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: (UnsafeMathOptimizations) ⇒ Boolean): UnsafeMathOptimizations

    Permalink
    Implicit information
    This member is added by an implicit conversion from UnsafeMathOptimizations to Ensuring[UnsafeMathOptimizations] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean, msg: ⇒ Any): UnsafeMathOptimizations

    Permalink
    Implicit information
    This member is added by an implicit conversion from UnsafeMathOptimizations to Ensuring[UnsafeMathOptimizations] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): UnsafeMathOptimizations

    Permalink
    Implicit information
    This member is added by an implicit conversion from UnsafeMathOptimizations to Ensuring[UnsafeMathOptimizations] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from UnsafeMathOptimizations to StringFormat[UnsafeMathOptimizations] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. val kernelCache: Cache[(trees)#ValueTerm, CompiledKernel]

    Permalink
    Attributes
    protected[com.thoughtworks.compute]
    Definition Classes
    Tensors
  32. def kernelCacheBuilder: CacheBuilder[(trees)#ValueTerm, CompiledKernel]

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
  33. def monadicClose: UnitContinuation[Unit]

    Permalink
    Definition Classes
    TensorsOpenCL → DefaultCloseable → MonadicCloseable
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. def openclCompilerFlags: String

    Permalink
    Attributes
    protected
    Definition Classes
    UnsafeMathOptimizationsTensors
  38. lazy val platformCapabilities: CLCapabilities

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  39. def platformIds: Seq[PlatformId]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  40. def releaseContext: UnitContinuation[Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. 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 }

    Permalink
    Attributes
    protected
    Definition Classes
    Tensors
  44. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. def waitForStatus(event: Event, callbackType: Status): UnitContinuation[Status]

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL
  48. def [B](y: B): (UnsafeMathOptimizations, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from UnsafeMathOptimizations to ArrowAssoc[UnsafeMathOptimizations] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Tensors

Inherited from OpenCL

Inherited from DefaultCloseable

Inherited from MonadicCloseable[UnitContinuation]

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped