Neko 1.99.10
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
hip_intf Module Reference

Fortran HIP interface.

Data Types

interface  hipmalloc
interface  hipfree
interface  hipmap
 Map host memory to the device (zero-copy on unified memory architectures, e.g. MI300A, see device/hip/unified.hip). More...
interface  hipmapfree
 Free a device pointer obtained from hipMap (no-op for pointers aliasing host memory). More...
interface  hipmapmemset
 Memset on a device pointer obtained from hipMap (host-side memset for pointers aliasing host memory). More...
interface  hipmapmemcpy
 Copy between device/host pointers via the mapping layer (kernel-based copy under zero-copy, where either side may alias pageable host memory). More...
interface  hipmemcpy
interface  hipmemcpyasync
interface  hipmemsetasync
interface  hipdevicesynchronize
interface  hipdevicereset
interface  hip_buffer_free_all
interface  hipdevicegetname
interface  hipgetdevicecount
interface  hip_device_mp_count
 Number of compute units of the current device (0 if unknown), see device/hip/props.hip. More...
interface  hip_device_total_mem
 Total memory of the current device in bytes (0 if unknown), see device/hip/props.hip. More...
interface  hipstreamcreate
interface  hipstreamcreatewithflags
interface  hipstreamcreatewithpriority
interface  hipstreamdestroy
interface  hipstreamsynchronize
interface  hipstreamwaitevent
interface  hipdevicegetstreampriorityrange
interface  hipeventcreate
interface  hipeventdestroy
interface  hipeventcreatewithflags
interface  hipeventrecord
interface  hipeventsynchronize

Enumerations

enum  {
  hipsuccess = 0 , hiperrorinvalidcontext = 1 , hiperrorinvalidkernelfile = 2 , hiperrormemoryallocation = 3 ,
  hiperrorinitializationerror = 4 , hiperrorlaunchfailure = 5 , hiperrorlaunchoutofresources = 6 , hiperrorinvaliddevice = 7 ,
  hiperrorinvalidvalue = 8 , hiperrorinvaliddevicepointer = 9 , hiperrorinvalidmemcpydirection = 10 , hiperrorunknown = 11 ,
  hiperrorinvalidresourcehandle = 12 , hiperrornotready = 13 , hiperrornodevice = 14 , hiperrorpeeraccessalreadyenabled = 15 ,
  hiperrorpeeraccessnotenabled = 16 , hiperrorruntimememory = 17 , hiperrorruntimeother = 18 , hiperrorhostmemoryalreadyregistered = 19 ,
  hiperrorhostmemorynotregistered = 20 , hiperrormapbufferobjectfailed = 21 , hiperrortbd = 22
}
 Enum hipError_t. More...
enum  {
  hipmemcpyhosttohost = 0 , hipmemcpyhosttodevice = 1 , hipmemcpydevicetohost = 2 , hipmemcpydevicetodevice = 3 ,
  hipmemcpydefault = 4
}
 Enum hipMemcpyKind. More...

Functions/Subroutines

subroutine hip_init (glb_cmd_queue, aux_cmd_queue, strm_high_prio, strm_low_prio)
subroutine hip_finalize (glb_cmd_queue, aux_cmd_queue)
subroutine hip_device_name (name)
integer function hip_device_count ()
 Return the number of available HIP devices.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
hipsuccess 
hiperrorinvalidcontext 
hiperrorinvalidkernelfile 
hiperrormemoryallocation 
hiperrorinitializationerror 
hiperrorlaunchfailure 
hiperrorlaunchoutofresources 
hiperrorinvaliddevice 
hiperrorinvalidvalue 
hiperrorinvaliddevicepointer 
hiperrorinvalidmemcpydirection 
hiperrorunknown 
hiperrorinvalidresourcehandle 
hiperrornotready 
hiperrornodevice 
hiperrorpeeraccessalreadyenabled 
hiperrorpeeraccessnotenabled 
hiperrorruntimememory 
hiperrorruntimeother 
hiperrorhostmemoryalreadyregistered 
hiperrorhostmemorynotregistered 
hiperrormapbufferobjectfailed 
hiperrortbd 

Definition at line 42 of file hip_intf.F90.

◆ anonymous enum

anonymous enum
Enumerator
hipmemcpyhosttohost 
hipmemcpyhosttodevice 
hipmemcpydevicetohost 
hipmemcpydevicetodevice 
hipmemcpydefault 

Definition at line 69 of file hip_intf.F90.

Function/Subroutine Documentation

◆ hip_device_count()

integer function hip_intf::hip_device_count

Definition at line 373 of file hip_intf.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hip_device_name()

subroutine hip_intf::hip_device_name ( character(len=*), intent(inout) name)

Definition at line 356 of file hip_intf.F90.

Here is the caller graph for this function:

◆ hip_finalize()

subroutine hip_intf::hip_finalize ( type(c_ptr), intent(inout) glb_cmd_queue,
type(c_ptr), intent(inout) aux_cmd_queue )

Definition at line 327 of file hip_intf.F90.

Here is the caller graph for this function:

◆ hip_init()

subroutine hip_intf::hip_init ( type(c_ptr), intent(inout) glb_cmd_queue,
type(c_ptr), intent(inout) aux_cmd_queue,
integer, intent(inout) strm_high_prio,
integer, intent(inout) strm_low_prio )

Definition at line 304 of file hip_intf.F90.

Here is the caller graph for this function: