Documentation for module acc_hostmem

Accelerator support

source: acc_hostmem.F
Loading...

Generic procedures:

acc_hostmem_allocate
acc_hostmem_deallocate

Generic procedure acc_hostmem_allocate

...

INTEGER(int_4),
POINTER
:: host_mem(:) ×
INTEGER(int_8),
POINTER
:: host_mem(:) ×
REAL(real_4),
POINTER
:: host_mem(:) ×
REAL(real_8),
POINTER
:: host_mem(:) ×
COMPLEX(real_4),
POINTER
:: host_mem(:) ×
COMPLEX(real_8),
POINTER
:: host_mem(:) ×
INTEGER(int_4),
POINTER
:: host_mem(:,:) ×
INTEGER(int_8),
POINTER
:: host_mem(:,:) ×
REAL(real_4),
POINTER
:: host_mem(:,:) ×
REAL(real_8),
POINTER
:: host_mem(:,:) ×
COMPLEX(real_4),
POINTER
:: host_mem(:,:) ×
COMPLEX(real_8),
POINTER
:: host_mem(:,:) ×
INTEGER,
INTENT(in)
:: n × × × × × ×
INTENT(in)
:: stream × × × × × × × × × × × ×
INTEGER,
INTENT(in)
:: n1 × × × × × ×
INTEGER,
INTENT(in)
:: n2 × × × × × ×

Generic procedure acc_hostmem_deallocate

...

INTEGER(int_4),
POINTER
:: host_mem(:) ×
INTEGER(int_8),
POINTER
:: host_mem(:) ×
REAL(real_4),
POINTER
:: host_mem(:) ×
REAL(real_8),
POINTER
:: host_mem(:) ×
COMPLEX(real_4),
POINTER
:: host_mem(:) ×
COMPLEX(real_8),
POINTER
:: host_mem(:) ×
INTEGER(int_4),
POINTER
:: host_mem(:,:) ×
INTEGER(int_8),
POINTER
:: host_mem(:,:) ×
REAL(real_4),
POINTER
:: host_mem(:,:) ×
REAL(real_8),
POINTER
:: host_mem(:,:) ×
COMPLEX(real_4),
POINTER
:: host_mem(:,:) ×
COMPLEX(real_8),
POINTER
:: host_mem(:,:) ×
INTENT(in)
:: stream × × × × × × × × × × × ×

SUBROUTINEacc_hostmem_alloc_i4(host_mem, n, stream)

Helper-routine performing allocation of host-pinned cuda memory.

Arguments:
INTEGER(int_4),
POINTER
:: host_mem(:) ...
INTEGER,
INTENT(in)
:: n ...
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_i8(host_mem, n, stream)

Allocates 1D fortan-array as cuda host-pinned memory.

Arguments:
INTEGER(int_8),
POINTER
:: host_mem(:) pointer to array
INTEGER,
INTENT(in)
:: n size given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_r4(host_mem, n, stream)

Allocates 1D fortan-array as cuda host-pinned memory.

Arguments:
REAL(real_4),
POINTER
:: host_mem(:) pointer to array
INTEGER,
INTENT(in)
:: n size given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_r8(host_mem, n, stream)

Allocates 1D fortan-array as cuda host-pinned memory.

Arguments:
REAL(real_8),
POINTER
:: host_mem(:) pointer to array
INTEGER,
INTENT(in)
:: n size given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_c4(host_mem, n, stream)

Allocates 1D fortan-array as cuda host-pinned memory.

Arguments:
COMPLEX(real_4),
POINTER
:: host_mem(:) pointer to array
INTEGER,
INTENT(in)
:: n size given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_c8(host_mem, n, stream)

Allocates 1D fortan-array as cuda host-pinned memory.

Arguments:
COMPLEX(real_8),
POINTER
:: host_mem(:) pointer to array
INTEGER,
INTENT(in)
:: n size given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_i4_2d(host_mem, n1, n2, stream)

Allocates 2D fortan-array as cuda host-pinned memory.

Arguments:
INTEGER(int_4),
POINTER
:: host_mem(:,:) pointer to array
INTEGER,
INTENT(in)
:: n1 sizes given in terms of item-count (not bytes!)
INTEGER,
INTENT(in)
:: n2 sizes given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_i8_2d(host_mem, n1, n2, stream)

Allocates 2D fortan-array as cuda host-pinned memory.

Arguments:
INTEGER(int_8),
POINTER
:: host_mem(:,:) pointer to array
INTEGER,
INTENT(in)
:: n1 sizes given in terms of item-count (not bytes!)
INTEGER,
INTENT(in)
:: n2 sizes given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_r4_2d(host_mem, n1, n2, stream)

Allocates 2D fortan-array as cuda host-pinned memory.

Arguments:
REAL(real_4),
POINTER
:: host_mem(:,:) pointer to array
INTEGER,
INTENT(in)
:: n1 sizes given in terms of item-count (not bytes!)
INTEGER,
INTENT(in)
:: n2 sizes given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_r8_2d(host_mem, n1, n2, stream)

Allocates 2D fortan-array as cuda host-pinned memory.

Arguments:
REAL(real_8),
POINTER
:: host_mem(:,:) pointer to array
INTEGER,
INTENT(in)
:: n1 sizes given in terms of item-count (not bytes!)
INTEGER,
INTENT(in)
:: n2 sizes given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_c4_2d(host_mem, n1, n2, stream)

Allocates 2D fortan-array as cuda host-pinned memory.

Arguments:
COMPLEX(real_4),
POINTER
:: host_mem(:,:) pointer to array
INTEGER,
INTENT(in)
:: n1 sizes given in terms of item-count (not bytes!)
INTEGER,
INTENT(in)
:: n2 sizes given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_alloc_c8_2d(host_mem, n1, n2, stream)

Allocates 2D fortan-array as cuda host-pinned memory.

Arguments:
COMPLEX(real_8),
POINTER
:: host_mem(:,:) pointer to array
INTEGER,
INTENT(in)
:: n1 sizes given in terms of item-count (not bytes!)
INTEGER,
INTENT(in)
:: n2 sizes given in terms of item-count (not bytes!)
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_i4(host_mem, stream)

Deallocates a 1D fortan-array, which is cuda host-pinned memory.

Arguments:
INTEGER(int_4),
POINTER
:: host_mem(:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_i8(host_mem, stream)

Deallocates a 1D fortan-array, which is cuda host-pinned memory.

Arguments:
INTEGER(int_8),
POINTER
:: host_mem(:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_r4(host_mem, stream)

Deallocates a 1D fortan-array, which is cuda host-pinned memory.

Arguments:
REAL(real_4),
POINTER
:: host_mem(:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_r8(host_mem, stream)

Deallocates a 1D fortan-array, which is cuda host-pinned memory.

Arguments:
REAL(real_8),
POINTER
:: host_mem(:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_c4(host_mem, stream)

Deallocates a 1D fortan-array, which is cuda host-pinned memory.

Arguments:
COMPLEX(real_4),
POINTER
:: host_mem(:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_c8(host_mem, stream)

Deallocates a 1D fortan-array, which is cuda host-pinned memory.

Arguments:
COMPLEX(real_8),
POINTER
:: host_mem(:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_i4_2d(host_mem, stream)

Deallocates a 2D fortan-array, which is cuda host-pinned memory.

Arguments:
INTEGER(int_4),
POINTER
:: host_mem(:,:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_i8_2d(host_mem, stream)

Deallocates a 2D fortan-array, which is cuda host-pinned memory.

Arguments:
INTEGER(int_8),
POINTER
:: host_mem(:,:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_r4_2d(host_mem, stream)

Deallocates a 2D fortan-array, which is cuda host-pinned memory.

Arguments:
REAL(real_4),
POINTER
:: host_mem(:,:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_r8_2d(host_mem, stream)

Deallocates a 2D fortan-array, which is cuda host-pinned memory.

Arguments:
REAL(real_8),
POINTER
:: host_mem(:,:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_c4_2d(host_mem, stream)

Deallocates a 2D fortan-array, which is cuda host-pinned memory.

Arguments:
COMPLEX(real_4),
POINTER
:: host_mem(:,:) pointer to array
INTENT(in)
:: stream ...

SUBROUTINEacc_hostmem_dealloc_c8_2d(host_mem, stream)

Deallocates a 2D fortan-array, which is cuda host-pinned memory.

Arguments:
COMPLEX(real_8),
POINTER
:: host_mem(:,:) pointer to array
INTENT(in)
:: stream ...