Skip to main content

cudaSetDeviceFlags

Function cudaSetDeviceFlags 

Source
pub unsafe extern "C" fn cudaSetDeviceFlags(
    flags: c_uint,
) -> cudaError_t
Expand description

Sets flags to be used for device executions.

Records flags as the flags for the current device. If the current device has been set and that device has already been initialized, the previous flags are overwritten. If the current device has not been initialized, it is initialized with the provided flags. If no device has been made current to the calling thread, a default device is selected and initialized with the provided flags.

The three LSBs of the flags parameter can be used to control how the CPU thread interacts with the OS scheduler when waiting for results from the device.

ยงParameters

  • flags: - Parameters for device operation