cudaSetDevice: Set device to be used for GPU executions

Description Usage Arguments References See Also

Description

Sets device as the current device for the calling host thread. Valid device id's are 0 to (cudaGetDeviceCount() - 1).

Usage

1

Arguments

device

Device on which the active host thread should execute the

References

http://docs.nvidia.com/cuda/cuda-driver-api/index.html

See Also

cudaGetDeviceCount cudaGetDevice cudaGetDeviceProperties cudaChooseDevice


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