pub unsafe extern "C" fn cudaStreamSetAttribute(
hStream: cudaStream_t,
attr: cudaLaunchAttributeID,
value: *const cudaLaunchAttributeValue,
) -> cudaError_tExpand description
Sets stream attribute.
Sets attribute attr on hStream from corresponding attribute of value. The updated attribute will be applied to subsequent work submitted to the stream. It will not affect previously submitted work.
Note that this function may also return error codes from previous, asynchronous launches.
ยงReturn value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_INVALID_HANDLE
See also: cudaAccessPolicyWindow.