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

2-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

2-dimensional array of double precision values

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

type(gpu_double2) :: a
call gpu_allocate(a, m, n)
a%f(1,1) = 1.0d0 ! access element at(1,1)
void gpu_allocate(void **ptr, const int64_t n)
Definition gpu_amd.c:50

Definition at line 60 of file simple_gpu.F90.

Member Data Documentation

◆ c

type(c_ptr) gpu::gpu_double2::c

C pointer to GPU/CPU memory.

Definition at line 61 of file simple_gpu.F90.

◆ f

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

Fortran pointer for array access.

Definition at line 62 of file simple_gpu.F90.


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