Copies data synchronously 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 |
Returns cudaSuccess
if the copy was completed successfully,
or an error code if there was an issue.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=c_double) | :: | dst(*) |
Destination array (64-bit float) |
|||
real(kind=c_double) | :: | src(*) |
Source array (64-bit float) |
|||
integer(kind=c_size_t), | value | :: | count |
Number of bytes to copy |
||
integer(kind=c_int), | value | :: | kdir |
Direction of copy |
Returns cudaSuccess
if the copy was completed 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 bytes to copy |
||
integer(kind=c_int), | value | :: | kdir |
Direction of copy |
Returns cudaSuccess
if the copy was completed successfully,
or an error code if there was an issue.