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

Fortran HIP interface.

Data Types

interface  hipdevicegetname
 
interface  hipdevicegetstreampriorityrange
 
interface  hipdevicesynchronize
 
interface  hipeventcreate
 
interface  hipeventcreatewithflags
 
interface  hipeventdestroy
 
interface  hipeventrecord
 
interface  hipeventsynchronize
 
interface  hipfree
 
interface  hipgetdevicecount
 
interface  hipmalloc
 
interface  hipmemcpy
 
interface  hipmemcpyasync
 
interface  hipstreamcreate
 
interface  hipstreamcreatewithflags
 
interface  hipstreamcreatewithpriority
 
interface  hipstreamdestroy
 
interface  hipstreamsynchronize
 
interface  hipstreamwaitevent
 

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
 
subroutine hip_finalize
 
subroutine hip_device_name (name)
 
integer function hip_device_count ()
 Return the number of available HIP devices.
 

Variables

type(c_ptr), bind(Cglb_cmd_queue = C_NULL_PTR
 Global HIP command queue.
 
type(c_ptr), bind(Caux_cmd_queue = C_NULL_PTR
 Aux HIP command queue.
 
integer strm_high_prio
 High priority stream setting.
 
integer strm_low_prio
 Low priority stream setting.
 

Enumeration Type Documentation

◆ 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 54 of file hip_intf.F90.

◆ anonymous enum

Enumerator
hipmemcpyhosttohost 
hipmemcpyhosttodevice 
hipmemcpydevicetohost 
hipmemcpydevicetodevice 
hipmemcpydefault 

Definition at line 81 of file hip_intf.F90.

Function/Subroutine Documentation

◆ hip_device_count()

integer function hip_intf::hip_device_count

Definition at line 282 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 265 of file hip_intf.F90.

Here is the caller graph for this function:

◆ hip_finalize()

subroutine hip_intf::hip_finalize

Definition at line 255 of file hip_intf.F90.

Here is the caller graph for this function:

◆ hip_init()

subroutine hip_intf::hip_init

Definition at line 237 of file hip_intf.F90.

Here is the caller graph for this function:

Variable Documentation

◆ aux_cmd_queue

type(c_ptr), bind(C) hip_intf::aux_cmd_queue = C_NULL_PTR

Definition at line 45 of file hip_intf.F90.

◆ glb_cmd_queue

type(c_ptr), bind(C) hip_intf::glb_cmd_queue = C_NULL_PTR

Definition at line 42 of file hip_intf.F90.

◆ strm_high_prio

integer hip_intf::strm_high_prio

Definition at line 48 of file hip_intf.F90.

◆ strm_low_prio

integer hip_intf::strm_low_prio

Definition at line 51 of file hip_intf.F90.