|
FireSync API
|
| kStatus kCudaStream_SetDefaultSync | ( | kCudaStream | stream, |
| kCudaSync | sync | ||
| ) |
Sets the default synchronization mode of the stream.
The default stream synchronization mode determines how operations are performed when a synchronization mode is not otherwise specified as an explicit argument to an operation (e.g., kObject_Clone). This setting only applies to kApi/kFireSync utility methods; the underlying Cuda runtime library does not support a default synchronization mode setting.
If this method is not called, the stream's default synchronization mode will be kCUDA_SYNC_WAIT_HOST.
| stream | Cuda stream. |
| sync | Default synchronization mode. |