Initializes or sets device memory to a value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | value | :: | ptr |
Pointer to device memory |
||
integer(kind=c_int), | value | :: | val |
Value to set |
||
integer(kind=c_size_t), | value | :: | count |
Size in bytes to set |
Returns cudaSuccess
if the memory was set successfully,
or an error code if there was an issue.