public abstract class GPUContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static GPUContext |
currContext |
static Boolean |
isGPUContextCreated |
| Modifier | Constructor and Description |
|---|---|
protected |
GPUContext() |
| Modifier and Type | Method and Description |
|---|---|
static GPUObject |
createGPUObject(org.apache.sysml.runtime.controlprogram.caching.MatrixObject mo) |
abstract void |
destroy() |
abstract void |
ensureComputeCapability()
Ensures that all the CUDA cards on the current system are
of the minimum required compute capability.
|
abstract long |
getAvailableMemory()
Gets device memory available for SystemML operations
|
static GPUContext |
getGPUContext()
Singleton Factory method for creation of
GPUContext |
protected static GPUContext currContext
public static volatile Boolean isGPUContextCreated
public abstract long getAvailableMemory()
public abstract void ensureComputeCapability()
throws DMLRuntimeException
JCudaContext.DMLRuntimeException - if DMLRuntimeException occurspublic static GPUContext getGPUContext() throws DMLRuntimeException
GPUContextDMLRuntimeException - if DMLRuntimeException occurspublic static GPUObject createGPUObject(org.apache.sysml.runtime.controlprogram.caching.MatrixObject mo)
public abstract void destroy()
throws DMLRuntimeException
DMLRuntimeExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.