CUresult-class: Class '"CUresult"'

Description Objects from the Class Slots Extends Methods Author(s) References See Also Examples

Description

Most of the CUDA routines return their information via pointers and explicitly return the status of the request as an enumerated constant. This is a CUresult. This is an integer value in R along with the symbolic name as the names vector (of length 1). This is a CUresult object in R.

Some CUDA routines just return the status when there is no information to return. These are typically set commands that don't query information. In these cases, the corresponding R functions return the status. However, if that value is not 0, the functions raise an error. The class of the error corresponds to the symbolic name of the status value. This allows us to handle the different errors with tryCatch. All possible values can be obtained with RCUDA:::CUresultValues.

For routines that return information via their arguments, the corresponding R function checks the return value to see if it is a CUresult (cudaResult_t) and raises an error if it is. This allows the R function to check the status but still return the values if there is no error.

Objects from the Class

Objects of class CUresult are typically generated in the C code and not within R code.

Slots

.Data:

Object of class "integer". The possible values can be obtained from RCUDA:::CUresultValues

names:

Object of class "character"

Extends

Class "EnumValue", directly. Class "SymbolicConstant", by class "EnumValue", distance 2. Class "EnumerationValue", by class "EnumValue", distance 2. Class "integer", by class "EnumValue", distance 3. Class "numeric", by class "EnumValue", distance 4. Class "vector", by class "EnumValue", distance 4. Class "data.frameRowLabels", by class "EnumValue", distance 4.

Methods

No methods defined with class "CUresult" in the signature.

Author(s)

Duncan Temple Lang

References

http://docs.nvidia.com/cuda/cuda-driver-api/index.html. Specifically http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9

See Also

RCUDA:::CUresultValues

Examples

1
showClass("CUresult")

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