Copies data asynchronously between host and device.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | value | :: | dst |
Destination pointer |
||
type(c_ptr), | value | :: | src |
Source pointer |
||
integer(kind=c_size_t), | value | :: | count |
Size in bytes to copy |
||
integer(kind=c_int), | value | :: | kdir |
Direction of copy (host-to-device, device-to-host, etc.) |
||
type(dtfft_stream_t), | value | :: | stream |
Stream identifier |
Returns cudaSuccess
if the copy was initiated successfully,
or an error code if there was an issue.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_float) | :: | dst |
Destination array (32-bit float) |
|||
real(kind=c_float) | :: | src |
Source array (32-bit float) |
|||
integer(kind=c_size_t), | value | :: | count |
Number of elements to copy |
||
integer(kind=c_int), | value | :: | kdir |
Direction of copy |
||
type(dtfft_stream_t), | value | :: | stream |
Stream identifier |
Returns cudaSuccess
if the copy was initiated successfully,
or an error code if there was an issue.