cudaSetDeviceFlags: Sets flags to be used for device executions

Description Usage Arguments References See Also

Description

Records flags as the flags to use when initializing the current device. If no device has been made current to the calling thread then flags will be applied to the initialization of any device initialized by the calling host thread, unless that device has had its initialization flags set explicitly by this or any host thread.

If the current device has been set and that device has already been initialized then this call will fail with the error cudaErrorSetOnActiveProcess. In this case it is necessary to reset device using cudaDeviceReset() before the device's initialization flags may be set.

Usage

1

Arguments

flags

Parameters for device operation

References

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

See Also

cudaGetDeviceCount cudaGetDevice cudaGetDeviceProperties cudaSetDevice cudaSetValidDevices cudaChooseDevice


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