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

1-dimensional array of double precision values More...

Public Attributes

type(c_ptr) c
 C pointer to GPU/CPU memory.
 
double precision, dimension(:), pointer f
 Fortran pointer for array access.
 

Detailed Description

1-dimensional array of double precision values

Use for vectors and 1D data. The Fortran pointer f(:) provides array-style access to the data.

type(gpu_double1) :: x
call gpu_allocate(x, n)
x%f(1) = 1.0d0 ! access first element
void gpu_allocate(void **ptr, const int64_t n)
Definition gpu_amd.c:50

Definition at line 46 of file simple_gpu.F90.

Member Data Documentation

◆ c

type(c_ptr) gpu::gpu_double1::c

C pointer to GPU/CPU memory.

Definition at line 47 of file simple_gpu.F90.

◆ f

double precision, dimension(:), pointer gpu::gpu_double1::f

Fortran pointer for array access.

Definition at line 48 of file simple_gpu.F90.


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