object GpuSemaphore
- Alphabetic
- By Inheritance
- GpuSemaphore
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
acquireIfNecessary(context: TaskContext): Unit
Tasks must call this when they begin to use the GPU.
Tasks must call this when they begin to use the GPU. If the task has not already acquired the GPU semaphore then it is acquired, blocking if necessary. NOTE: A task completion listener will automatically be installed to ensure the semaphore is always released by the time the task completes.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def computeNumPermits(conf: SQLConf): Int
-
def
dumpActiveStackTracesToLog(): Unit
Dumps the stack traces for any tasks that have accessed the GPU semaphore and have not completed.
Dumps the stack traces for any tasks that have accessed the GPU semaphore and have not completed. The output includes whether the task has the GPU semaphore held at the time of the stack trace.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initialize(): Unit
Initializes the GPU task semaphore.
-
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()
-
def
releaseIfNecessary(context: TaskContext): Unit
Tasks must call this when they are finished using the GPU.
-
def
shutdown(): Unit
Uninitialize the GPU semaphore.
Uninitialize the GPU semaphore. NOTE: This does not wait for active tasks to release!
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryAcquire(context: TaskContext): TryAcquireResult
A thread may try to acquire the semaphore without blocking on it.
A thread may try to acquire the semaphore without blocking on it. NOTE: A task completion listener will automatically be installed to ensure the semaphore is always released by the time the task completes.
-
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
- @throws( ... ) @native()