trait Tensors extends OpenCL
Ordering
- Alphabetic
- By Inheritance
Inherited
- Tensors
- OpenCL
- DefaultCloseable
- MonadicCloseable
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- trait CachedTensor extends NonInlineTensor
-
type
CommandQueue = OpenCL.CommandQueue[Tensors.this.type]
- Attributes
- protected
- Definition Classes
- OpenCL
-
trait
CompiledKernel extends MonadicCloseable[UnitContinuation]
- Attributes
- protected
-
type
DeviceBuffer[Element] = OpenCL.DeviceBuffer[Tensors.this.type, Element]
- Attributes
- protected
- Definition Classes
- OpenCL
-
type
DeviceId = OpenCL.DeviceId[Tensors.this.type]
- Attributes
- protected
- Definition Classes
- OpenCL
-
type
Event = OpenCL.Event[Tensors.this.type]
- Attributes
- protected
- Definition Classes
- OpenCL
-
final
case class
EventBuffer[JvmType](buffer: Tensors.DeviceBuffer[JvmType], event: Tensors.Event) extends PendingBuffer[JvmType] with Product with Serializable
- Attributes
- protected
- Annotations
- @silent()
- trait FillTensor extends InlineTensor
-
trait
InlineTensor extends Tensor
An intermediate expression of tensor that can be composed into a more complex expression.
-
type
Kernel = OpenCL.Kernel[Tensors.this.type]
- Attributes
- protected
- Definition Classes
- OpenCL
-
trait
MonoidPrograms extends AnyRef
- Attributes
- protected
-
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).
-
sealed
trait
PendingBuffer[JvmType] extends AnyRef
- Attributes
- protected
-
type
PlatformId = OpenCL.PlatformId[Tensors.this.type]
- Attributes
- protected
- Definition Classes
- OpenCL
-
type
Program = OpenCL.Program[Tensors.this.type]
- Attributes
- protected
- Definition Classes
- OpenCL
-
final
case class
ReadyBuffer[JvmType](buffer: Tensors.DeviceBuffer[JvmType]) extends PendingBuffer[JvmType] with Product with Serializable
- Attributes
- protected
- Annotations
- @silent()
-
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.
- InlineTensor and TransformedTensor are like a
- trait TransformedTensor extends InlineTensor
Abstract Value Members
-
abstract
def
acquireCommandQueue: Do[CommandQueue]
- Attributes
- protected
- Definition Classes
- OpenCL
-
abstract
val
deviceIds: Seq[DeviceId]
- Attributes
- protected
- Definition Classes
- OpenCL
-
implicit abstract
val
executionContext: ExecutionContext
- Attributes
- protected
-
abstract
def
handleOpenCLNotification(errorInfo: String, privateInfo: Option[ByteBuffer]): Unit
- Attributes
- protected
- Definition Classes
- OpenCL
-
abstract
def
hashSourceCode: Fastring
- Attributes
- protected
-
abstract
val
logger: Logger
- Attributes
- protected
- Definition Classes
- OpenCL
-
abstract
val
platformId: PlatformId
- Attributes
- protected
- Definition Classes
- OpenCL
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Tensors, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
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 fromhostBuffer
.Returns a buffer of
Element
on device whose content is copied fromhostBuffer
.- Attributes
- protected
- Definition Classes
- OpenCL
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
lazy val
context: Long
- Attributes
- protected
- Definition Classes
- OpenCL
- Annotations
- @transient()
-
def
createCommandQueue(deviceId: DeviceId, properties: Map[Int, Long]): CommandQueue
- Attributes
- protected
- Definition Classes
- OpenCL
-
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.
-
def
createKernels(program: Program): Seq[Kernel]
- Attributes
- protected
- Definition Classes
- OpenCL
-
def
createProgramWithSource(sourceCode: TraversableOnce[CharSequence]): Program
- Attributes
- protected
- Definition Classes
- OpenCL
-
def
defaultProgramOptions: CharSequence
- Attributes
- protected
- Definition Classes
- OpenCL
-
lazy val
deviceCapabilities: (DeviceId) ⇒ CLCapabilities
- Attributes
- protected
- Definition Classes
- OpenCL
- Annotations
- @transient()
-
def
dispatch(command: (CommandQueue) ⇒ Do[Event]): Do[Event]
- Attributes
- protected
- Definition Classes
- OpenCL
-
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
- def ensuring(cond: (Tensors) ⇒ Boolean, msg: ⇒ Any): Tensors
- def ensuring(cond: (Tensors) ⇒ Boolean): Tensors
- def ensuring(cond: Boolean, msg: ⇒ Any): Tensors
- def ensuring(cond: Boolean): Tensors
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
kernelCache: Cache[(trees)#ValueTerm, CompiledKernel]
- Attributes
- protected[com.thoughtworks.compute]
-
def
kernelCacheBuilder: CacheBuilder[(trees)#ValueTerm, CompiledKernel]
- Attributes
- protected
- def monadicClose: UnitContinuation[Unit]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
platformCapabilities: CLCapabilities
- Attributes
- protected
- Definition Classes
- OpenCL
- Annotations
- @transient()
-
def
platformIds: Seq[PlatformId]
- Attributes
- protected
- Definition Classes
- OpenCL
-
def
releaseContext: UnitContinuation[Unit]
- Attributes
- protected
- Definition Classes
- OpenCL
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
waitForStatus(event: Event, callbackType: Status): UnitContinuation[Status]
- Attributes
- protected
- Definition Classes
- OpenCL
- def →[B](y: B): (Tensors, B)
-
object
PlusPrograms extends MonoidPrograms
- Attributes
- protected
- object Tensor