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

Upload data from host (CPU) to device (GPU) More...

Detailed Description

Upload data from host (CPU) to device (GPU)

Transfers data from host memory to GPU memory. The host array dimensions must match the GPU array dimensions.

Parameters
[in]host_arrHost array containing data to upload
[in,out]device_arrGPU array to receive data
double precision :: x_h(1000)
type(gpu_double1) :: x
call gpu_allocate(x, 1000)
! ... fill x_h with data ...
call gpu_upload(x_h, x)
void gpu_allocate(void **ptr, const int64_t n)
Definition gpu_amd.c:50
void gpu_upload(const void *cpu_ptr, void *gpu_ptr, const int64_t n)
Definition gpu_amd.c:89

Definition at line 438 of file simple_gpu.F90.


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