Neko  0.9.99
A portable framework for high-order spectral element flow simulations
hip_intf Module Reference

Fortran HIP interface.

Data Types

interface  hipMalloc
 
interface  hipFree
 
interface  hipMemcpy
 
interface  hipMemcpyAsync
 
interface  hipDeviceSynchronize
 
interface  hipDeviceGetName
 
interface  hipGetDeviceCount
 
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
 
subroutine hip_finalize
 
subroutine hip_device_name (name)
 
integer function hip_device_count ()
 Return the number of available HIP devices. More...
 

Variables

type(c_ptr), bind(C) glb_cmd_queue = C_NULL_PTR
 Global HIP command queue. More...
 
type(c_ptr), bind(C) aux_cmd_queue = C_NULL_PTR
 Aux HIP command queue. More...
 
integer strm_high_prio
 High priority stream setting. More...
 
integer strm_low_prio
 Low priority stream setting. More...
 

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

◆ anonymous enum

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