Description Usage Arguments Value Author(s) References See Also Examples
These functions query or establish a context for the computations on a GPU.
1 2 | createContext(flags = 0L, device = 1L)
cuGetContext(create = TRUE, ..., asContext = TRUE)
|
flags |
an integer vector specifying the configuration options for creating the context. |
device |
the identity of the device for which to create the context. |
create |
a logical value that controls whether we create a context if none is established. |
... |
additional arguments passed to |
asContext |
a logical value currently ignored. |
Both functions return an object of class CUcontext
.
Duncan Temple Lang
http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__CTX.html#axzz4EXlYl4ti
1 2 3 4 | if(getNumDevices() > 0) {
ctx = createContext()
cuGetContext()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.