public class CudaContext extends Object implements AutoCloseable
| Constructor and Description |
|---|
CudaContext() |
CudaContext(boolean free) |
| Modifier and Type | Method and Description |
|---|---|
void |
associateHandle()
Associates
the handle on this context
to the given stream
|
void |
close() |
void |
destroy()
Destroys the context
and associated resources
|
void |
destroy(CublasPointer resultPointer,
boolean freeIfNotEqual)
Destroys the context
and associated resources
|
void |
finishBlasOperation()
Finishes a blas operation
and destroys this context
|
static CudaContext |
getBlasContext()
Sets up a context with an old stream
and a blas handle
|
CublasPointer |
getResultPointer() |
void |
initHandle()
Initializes a handle and
associates with the given stream.
|
void |
initOldStream()
Initializes the old stream
|
void |
initStream()
Initializes the stream
|
void |
syncDevice() |
void |
syncHandle()
Synchrnonizes on
the old stream
since the given handle
will be associated with the
stream for this context
|
void |
syncOldStream()
Synchronizes
on the old stream
|
void |
syncStream()
Synchronizes on the new
stream
|
public void syncStream()
public void syncOldStream()
public void syncHandle()
public CublasPointer getResultPointer()
public void associateHandle()
public void initStream()
public void initOldStream()
public void initHandle()
public void destroy(CublasPointer resultPointer, boolean freeIfNotEqual)
public void destroy()
public void finishBlasOperation()
public static CudaContext getBlasContext()
public void syncDevice()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2015. All Rights Reserved.