hipfort_types Module Reference

hipfort_types Module Reference#

HIPFORT API Reference: hipfort_types Module Reference
hipfort_types Module Reference

Data Types

type  dim3
 Derived type that can be mapped directly to a CUDA/HIP C++ dim3. More...
 
type  hipdeviceprop_t
 

Variables

integer, parameter hipipcmemlazyenablepeeraccess = 0
 
integer, parameter hipstreamdefault = 0
 Default stream creation flags. More...
 
integer, parameter hipstreamnonblocking = 1
 Stream does not implicitly synchronize with null stream. More...
 
integer, parameter hipeventdefault = 0
 Default flags. More...
 
integer, parameter hipeventblockingsync = 1
 Waiting will yield CPU. More...
 
integer, parameter hipeventdisabletiming = 2
 Disable event's capability to record timing information. More...
 
integer, parameter hipeventinterprocess = 4
 Event can support IPC. More...
 
integer, parameter hipeventreleasetodevice = 1073741824
 0x40000000 - Use a device-scope release when recording this event. More...
 
integer, parameter hiphostmallocdefault = 0
 
integer, parameter hiphostmallocportable = 1
 Memory is considered allocated by all contexts. More...
 
integer, parameter hiphostmallocmapped = 2
 Map the allocation into the address space for the current device. More...
 
integer, parameter hiphostmallocwritecombined = 4
 
integer, parameter hiphostmallocnumauser = 536870912
 0x20000000 - Host memory allocation will follow numa policy set by user More...
 
integer, parameter hiphostmalloccoherent = 1073741824
 0x40000000 - Allocate coherent memory. More...
 
integer, parameter hipmemattachglobal = 1
 Memory can be accessed by any stream on any device. More...
 
integer, parameter hipmemattachhost = 2
 Memory cannot be accessed by any stream on any device. More...
 
integer, parameter hipmemattachsingle = 4
 Memory can only be accessed by a single stream on the associated device. More...
 
integer, parameter hipdevicemallocdefault = 0
 
integer, parameter hipdevicemallocfinegrained = 1
 Memory is allocated in fine grained region of device. More...
 
integer, parameter hiphostregisterdefault = 0
 Memory is Mapped and Portable. More...
 
integer, parameter hiphostregisterportable = 1
 Memory is considered registered by all contexts. More...
 
integer, parameter hiphostregistermapped = 2
 Map the allocation into the address space for the current device. More...
 
integer, parameter hiphostregisteriomemory = 4
 Not supported. More...
 
integer, parameter hipexthostregistercoarsegrained = 8
 Coarse Grained host memory lock. More...
 
integer, parameter hipdevicescheduleauto = 0
 Automatically select between Spin and Yield. More...
 
integer, parameter hipdeviceschedulespin = 1
 Dedicate a CPU core to spin-wait. More...
 
integer, parameter hipdevicescheduleyield = 2
 Yield the CPU to the operating system when waiting. More...
 
integer, parameter hipdevicescheduleblockingsync = 4
 
integer, parameter hipdeviceschedulemask = 7
 
integer, parameter hipdevicemaphost = 8
 
integer, parameter hipdevicelmemresizetomax = 22
 
integer, parameter hiparraydefault = 0
 Default HIP array allocation flag. More...
 
integer, parameter hiparraylayered = 1
 
integer, parameter hiparraysurfaceloadstore = 2
 
integer, parameter hiparraycubemap = 4
 
integer, parameter hiparraytexturegather = 8
 
integer, parameter hipoccupancydefault = 0
 
integer, parameter hipcooperativelaunchmultidevicenopresync = 1
 
integer, parameter hipcooperativelaunchmultidevicenopostsync = 2
 

Variable Documentation

◆ hiparraycubemap

integer, parameter hipfort_types::hiparraycubemap = 4

◆ hiparraydefault

integer, parameter hipfort_types::hiparraydefault = 0

Default HIP array allocation flag.

◆ hiparraylayered

integer, parameter hipfort_types::hiparraylayered = 1

◆ hiparraysurfaceloadstore

integer, parameter hipfort_types::hiparraysurfaceloadstore = 2

◆ hiparraytexturegather

integer, parameter hipfort_types::hiparraytexturegather = 8

◆ hipcooperativelaunchmultidevicenopostsync

integer, parameter hipfort_types::hipcooperativelaunchmultidevicenopostsync = 2

◆ hipcooperativelaunchmultidevicenopresync

integer, parameter hipfort_types::hipcooperativelaunchmultidevicenopresync = 1

◆ hipdevicelmemresizetomax

integer, parameter hipfort_types::hipdevicelmemresizetomax = 22

◆ hipdevicemallocdefault

integer, parameter hipfort_types::hipdevicemallocdefault = 0

◆ hipdevicemallocfinegrained

integer, parameter hipfort_types::hipdevicemallocfinegrained = 1

Memory is allocated in fine grained region of device.

◆ hipdevicemaphost

integer, parameter hipfort_types::hipdevicemaphost = 8

◆ hipdevicescheduleauto

integer, parameter hipfort_types::hipdevicescheduleauto = 0

Automatically select between Spin and Yield.

◆ hipdevicescheduleblockingsync

integer, parameter hipfort_types::hipdevicescheduleblockingsync = 4

◆ hipdeviceschedulemask

integer, parameter hipfort_types::hipdeviceschedulemask = 7

◆ hipdeviceschedulespin

integer, parameter hipfort_types::hipdeviceschedulespin = 1

Dedicate a CPU core to spin-wait.

Provides lowest latency, but burns a CPU core and

◆ hipdevicescheduleyield

integer, parameter hipfort_types::hipdevicescheduleyield = 2

Yield the CPU to the operating system when waiting.

May increase latency, but lowers

◆ hipeventblockingsync

integer, parameter hipfort_types::hipeventblockingsync = 1

Waiting will yield CPU.

Power-friendly and usage-friendly but may increase latency.

◆ hipeventdefault

integer, parameter hipfort_types::hipeventdefault = 0

Default flags.

◆ hipeventdisabletiming

integer, parameter hipfort_types::hipeventdisabletiming = 2

Disable event's capability to record timing information.

May improve performance.

◆ hipeventinterprocess

integer, parameter hipfort_types::hipeventinterprocess = 4

Event can support IPC.

Warning
- not supported in HIP.

◆ hipeventreleasetodevice

integer, parameter hipfort_types::hipeventreleasetodevice = 1073741824

0x40000000 - Use a device-scope release when recording this event.

This flag is useful to

◆ hipexthostregistercoarsegrained

integer, parameter hipfort_types::hipexthostregistercoarsegrained = 8

Coarse Grained host memory lock.

◆ hiphostmalloccoherent

integer, parameter hipfort_types::hiphostmalloccoherent = 1073741824

0x40000000 - Allocate coherent memory.

Overrides HIP_COHERENT_HOST_ALLOC for specific

◆ hiphostmallocdefault

integer, parameter hipfort_types::hiphostmallocdefault = 0

◆ hiphostmallocmapped

integer, parameter hipfort_types::hiphostmallocmapped = 2

Map the allocation into the address space for the current device.

The device pointer

◆ hiphostmallocnumauser

integer, parameter hipfort_types::hiphostmallocnumauser = 536870912

0x20000000 - Host memory allocation will follow numa policy set by user

◆ hiphostmallocportable

integer, parameter hipfort_types::hiphostmallocportable = 1

Memory is considered allocated by all contexts.

◆ hiphostmallocwritecombined

integer, parameter hipfort_types::hiphostmallocwritecombined = 4

◆ hiphostregisterdefault

integer, parameter hipfort_types::hiphostregisterdefault = 0

Memory is Mapped and Portable.

◆ hiphostregisteriomemory

integer, parameter hipfort_types::hiphostregisteriomemory = 4

Not supported.

◆ hiphostregistermapped

integer, parameter hipfort_types::hiphostregistermapped = 2

Map the allocation into the address space for the current device.

The device pointer

◆ hiphostregisterportable

integer, parameter hipfort_types::hiphostregisterportable = 1

Memory is considered registered by all contexts.

◆ hipipcmemlazyenablepeeraccess

integer, parameter hipfort_types::hipipcmemlazyenablepeeraccess = 0

◆ hipmemattachglobal

integer, parameter hipfort_types::hipmemattachglobal = 1

Memory can be accessed by any stream on any device.

◆ hipmemattachhost

integer, parameter hipfort_types::hipmemattachhost = 2

Memory cannot be accessed by any stream on any device.

◆ hipmemattachsingle

integer, parameter hipfort_types::hipmemattachsingle = 4

Memory can only be accessed by a single stream on the associated device.

◆ hipoccupancydefault

integer, parameter hipfort_types::hipoccupancydefault = 0

◆ hipstreamdefault

integer, parameter hipfort_types::hipstreamdefault = 0

Default stream creation flags.

These are used with hipStreamCreate = ().

◆ hipstreamnonblocking

integer, parameter hipfort_types::hipstreamnonblocking = 1

Stream does not implicitly synchronize with null stream.