object OpenCL
- Alphabetic
- By Inheritance
- OpenCL
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class CommandQueue[Owner <: Singleton with OpenCL](handle: Long) extends AnyVal with MonadicCloseable[UnitContinuation] with Product with Serializable
- trait CommandQueuePool extends OpenCL
-
final
case class
DeviceBuffer[Owner <: OpenCL with Singleton, Element](handle: Long) extends MonadicCloseable[UnitContinuation] with Product with Serializable
A cl_mem whose CL_MEM_TYPE is buffer CL_MEM_OBJECT_BUFFER.
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
- final case class DeviceId[Owner <: Singleton with OpenCL](handle: Long) extends AnyVal with Product with Serializable
-
trait
DontReleaseEventTooEarly extends OpenCL
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
- final case class Event[Owner <: Singleton with OpenCL](handle: Long) extends AnyVal with MonadicCloseable[UnitContinuation] with Product with Serializable
- trait GlobalExecutionContext extends AnyRef
-
trait
HandleEventInExecutionContext extends OpenCL
- Note
HandleEventInExecutionContext 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 HandleEventInExecutionContext for Intel's and AMD's OpenCL implementation.
- final case class Kernel[Owner <: OpenCL with Singleton](handle: Long) extends AnyVal with MonadicCloseable[UnitContinuation] with Product with Serializable
- trait LogContextNotification extends OpenCL
- final case class PlatformId[Owner <: Singleton with OpenCL](handle: Long) extends AnyVal with Product with Serializable
- trait SingleThreadExecutionContext extends AnyRef
-
trait
SynchronizedCreatingKernel extends OpenCL
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
- trait UseAllCpuDevices extends OpenCL
- trait UseAllDevices extends OpenCL
- trait UseAllGpuDevices extends OpenCL
- trait UseFirstCpuDevice extends OpenCL
- trait UseFirstDevice extends OpenCL
- trait UseFirstGpuDevice extends OpenCL
- trait UseFirstPlatform extends OpenCL
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkErrorCode(errorCode: Int): Unit
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- var defaultLogger: (String, Option[ByteBuffer]) ⇒ Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )
- object DeviceBuffer extends Serializable
- object Event extends Serializable
- object Exceptions