Neko 1.99.9
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
device_array::device_array_t Type Reference

Device-only temporary array. More...

Collaboration diagram for device_array::device_array_t:

Public Member Functions

procedure, pass(this) init (this, size)
 Initialize the array.
 
procedure, pass(this) free (this)
 Free the array.
 
procedure, pass(this) size (this)
 Return the number of entries.
 
procedure, pass(this) is_allocated (this)
 Check whether storage is allocated.
 
procedure, pass(this) assign (this, source)
 Assignment with deep-copy ownership semantics.
 
generic assignment (this, source)
 Assignments.
 

Public Attributes

type(c_ptr) x_d = C_NULL_PTR
 Device pointer.
 

Private Member Functions

procedure, pass(this), private allocate (this, size)
 Allocate the array.
 

Private Attributes

integer, private n = 0
 Number of entries.
 

Detailed Description

Definition at line 47 of file device_array.f90.

Member Function/Subroutine Documentation

◆ allocate()

procedure, pass(this), private device_array::device_array_t::allocate ( class(device_array_t), intent(inout)  this,
integer, intent(in)  size 
)
private
Parameters
thisDevice array object.
sizeNumber of entries to allocate.

Definition at line 58 of file device_array.f90.

◆ assign()

procedure, pass(this) device_array::device_array_t::assign ( class(device_array_t), intent(inout)  this,
type(device_array_t), intent(in)  source 
)
Parameters
thisDestination device array object.
sourceSource device array object.

Definition at line 64 of file device_array.f90.

◆ assignment()

generic device_array::device_array_t::assignment ( class(device_array_t), intent(inout)  this,
type(device_array_t), intent(in)  source 
)
Parameters
thisDestination device array object.
sourceSource device array object.

Definition at line 67 of file device_array.f90.

◆ free()

procedure, pass(this) device_array::device_array_t::free ( class(device_array_t), intent(inout)  this)
Parameters
thisDevice array object.

Definition at line 56 of file device_array.f90.

◆ init()

procedure, pass(this) device_array::device_array_t::init ( class(device_array_t), intent(inout)  this,
integer, intent(in)  size 
)
Parameters
thisDevice array object.
sizeNumber of entries to allocate.

Definition at line 54 of file device_array.f90.

◆ is_allocated()

procedure, pass(this) device_array::device_array_t::is_allocated ( class(device_array_t), intent(in)  this)
Parameters
thisDevice array object.

Definition at line 62 of file device_array.f90.

◆ size()

procedure, pass(this) device_array::device_array_t::size ( class(device_array_t), intent(in)  this)
Parameters
thisDevice array object.

Definition at line 60 of file device_array.f90.

Member Data Documentation

◆ n

integer, private device_array::device_array_t::n = 0
private

Definition at line 51 of file device_array.f90.

◆ x_d

type(c_ptr) device_array::device_array_t::x_d = C_NULL_PTR

Definition at line 49 of file device_array.f90.


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