createContext: Create or query current context

Description Usage Arguments Value Author(s) References See Also Examples

Description

These functions query or establish a context for the computations on a GPU.

Usage

1
2
createContext(flags = 0L, device = 1L)
cuGetContext(create = TRUE, ..., asContext = TRUE)

Arguments

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 createContext

asContext

a logical value currently ignored.

Value

Both functions return an object of class CUcontext.

Author(s)

Duncan Temple Lang

References

http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__CTX.html#axzz4EXlYl4ti

See Also

.cuda

Examples

1
2
3
4

duncantl/RCUDA documentation built on May 15, 2019, 5:26 p.m.