cudaMemcpy Interface

public interface cudaMemcpy

Copies data synchronously between host and device.

Called by

interface~~cudamemcpy~~CalledByGraph interface~cudamemcpy cudaMemcpy proc~create_device_pointer create_device_pointer proc~create_device_pointer->interface~cudamemcpy proc~create~2 nvrtc_kernel%create proc~create~2->proc~create_device_pointer proc~create~7 transpose_handle_cuda%create proc~create~7->proc~create~2

Functions

private function cudaMemcpy_ptr(dst, src, count, kdir) result(cudaError_t) bind(C, name="cudaMemcpy")

Arguments

Type IntentOptional 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

Return Value integer(kind=c_int)

Returns cudaSuccess if the copy was completed successfully, or an error code if there was an issue.

private function cudaMemcpy_r64(dst, src, count, kdir) result(cudaError_t) bind(C, name="cudaMemcpy")

Arguments

Type IntentOptional 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

Return Value integer(kind=c_int)

Returns cudaSuccess if the copy was completed successfully, or an error code if there was an issue.

private function cudaMemcpy_r32(dst, src, count, kdir) result(cudaError_t) bind(C, name="cudaMemcpy")

Arguments

Type IntentOptional 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

Return Value integer(kind=c_int)

Returns cudaSuccess if the copy was completed successfully, or an error code if there was an issue.