Simple GPU 1.0
Fortran GPU Computing Library with transparent CPU/GPU support
Loading...
Searching...
No Matches
gpu::gpu_copy Interface Reference

Copy data between GPU arrays. More...

Detailed Description

Copy data between GPU arrays.

Copies data from one GPU array to another. Both arrays must have the same dimensions and type.

Parameters
[in]srcSource GPU array
[out]destDestination GPU array
type(gpu_double1) :: x, y
call gpu_allocate(x, 1000)
call gpu_allocate(y, 1000)
! ... fill x with data ...
call gpu_copy(x, y) ! copy x to y
void gpu_allocate(void **ptr, const int64_t n)
Definition gpu_amd.c:50
void gpu_copy(const void *gpu_ptr_src, void *gpu_ptr_dest, const int64_t n)
Definition gpu_amd.c:113

Definition at line 500 of file simple_gpu.F90.


The documentation for this interface was generated from the following file: