Object/Trait

com.thoughtworks.compute

OpenCL

Related Docs: trait OpenCL | package compute

Permalink

object OpenCL

Author:

杨博 (Yang Bo)

Source
OpenCL.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OpenCL
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class CommandQueue[Owner <: Singleton with OpenCL](handle: Long) extends AnyVal with MonadicCloseable[UnitContinuation] with Product with Serializable

    Permalink
  2. trait CommandQueuePool extends OpenCL

    Permalink
  3. final case class DeviceBuffer[Owner <: OpenCL with Singleton, Element](handle: Long) extends MonadicCloseable[UnitContinuation] with Product with Serializable

    Permalink

    A cl_mem whose CL_MEM_TYPE is buffer CL_MEM_OBJECT_BUFFER.

    handle

    The underlying cl_mem.

    Note

    comment out extends AnyVal in case of https://github.com/scala/bug/issues/10647

  4. final case class DeviceId[Owner <: Singleton with OpenCL](handle: Long) extends AnyVal with Product with Serializable

    Permalink
  5. trait DontReleaseEventTooEarly extends OpenCL

    Permalink

    A plug-in that retains every Event created by clEnqueueReadBuffer and waiting at least one second before releasing it.

    A plug-in that retains every Event created by clEnqueueReadBuffer and waiting at least one second before releasing it.

    Note

    This is a workaround for https://github.com/ThoughtWorksInc/Compute.scala/issues/51

  6. final case class Event[Owner <: Singleton with OpenCL](handle: Long) extends AnyVal with MonadicCloseable[UnitContinuation] with Product with Serializable

    Permalink
  7. trait GlobalExecutionContext extends AnyRef

    Permalink
  8. trait HandleEventInExecutionContextForIntelAndAMDPlatform extends OpenCL

    Permalink

    Note

    HandleEventInExecutionContextForIntelAndAMDPlatform should be unnecessary because only OpenCL calls to create contexts or command-queues, or blocking OpenCL operations are undefined behavior, according to https://www.khronos.org/registry/OpenCL/sdk/1.2/docs/man/xhtml/clSetEventCallback.html and we don't use those forbidden functions. Our usage should be fine according to the OpenCL specification. However, AMD SDK always crashes for any reentry calls (e.g. https://travis-ci.org/Atry/DeepLearning.scala/jobs/318466522), no matter if they are blocking or not. There is also similar bug in Intel's OpenCL implementation As a workaround, always enable this HandleEventInExecutionContextForIntelAndAMDPlatform for Intel's and AMD's OpenCL implementation.

  9. final case class Kernel[Owner <: OpenCL with Singleton](handle: Long) extends AnyVal with MonadicCloseable[UnitContinuation] with Product with Serializable

    Permalink
  10. trait LogContextNotification extends OpenCL

    Permalink
  11. final case class PlatformId[Owner <: Singleton with OpenCL](handle: Long) extends AnyVal with Product with Serializable

    Permalink
  12. trait SingleThreadExecutionContext extends AnyRef

    Permalink
  13. trait SuppressWarnings extends OpenCL

    Permalink

    A plug-in of Tensors to suppress warnings during compiling a OpenCL kernel for non-AMD platforms.

  14. trait SynchronizedCreatingKernel extends OpenCL

    Permalink

    Make the calls to createKernels and createKernel synchronized.

    Make the calls to createKernels and createKernel synchronized.

    Note

    If you are using Intel OpenCL SDK, you will need this plug-in as a workaround

    See also

    Bug report: clCreateKernelsInProgram is not thread-safe

  15. trait UnsafeMathOptimizations extends OpenCL

    Permalink
  16. trait UseAllCpuDevices extends UseAllDevicesByType

    Permalink
  17. trait UseAllDevices extends UseAllDevicesByType

    Permalink
  18. trait UseAllDevicesByType extends OpenCL

    Permalink
  19. trait UseAllGpuDevices extends UseAllDevicesByType

    Permalink
  20. trait UseFirstDevice extends OpenCL

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object DeviceBuffer extends Serializable

    Permalink
  5. object Event extends Serializable

    Permalink
  6. object Exceptions

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def checkErrorCode(errorCode: Int): Unit

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. var defaultLogger: (String, Option[ByteBuffer]) ⇒ Unit

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    OpenCL → AnyRef
    Annotations
    @deprecated
    Deprecated

    (Since version finalize is deprecated in Java 9. However, it is the only way to clean up static native resources.) finalize method should not be invoked by users.

Inherited from AnyRef

Inherited from Any

Ungrouped