diff --git a/docs/RuntimeAPI/html/Synchonization.html b/docs/RuntimeAPI/html/Synchonization.html new file mode 100644 index 0000000000..fa615f44d1 --- /dev/null +++ b/docs/RuntimeAPI/html/Synchonization.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: $title + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+

Host-synchronous behavior:

+

The following commands are "host-asynchronous" - meaning they do not wait for any preceding commands to complete, and may return control to the host thread before the requested operation completes:

+ +

"Host-synchronous" commands have the following properties:

+ +

The following commands are "host-synchronous".

+ +

Stream synchronization

+

Blocking

+

The term "blocking" has two meanings in HIP.

+

The first refers to synchronization commands (ie hipStreamSynchronize, hipEventSynchronize) that cause the host CPU to wait for GPU activity to complete. These can either use an active where the host CPU spin-waits on the synchronization variable, or can use an interrupt-based scheme where the core is interrupted when the wait completes. The second technique is referred to as "blocking" (ie hipDeviceBlockingSync, hipEventBlockingSync) while the first is referred to as "active". Active can be appropriate for short tasks where latency is critical, but comes at the expense of a CPU core dedicated to monitoring the event.

+

HIP_LAUNCH_BLOCKING (also can use CUDA_LAUNCH_BLOCKING)

+ +

Note CUDA_LAUNCH_BLOCKING does add any pre-serialization to the commands and does not affect the concurrent stream behavior. For example, even when CUDA_LAUNCH_BLOCKING is set, kernels or data copy commands launched to separate streams can execute concurrently. Use the NULL stream if additional stream synchronization is desired.

+
+ + + + diff --git a/docs/RuntimeAPI/html/annotated.html b/docs/RuntimeAPI/html/annotated.html new file mode 100644 index 0000000000..eeeaa5f91f --- /dev/null +++ b/docs/RuntimeAPI/html/annotated.html @@ -0,0 +1,145 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Class List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
Class List
+
+
+
Here are the classes, structs, unions and interfaces with brief descriptions:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
oC__half
oCchar3
oCchar4
oCDbName
oCdim3
oCdouble1
oCdouble3
oCFakeMutex
oCfloat1
oCfloat3
oChipArray
oChipChannelFormatDesc
oChipDeviceArch_t
oChipDeviceProp_t
oChipDoubleComplex
oChipFloatComplex
oChipPointerAttribute_t
oCihipCtx_t
oCihipCtxCriticalBase_t
oCihipDevice_t
oCihipEvent_t
oCihipException
oCihipFunction_t
oCihipIpcMemHandle_t
oCihipModule_t
oCihipStream_t
oCihipStreamCriticalBase_t
oCint3
oCLockedAccessor
oCLockedBase
oClong3
oClonglong3
oCProfTrigger
oCshort3
oCShortTid
oCstruct_float
oCtextureReference
oCuchar3
oCuchar4
oCuint3
oCulong3
oCulonglong3
\Cushort3
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/bc_s.png b/docs/RuntimeAPI/html/bc_s.png new file mode 100644 index 0000000000..224b29aa98 Binary files /dev/null and b/docs/RuntimeAPI/html/bc_s.png differ diff --git a/docs/RuntimeAPI/html/bdwn.png b/docs/RuntimeAPI/html/bdwn.png new file mode 100644 index 0000000000..940a0b9504 Binary files /dev/null and b/docs/RuntimeAPI/html/bdwn.png differ diff --git a/docs/RuntimeAPI/html/bug.html b/docs/RuntimeAPI/html/bug.html new file mode 100644 index 0000000000..a79e8f7948 --- /dev/null +++ b/docs/RuntimeAPI/html/bug.html @@ -0,0 +1,97 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Bug List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
Bug List
+
+
+
+
Member hipGetDeviceProperties (hipDeviceProp_t *prop, int deviceId)
+

HCC always returns 0 for maxThreadsPerMultiProcessor

+

HCC always returns 0 for regsPerBlock

+

HCC always returns 0 for l2CacheSize

+
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/classFakeMutex-members.html b/docs/RuntimeAPI/html/classFakeMutex-members.html new file mode 100644 index 0000000000..37207bf255 --- /dev/null +++ b/docs/RuntimeAPI/html/classFakeMutex-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
FakeMutex Member List
+
+
+ +

This is the complete list of members for FakeMutex, including all inherited members.

+ + + + +
lock() (defined in FakeMutex)FakeMutexinline
try_lock() (defined in FakeMutex)FakeMutexinline
unlock() (defined in FakeMutex)FakeMutexinline
+ + + + diff --git a/docs/RuntimeAPI/html/classFakeMutex.html b/docs/RuntimeAPI/html/classFakeMutex.html new file mode 100644 index 0000000000..dd73a2063c --- /dev/null +++ b/docs/RuntimeAPI/html/classFakeMutex.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: FakeMutex Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +List of all members
+
+
FakeMutex Class Reference
+
+
+ + + + + + + + +

+Public Member Functions

+void lock ()
 
+bool try_lock ()
 
+void unlock ()
 
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/classLockedAccessor-members.html b/docs/RuntimeAPI/html/classLockedAccessor-members.html new file mode 100644 index 0000000000..97ee053446 --- /dev/null +++ b/docs/RuntimeAPI/html/classLockedAccessor-members.html @@ -0,0 +1,105 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
LockedAccessor< T > Member List
+
+
+ +

This is the complete list of members for LockedAccessor< T >, including all inherited members.

+ + + + + +
LockedAccessor(T &criticalData, bool autoUnlock=true) (defined in LockedAccessor< T >)LockedAccessor< T >inline
operator->() (defined in LockedAccessor< T >)LockedAccessor< T >inline
unlock() (defined in LockedAccessor< T >)LockedAccessor< T >inline
~LockedAccessor() (defined in LockedAccessor< T >)LockedAccessor< T >inline
+ + + + diff --git a/docs/RuntimeAPI/html/classLockedAccessor.html b/docs/RuntimeAPI/html/classLockedAccessor.html new file mode 100644 index 0000000000..1ca2f522a5 --- /dev/null +++ b/docs/RuntimeAPI/html/classLockedAccessor.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: LockedAccessor< T > Class Template Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +List of all members
+
+
LockedAccessor< T > Class Template Reference
+
+
+ + + + + + + + +

+Public Member Functions

LockedAccessor (T &criticalData, bool autoUnlock=true)
 
+void unlock ()
 
+T * operator-> ()
 
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/classShortTid-members.html b/docs/RuntimeAPI/html/classShortTid-members.html new file mode 100644 index 0000000000..65b4c7a8ab --- /dev/null +++ b/docs/RuntimeAPI/html/classShortTid-members.html @@ -0,0 +1,105 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ShortTid Member List
+
+
+ +

This is the complete list of members for ShortTid, including all inherited members.

+ + + + + +
apiSeqNum() const (defined in ShortTid)ShortTidinline
incApiSeqNum() (defined in ShortTid)ShortTidinline
ShortTid() (defined in ShortTid)ShortTid
tid() const (defined in ShortTid)ShortTidinline
+ + + + diff --git a/docs/RuntimeAPI/html/classShortTid.html b/docs/RuntimeAPI/html/classShortTid.html new file mode 100644 index 0000000000..8a98c9d95f --- /dev/null +++ b/docs/RuntimeAPI/html/classShortTid.html @@ -0,0 +1,118 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ShortTid Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +List of all members
+
+
ShortTid Class Reference
+
+
+ + + + + + + + +

+Public Member Functions

+int tid () const
 
+uint64_t incApiSeqNum ()
 
+uint64_t apiSeqNum () const
 
+
The documentation for this class was generated from the following files: +
+ + + + diff --git a/docs/RuntimeAPI/html/classes.html b/docs/RuntimeAPI/html/classes.html new file mode 100644 index 0000000000..fbbc40e7a7 --- /dev/null +++ b/docs/RuntimeAPI/html/classes.html @@ -0,0 +1,130 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Class Index + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
Class Index
+
+
+
C | D | F | H | I | L | P | S | T | U | _
+ + + + + + + + + + + + + + + +
  D  
+
  S  
+
double1   hipFloatComplex   ihipStreamCriticalBase_t   
double3   hipPointerAttribute_t   int3   
DbName   ShortTid   
  f  
+
  i  
+
  l  
+
  F  
+
  _  
+
float1   ihipCtx_t   long3   
FakeMutex   __half   float3   ihipCtxCriticalBase_t   longlong3   
  L  
+
  c  
+
  h  
+
ihipDevice_t   
  s  
+
ihipEvent_t   
LockedAccessor   char3   hipArray   ihipException   short3   
LockedBase   char4   hipChannelFormatDesc   ihipFunction_t   struct_float   
  P  
+
  d  
+
hipDeviceArch_t   ihipIpcMemHandle_t   
  t  
+
hipDeviceProp_t   ihipModule_t   
ProfTrigger   dim3   hipDoubleComplex   ihipStream_t   textureReference   
+
C | D | F | H | I | L | P | S | T | U | _
+
+ + + + diff --git a/docs/RuntimeAPI/html/classihipCtxCriticalBase__t-members.html b/docs/RuntimeAPI/html/classihipCtxCriticalBase__t-members.html new file mode 100644 index 0000000000..574362a0ec --- /dev/null +++ b/docs/RuntimeAPI/html/classihipCtxCriticalBase__t-members.html @@ -0,0 +1,118 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipCtxCriticalBase_t< MUTEX_TYPE > Member List
+
+
+ +

This is the complete list of members for ihipCtxCriticalBase_t< MUTEX_TYPE >, including all inherited members.

+ + + + + + + + + + + + + + + + + + +
_mutex (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >private
_peers (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >
addPeerWatcher(const ihipCtx_t *thisCtx, ihipCtx_t *peer) (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >
addStream(ihipStream_t *stream) (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >
const_streams() const (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >inline
ihipCtxCriticalBase_t(unsigned deviceCnt) (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >inline
isPeerWatcher(const ihipCtx_t *peer) (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >
lock() (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >inlineprivate
LockedAccessor< ihipCtxCriticalBase_t > (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >friend
peerAgents() const (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >inline
peerCnt() const (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >inline
printPeerWatchers(FILE *f) const (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >
removePeerWatcher(const ihipCtx_t *thisCtx, ihipCtx_t *peer) (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >
resetPeerWatchers(ihipCtx_t *thisDevice) (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >
streams() (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >inline
unlock() (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >inlineprivate
~ihipCtxCriticalBase_t() (defined in ihipCtxCriticalBase_t< MUTEX_TYPE >)ihipCtxCriticalBase_t< MUTEX_TYPE >inline
+ + + + diff --git a/docs/RuntimeAPI/html/classihipCtxCriticalBase__t.html b/docs/RuntimeAPI/html/classihipCtxCriticalBase__t.html new file mode 100644 index 0000000000..e18eee4e66 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipCtxCriticalBase__t.html @@ -0,0 +1,164 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipCtxCriticalBase_t< MUTEX_TYPE > Class Template Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +Public Attributes | +Friends | +List of all members
+
+
ihipCtxCriticalBase_t< MUTEX_TYPE > Class Template Reference
+
+
+
+Inheritance diagram for ihipCtxCriticalBase_t< MUTEX_TYPE >:
+
+
+ + +LockedBase< MUTEX_TYPE > + +
+ + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

ihipCtxCriticalBase_t (unsigned deviceCnt)
 
+void addStream (ihipStream_t *stream)
 
+std::list< ihipStream_t * > & streams ()
 
+const std::list< ihipStream_t * > & const_streams () const
 
+bool isPeerWatcher (const ihipCtx_t *peer)
 
+bool addPeerWatcher (const ihipCtx_t *thisCtx, ihipCtx_t *peer)
 
+bool removePeerWatcher (const ihipCtx_t *thisCtx, ihipCtx_t *peer)
 
+void resetPeerWatchers (ihipCtx_t *thisDevice)
 
+void printPeerWatchers (FILE *f) const
 
+uint32_t peerCnt () const
 
+hsa_agent_t * peerAgents () const
 
+ + + +

+Public Attributes

+std::list< ihipCtx_t * > _peers
 
+ + + +

+Friends

+class LockedAccessor< ihipCtxCriticalBase_t >
 
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/classihipCtxCriticalBase__t.png b/docs/RuntimeAPI/html/classihipCtxCriticalBase__t.png new file mode 100644 index 0000000000..7fe1e9a2dd Binary files /dev/null and b/docs/RuntimeAPI/html/classihipCtxCriticalBase__t.png differ diff --git a/docs/RuntimeAPI/html/classihipCtx__t-members.html b/docs/RuntimeAPI/html/classihipCtx__t-members.html new file mode 100644 index 0000000000..200a5d4faa --- /dev/null +++ b/docs/RuntimeAPI/html/classihipCtx__t-members.html @@ -0,0 +1,115 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipCtx_t Member List
+
+
+ +

This is the complete list of members for ihipCtx_t, including all inherited members.

+ + + + + + + + + + + + + + + +
_ctxFlags (defined in ihipCtx_t)ihipCtx_t
_defaultStream (defined in ihipCtx_t)ihipCtx_t
criticalData() (defined in ihipCtx_t)ihipCtx_tinline
getDevice() const (defined in ihipCtx_t)ihipCtx_tinline
getDeviceNum() const (defined in ihipCtx_t)ihipCtx_tinline
getWriteableDevice() const (defined in ihipCtx_t)ihipCtx_tinline
ihipCtx_t(ihipDevice_t *device, unsigned deviceCnt, unsigned flags) (defined in ihipCtx_t)ihipCtx_t
locked_addStream(ihipStream_t *s) (defined in ihipCtx_t)ihipCtx_t
locked_removeStream(ihipStream_t *s) (defined in ihipCtx_t)ihipCtx_t
locked_reset() (defined in ihipCtx_t)ihipCtx_t
locked_syncDefaultStream(bool waitOnSelf) (defined in ihipCtx_t)ihipCtx_t
locked_waitAllStreams() (defined in ihipCtx_t)ihipCtx_t
toString() const (defined in ihipCtx_t)ihipCtx_t
~ihipCtx_t() (defined in ihipCtx_t)ihipCtx_t
+ + + + diff --git a/docs/RuntimeAPI/html/classihipCtx__t.html b/docs/RuntimeAPI/html/classihipCtx__t.html new file mode 100644 index 0000000000..42115ba7d7 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipCtx__t.html @@ -0,0 +1,152 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipCtx_t Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +Public Attributes | +List of all members
+
+
ihipCtx_t Class Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

ihipCtx_t (ihipDevice_t *device, unsigned deviceCnt, unsigned flags)
 
+void locked_addStream (ihipStream_t *s)
 
+void locked_removeStream (ihipStream_t *s)
 
+void locked_reset ()
 
+void locked_waitAllStreams ()
 
+void locked_syncDefaultStream (bool waitOnSelf)
 
+ihipCtxCritical_tcriticalData ()
 
+const ihipDevice_tgetDevice () const
 
+int getDeviceNum () const
 
+ihipDevice_tgetWriteableDevice () const
 
+std::string toString () const
 
+ + + + + +

+Public Attributes

+ihipStream_t_defaultStream
 
+unsigned _ctxFlags
 
+
The documentation for this class was generated from the following files: +
+ + + + diff --git a/docs/RuntimeAPI/html/classihipDevice__t-members.html b/docs/RuntimeAPI/html/classihipDevice__t-members.html new file mode 100644 index 0000000000..bcff2ac95d --- /dev/null +++ b/docs/RuntimeAPI/html/classihipDevice__t-members.html @@ -0,0 +1,111 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipDevice_t Member List
+
+
+ +

This is the complete list of members for ihipDevice_t, including all inherited members.

+ + + + + + + + + + + +
_acc (defined in ihipDevice_t)ihipDevice_t
_computeUnitsihipDevice_t
_deviceId (defined in ihipDevice_t)ihipDevice_t
_hsaAgent (defined in ihipDevice_t)ihipDevice_t
_isLargeBar (defined in ihipDevice_t)ihipDevice_t
_primaryCtx (defined in ihipDevice_t)ihipDevice_t
_props (defined in ihipDevice_t)ihipDevice_t
getPrimaryCtx() const (defined in ihipDevice_t)ihipDevice_tinline
ihipDevice_t(unsigned deviceId, unsigned deviceCnt, hc::accelerator &acc) (defined in ihipDevice_t)ihipDevice_t
~ihipDevice_t() (defined in ihipDevice_t)ihipDevice_t
+ + + + diff --git a/docs/RuntimeAPI/html/classihipDevice__t.html b/docs/RuntimeAPI/html/classihipDevice__t.html new file mode 100644 index 0000000000..53dbfb48ce --- /dev/null +++ b/docs/RuntimeAPI/html/classihipDevice__t.html @@ -0,0 +1,141 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipDevice_t Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +Public Attributes | +List of all members
+
+
ihipDevice_t Class Reference
+
+
+ + + + + + +

+Public Member Functions

ihipDevice_t (unsigned deviceId, unsigned deviceCnt, hc::accelerator &acc)
 
+ihipCtx_tgetPrimaryCtx () const
 
+ + + + + + + + + + + + + + + + +

+Public Attributes

+unsigned _deviceId
 
+hc::accelerator _acc
 
+hsa_agent_t _hsaAgent
 
+unsigned _computeUnits
 Number of compute units supported by the device:
 
+hipDeviceProp_t _props
 
+int _isLargeBar
 
+ihipCtx_t_primaryCtx
 
+
The documentation for this class was generated from the following files: +
+ + + + diff --git a/docs/RuntimeAPI/html/classihipException-members.html b/docs/RuntimeAPI/html/classihipException-members.html new file mode 100644 index 0000000000..a95b0cec3d --- /dev/null +++ b/docs/RuntimeAPI/html/classihipException-members.html @@ -0,0 +1,103 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipException Member List
+
+
+ +

This is the complete list of members for ihipException, including all inherited members.

+ + + +
_code (defined in ihipException)ihipException
ihipException(hipError_t e) (defined in ihipException)ihipExceptioninline
+ + + + diff --git a/docs/RuntimeAPI/html/classihipException.html b/docs/RuntimeAPI/html/classihipException.html new file mode 100644 index 0000000000..09965dc766 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipException.html @@ -0,0 +1,126 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipException Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +Public Attributes | +List of all members
+
+
ihipException Class Reference
+
+
+
+Inheritance diagram for ihipException:
+
+
+ + + +
+ + + + +

+Public Member Functions

ihipException (hipError_t e)
 
+ + + +

+Public Attributes

+hipError_t _code
 
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/classihipException.png b/docs/RuntimeAPI/html/classihipException.png new file mode 100644 index 0000000000..36add951e6 Binary files /dev/null and b/docs/RuntimeAPI/html/classihipException.png differ diff --git a/docs/RuntimeAPI/html/classihipFunction__t-members.html b/docs/RuntimeAPI/html/classihipFunction__t-members.html new file mode 100644 index 0000000000..b2146dd003 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipFunction__t-members.html @@ -0,0 +1,106 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipFunction_t Member List
+
+
+ +

This is the complete list of members for ihipFunction_t, including all inherited members.

+ + + + + + +
_kernel (defined in ihipFunction_t)ihipFunction_t
_kernelName (defined in ihipFunction_t)ihipFunction_t
_kernelSymbol (defined in ihipFunction_t)ihipFunction_t
ihipFunction_t(const char *name) (defined in ihipFunction_t)ihipFunction_tinline
~ihipFunction_t() (defined in ihipFunction_t)ihipFunction_tinline
+ + + + diff --git a/docs/RuntimeAPI/html/classihipFunction__t.html b/docs/RuntimeAPI/html/classihipFunction__t.html new file mode 100644 index 0000000000..2b852c1910 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipFunction__t.html @@ -0,0 +1,124 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipFunction_t Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +Public Attributes | +List of all members
+
+
ihipFunction_t Class Reference
+
+
+ + + + +

+Public Member Functions

ihipFunction_t (const char *name)
 
+ + + + + + + +

+Public Attributes

+const char * _kernelName
 
+hsa_executable_symbol_t _kernelSymbol
 
+uint64_t _kernel
 
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/classihipIpcMemHandle__t-members.html b/docs/RuntimeAPI/html/classihipIpcMemHandle__t-members.html new file mode 100644 index 0000000000..87eee6dc9a --- /dev/null +++ b/docs/RuntimeAPI/html/classihipIpcMemHandle__t-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipIpcMemHandle_t Member List
+
+
+ +

This is the complete list of members for ihipIpcMemHandle_t, including all inherited members.

+ + + + +
ipc_handleihipIpcMemHandle_t
psize (defined in ihipIpcMemHandle_t)ihipIpcMemHandle_t
reserved (defined in ihipIpcMemHandle_t)ihipIpcMemHandle_t
+ + + + diff --git a/docs/RuntimeAPI/html/classihipIpcMemHandle__t.html b/docs/RuntimeAPI/html/classihipIpcMemHandle__t.html new file mode 100644 index 0000000000..b057cf392b --- /dev/null +++ b/docs/RuntimeAPI/html/classihipIpcMemHandle__t.html @@ -0,0 +1,118 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipIpcMemHandle_t Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Attributes | +List of all members
+
+
ihipIpcMemHandle_t Class Reference
+
+
+ + + + + + + + + +

+Public Attributes

+hsa_amd_ipc_memory_t ipc_handle
 ipc memory handle on ROCr
 
+char reserved [HIP_IPC_HANDLE_SIZE]
 
+size_t psize
 
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/classihipModule__t-members.html b/docs/RuntimeAPI/html/classihipModule__t-members.html new file mode 100644 index 0000000000..0ee668b4a5 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipModule__t-members.html @@ -0,0 +1,109 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipModule_t Member List
+
+
+ +

This is the complete list of members for ihipModule_t, including all inherited members.

+ + + + + + + + + +
executable (defined in ihipModule_t)ihipModule_t
fileName (defined in ihipModule_t)ihipModule_t
ihipModule_t() (defined in ihipModule_t)ihipModule_tinline
object (defined in ihipModule_t)ihipModule_t
ptr (defined in ihipModule_t)ihipModule_t
registerFunction(ihipFunction_t *func) (defined in ihipModule_t)ihipModule_tinline
size (defined in ihipModule_t)ihipModule_t
~ihipModule_t() (defined in ihipModule_t)ihipModule_tinline
+ + + + diff --git a/docs/RuntimeAPI/html/classihipModule__t.html b/docs/RuntimeAPI/html/classihipModule__t.html new file mode 100644 index 0000000000..0726617630 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipModule__t.html @@ -0,0 +1,130 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipModule_t Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +Public Attributes | +List of all members
+
+
ihipModule_t Class Reference
+
+
+ + + + +

+Public Member Functions

+void registerFunction (ihipFunction_t *func)
 
+ + + + + + + + + + + +

+Public Attributes

+hsa_executable_t executable
 
+hsa_code_object_t object
 
+std::string fileName
 
+void * ptr
 
+size_t size
 
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/classihipStreamCriticalBase__t-members.html b/docs/RuntimeAPI/html/classihipStreamCriticalBase__t-members.html new file mode 100644 index 0000000000..6cd21dc31f --- /dev/null +++ b/docs/RuntimeAPI/html/classihipStreamCriticalBase__t-members.html @@ -0,0 +1,109 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipStreamCriticalBase_t< MUTEX_TYPE > Member List
+
+
+ +

This is the complete list of members for ihipStreamCriticalBase_t< MUTEX_TYPE >, including all inherited members.

+ + + + + + + + + +
_av (defined in ihipStreamCriticalBase_t< MUTEX_TYPE >)ihipStreamCriticalBase_t< MUTEX_TYPE >
_kernelCnt (defined in ihipStreamCriticalBase_t< MUTEX_TYPE >)ihipStreamCriticalBase_t< MUTEX_TYPE >
_mutex (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >
ihipStreamCriticalBase_t(hc::accelerator_view av) (defined in ihipStreamCriticalBase_t< MUTEX_TYPE >)ihipStreamCriticalBase_t< MUTEX_TYPE >inline
lock() (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >inline
mlock() (defined in ihipStreamCriticalBase_t< MUTEX_TYPE >)ihipStreamCriticalBase_t< MUTEX_TYPE >inline
unlock() (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >inline
~ihipStreamCriticalBase_t() (defined in ihipStreamCriticalBase_t< MUTEX_TYPE >)ihipStreamCriticalBase_t< MUTEX_TYPE >inline
+ + + + diff --git a/docs/RuntimeAPI/html/classihipStreamCriticalBase__t.html b/docs/RuntimeAPI/html/classihipStreamCriticalBase__t.html new file mode 100644 index 0000000000..c06d346cc3 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipStreamCriticalBase__t.html @@ -0,0 +1,145 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipStreamCriticalBase_t< MUTEX_TYPE > Class Template Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Member Functions | +Public Attributes | +List of all members
+
+
ihipStreamCriticalBase_t< MUTEX_TYPE > Class Template Reference
+
+
+
+Inheritance diagram for ihipStreamCriticalBase_t< MUTEX_TYPE >:
+
+
+ + +LockedBase< MUTEX_TYPE > + +
+ + + + + + + + + + + +

+Public Member Functions

ihipStreamCriticalBase_t (hc::accelerator_view av)
 
+ihipStreamCriticalBase_t
+< StreamMutex > * 
mlock ()
 
- Public Member Functions inherited from LockedBase< MUTEX_TYPE >
+void lock ()
 
+void unlock ()
 
+ + + + + + + + +

+Public Attributes

+uint32_t _kernelCnt
 
+hc::accelerator_view _av
 
- Public Attributes inherited from LockedBase< MUTEX_TYPE >
+MUTEX_TYPE _mutex
 
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/classihipStreamCriticalBase__t.png b/docs/RuntimeAPI/html/classihipStreamCriticalBase__t.png new file mode 100644 index 0000000000..4d8990f4ca Binary files /dev/null and b/docs/RuntimeAPI/html/classihipStreamCriticalBase__t.png differ diff --git a/docs/RuntimeAPI/html/classihipStream__t-members.html b/docs/RuntimeAPI/html/classihipStream__t-members.html new file mode 100644 index 0000000000..2b1739efbf --- /dev/null +++ b/docs/RuntimeAPI/html/classihipStream__t-members.html @@ -0,0 +1,124 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
ihipStream_t Member List
+
+
+ +

This is the complete list of members for ihipStream_t, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + +
_flags (defined in ihipStream_t)ihipStream_t
_id (defined in ihipStream_t)ihipStream_t
Auto enum value (defined in ihipStream_t)ihipStream_t
getCtx() const (defined in ihipStream_t)ihipStream_t
getDevice() const (defined in ihipStream_t)ihipStream_t
hipStreamQuery(hipStream_t)ihipStream_tfriend
ihipStream_t(ihipCtx_t *ctx, hc::accelerator_view av, unsigned int flags) (defined in ihipStream_t)ihipStream_t
launchModuleKernel(hc::accelerator_view av, hsa_signal_t signal, uint32_t blockDimX, uint32_t blockDimY, uint32_t blockDimZ, uint32_t gridDimX, uint32_t gridDimY, uint32_t gridDimZ, uint32_t groupSegmentSize, uint32_t sharedMemBytes, void *kernarg, size_t kernSize, uint64_t kernel) (defined in ihipStream_t)ihipStream_t
lockclose_postKernelCommand(const char *kernelName, hc::accelerator_view *av) (defined in ihipStream_t)ihipStream_t
locked_copyAsync(void *dst, const void *src, size_t sizeBytes, unsigned kind) (defined in ihipStream_t)ihipStream_t
locked_copySync(void *dst, const void *src, size_t sizeBytes, unsigned kind, bool resolveOn=true) (defined in ihipStream_t)ihipStream_t
locked_getAv() (defined in ihipStream_t)ihipStream_tinline
locked_recordEvent(hipEvent_t event) (defined in ihipStream_t)ihipStream_t
locked_wait(bool assertQueueEmpty=false) (defined in ihipStream_t)ihipStream_t
locked_waitEvent(hipEvent_t event) (defined in ihipStream_t)ihipStream_t
lockopen_preKernelCommand() (defined in ihipStream_t)ihipStream_t
operator<< (defined in ihipStream_t)ihipStream_tfriend
ScheduleMode enum name (defined in ihipStream_t)ihipStream_t
SeqNum_t typedef (defined in ihipStream_t)ihipStream_t
Spin enum value (defined in ihipStream_t)ihipStream_t
wait(LockedAccessor_StreamCrit_t &crit, bool assertQueueEmpty=false) (defined in ihipStream_t)ihipStream_t
Yield enum value (defined in ihipStream_t)ihipStream_t
~ihipStream_t() (defined in ihipStream_t)ihipStream_t
+ + + + diff --git a/docs/RuntimeAPI/html/classihipStream__t.html b/docs/RuntimeAPI/html/classihipStream__t.html new file mode 100644 index 0000000000..9b06ac3bc4 --- /dev/null +++ b/docs/RuntimeAPI/html/classihipStream__t.html @@ -0,0 +1,216 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipStream_t Class Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+Public Types | +Public Member Functions | +Public Attributes | +Friends | +List of all members
+
+
ihipStream_t Class Reference
+
+
+ + + + + + +

+Public Types

enum  ScheduleMode { Auto, +Spin, +Yield + }
 
+typedef uint64_t SeqNum_t
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

ihipStream_t (ihipCtx_t *ctx, hc::accelerator_view av, unsigned int flags)
 
+void locked_copySync (void *dst, const void *src, size_t sizeBytes, unsigned kind, bool resolveOn=true)
 
+void locked_copyAsync (void *dst, const void *src, size_t sizeBytes, unsigned kind)
 
+LockedAccessor_StreamCrit_t lockopen_preKernelCommand ()
 
+void lockclose_postKernelCommand (const char *kernelName, hc::accelerator_view *av)
 
+void locked_wait (bool assertQueueEmpty=false)
 
+hc::accelerator_view * locked_getAv ()
 
+void locked_waitEvent (hipEvent_t event)
 
+void locked_recordEvent (hipEvent_t event)
 
+void wait (LockedAccessor_StreamCrit_t &crit, bool assertQueueEmpty=false)
 
+void launchModuleKernel (hc::accelerator_view av, hsa_signal_t signal, uint32_t blockDimX, uint32_t blockDimY, uint32_t blockDimZ, uint32_t gridDimX, uint32_t gridDimY, uint32_t gridDimZ, uint32_t groupSegmentSize, uint32_t sharedMemBytes, void *kernarg, size_t kernSize, uint64_t kernel)
 
+const ihipDevice_tgetDevice () const
 
+ihipCtx_tgetCtx () const
 
+ + + + + +

+Public Attributes

+SeqNum_t _id
 
+unsigned _flags
 
+ + + + + + +

+Friends

+std::ostream & operator<< (std::ostream &os, const ihipStream_t &s)
 
hipError_t hipStreamQuery (hipStream_t)
 Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not. More...
 
+

Friends And Related Function Documentation

+ +
+
+ + + + + +
+ + + + + + + + +
hipError_t hipStreamQuery (hipStream_t stream)
+
+friend
+
+ +

Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not.

+
Parameters
+ + +
[in]streamstream to query
+
+
+
Returns
hipSuccess, hipErrorNotReady, hipErrorInvalidResourceHandle
+

This is thread-safe and returns a snapshot of the current state of the queue. However, if other host threads are sending work to the stream, the status may change immediately after the function is called. It is typically used for debug.

+
See Also
hipStreamCreate, hipStreamCreateWithFlags, hipStreamWaitEvent, hipStreamSynchronize, hipStreamDestroy
+ +
+
+
The documentation for this class was generated from the following files: +
+ + + + diff --git a/docs/RuntimeAPI/html/closed.png b/docs/RuntimeAPI/html/closed.png new file mode 100644 index 0000000000..98cc2c909d Binary files /dev/null and b/docs/RuntimeAPI/html/closed.png differ diff --git a/docs/RuntimeAPI/html/deprecated.html b/docs/RuntimeAPI/html/deprecated.html new file mode 100644 index 0000000000..3511316256 --- /dev/null +++ b/docs/RuntimeAPI/html/deprecated.html @@ -0,0 +1,98 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Deprecated List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
+
Deprecated List
+
+
+
+
Member hipFreeHost (void *ptr) __attribute__((deprecated("use hipHostFree instead")))
+
use hipHostFree() instead
+
Member hipHostAlloc (void **ptr, size_t size, unsigned int flags) __attribute__((deprecated("use hipHostMalloc instead")))
+
use hipHostMalloc() instead
+
Member hipMallocHost (void **ptr, size_t size) __attribute__((deprecated("use hipHostMalloc instead")))
+
use hipHostMalloc() instead
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/device__util_8h_source.html b/docs/RuntimeAPI/html/device__util_8h_source.html new file mode 100644 index 0000000000..7b1dbfd91e --- /dev/null +++ b/docs/RuntimeAPI/html/device__util_8h_source.html @@ -0,0 +1,138 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/src/device_util.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ + +
+
+
+
device_util.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #ifndef DEVICE_UTIL_H
+
24 #define DEVICE_UTIL_H
+
25 
+
26 /*
+
27  Heap size computation for malloc and free device functions.
+
28 */
+
29 
+
30 #define NUM_PAGES_PER_THREAD 16
+
31 #define SIZE_OF_PAGE 64
+
32 #define NUM_THREADS_PER_CU 64
+
33 #define NUM_CUS_PER_GPU 64
+
34 #define NUM_PAGES NUM_PAGES_PER_THREAD * NUM_THREADS_PER_CU * NUM_CUS_PER_GPU
+
35 #define SIZE_MALLOC NUM_PAGES * SIZE_OF_PAGE
+
36 #define SIZE_OF_HEAP SIZE_MALLOC
+
37 
+
38 #endif
+
+ + + + diff --git a/docs/RuntimeAPI/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/docs/RuntimeAPI/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html new file mode 100644 index 0000000000..96d309a573 --- /dev/null +++ b/docs/RuntimeAPI/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html @@ -0,0 +1,130 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/src Directory Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ + +
+
+
+
src Directory Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Files

file  device_util.cpp
 
file  device_util.h [code]
 
file  hip_context.cpp
 
file  hip_device.cpp
 
file  hip_error.cpp
 
file  hip_event.cpp
 
file  hip_fp16.cpp
 
file  hip_hcc.cpp
 
file  hip_hcc.h [code]
 
file  hip_ldg.cpp
 
file  hip_memory.cpp
 
file  hip_module.cpp
 
file  hip_peer.cpp
 
file  hip_stream.cpp
 
file  hip_util.h [code]
 
file  trace_helper.h [code]
 
+
+ + + + diff --git a/docs/RuntimeAPI/html/dir_82c4e5e99cd964a390bd8b007f79d8a6.html b/docs/RuntimeAPI/html/dir_82c4e5e99cd964a390bd8b007f79d8a6.html new file mode 100644 index 0000000000..15a657aa89 --- /dev/null +++ b/docs/RuntimeAPI/html/dir_82c4e5e99cd964a390bd8b007f79d8a6.html @@ -0,0 +1,121 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip Directory Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ + +
+
+
+
hip Directory Reference
+
+
+ + + + +

+Directories

directory  hcc_detail
 
+ + + + + + + + + + + + + + + + + + + +

+Files

file  hcc.h [code]
 
file  hip_common.h [code]
 
file  hip_complex.h [code]
 
file  hip_fp16.h [code]
 
file  hip_profile.h [code]
 
file  hip_runtime.h [code]
 
file  hip_runtime_api.h [code]
 
file  hip_texture.h [code]
 
file  hip_vector_types.h [code]
 
+
+ + + + diff --git a/docs/RuntimeAPI/html/dir_ce4f9d092cd8b82b7c46cef8ba457558.html b/docs/RuntimeAPI/html/dir_ce4f9d092cd8b82b7c46cef8ba457558.html new file mode 100644 index 0000000000..64041d944b --- /dev/null +++ b/docs/RuntimeAPI/html/dir_ce4f9d092cd8b82b7c46cef8ba457558.html @@ -0,0 +1,121 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail Directory Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ + +
+
+
+
hcc_detail Directory Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +

+Files

file  hcc_acc.h [code]
 
file  hip_complex.h [code]
 
file  hip_fp16.h [code]
 
file  hip_ldg.h [code]
 
file  hip_runtime.h [code]
 Contains definitions of APIs for HIP runtime.
 
file  hip_runtime_api.h [code]
 Contains C function APIs for HIP runtime. This file does not use any HCC builtin or special language extensions (-hc mode) ; those functions in hip_runtime.h.
 
file  hip_texture.h [code]
 HIP C++ Texture API for hcc compiler.
 
file  hip_vector_types.h [code]
 Defines the different newt vector types for HIP runtime.
 
file  host_defines.h [code]
 TODO-doc.
 
+
+ + + + diff --git a/docs/RuntimeAPI/html/dir_d44c64559bbebec7f509842c48db8b23.html b/docs/RuntimeAPI/html/dir_d44c64559bbebec7f509842c48db8b23.html new file mode 100644 index 0000000000..719a287cc7 --- /dev/null +++ b/docs/RuntimeAPI/html/dir_d44c64559bbebec7f509842c48db8b23.html @@ -0,0 +1,100 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include Directory Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ + +
+
+
+
include Directory Reference
+
+
+ + + + +

+Directories

directory  hip
 
+
+ + + + diff --git a/docs/RuntimeAPI/html/doxygen.css b/docs/RuntimeAPI/html/doxygen.css new file mode 100644 index 0000000000..f0f36f89f5 --- /dev/null +++ b/docs/RuntimeAPI/html/doxygen.css @@ -0,0 +1,1366 @@ +/* The standard CSS for doxygen 1.8.6 */ + +body, table, div, p, dl { + font: 400 14px/22px Roboto,sans-serif; +} + +/* @group Heading Levels */ + +h1.groupheader { + font-size: 150%; +} + +.title { + font: 400 14px/28px Roboto,sans-serif; + font-size: 150%; + font-weight: bold; + margin: 10px 2px; +} + +h2.groupheader { + border-bottom: 1px solid #879ECB; + color: #354C7B; + font-size: 150%; + font-weight: normal; + margin-top: 1.75em; + padding-top: 8px; + padding-bottom: 4px; + width: 100%; +} + +h3.groupheader { + font-size: 100%; +} + +h1, h2, h3, h4, h5, h6 { + -webkit-transition: text-shadow 0.5s linear; + -moz-transition: text-shadow 0.5s linear; + -ms-transition: text-shadow 0.5s linear; + -o-transition: text-shadow 0.5s linear; + transition: text-shadow 0.5s linear; + margin-right: 15px; +} + +h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { + text-shadow: 0 0 15px cyan; +} + +dt { + font-weight: bold; +} + +div.multicol { + -moz-column-gap: 1em; + -webkit-column-gap: 1em; + -moz-column-count: 3; + -webkit-column-count: 3; +} + +p.startli, p.startdd { + margin-top: 2px; +} + +p.starttd { + margin-top: 0px; +} + +p.endli { + margin-bottom: 0px; +} + +p.enddd { + margin-bottom: 4px; +} + +p.endtd { + margin-bottom: 2px; +} + +/* @end */ + +caption { + font-weight: bold; +} + +span.legend { + font-size: 70%; + text-align: center; +} + +h3.version { + font-size: 90%; + text-align: center; +} + +div.qindex, div.navtab{ + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; +} + +div.qindex, div.navpath { + width: 100%; + line-height: 140%; +} + +div.navtab { + margin-right: 15px; +} + +/* @group Link Styling */ + +a { + color: #3D578C; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #4665A2; +} + +a:hover { + text-decoration: underline; +} + +a.qindex { + font-weight: bold; +} + +a.qindexHL { + font-weight: bold; + background-color: #9CAFD4; + color: #ffffff; + border: 1px double #869DCA; +} + +.contents a.qindexHL:visited { + color: #ffffff; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code, a.code:visited, a.line, a.line:visited { + color: #4665A2; +} + +a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { + color: #4665A2; +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +pre.fragment { + border: 1px solid #C4CFE5; + background-color: #FBFCFD; + padding: 4px 6px; + margin: 4px 8px 4px 2px; + overflow: auto; + word-wrap: break-word; + font-size: 9pt; + line-height: 125%; + font-family: monospace, fixed; + font-size: 105%; +} + +div.fragment { + padding: 4px 6px; + margin: 4px 8px 4px 2px; + background-color: #FBFCFD; + border: 1px solid #C4CFE5; +} + +div.line { + font-family: monospace, fixed; + font-size: 13px; + min-height: 13px; + line-height: 1.0; + text-wrap: unrestricted; + white-space: -moz-pre-wrap; /* Moz */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS3 */ + word-wrap: break-word; /* IE 5.5+ */ + text-indent: -53px; + padding-left: 53px; + padding-bottom: 0px; + margin: 0px; + -webkit-transition-property: background-color, box-shadow; + -webkit-transition-duration: 0.5s; + -moz-transition-property: background-color, box-shadow; + -moz-transition-duration: 0.5s; + -ms-transition-property: background-color, box-shadow; + -ms-transition-duration: 0.5s; + -o-transition-property: background-color, box-shadow; + -o-transition-duration: 0.5s; + transition-property: background-color, box-shadow; + transition-duration: 0.5s; +} + +div.line.glow { + background-color: cyan; + box-shadow: 0 0 10px cyan; +} + + +span.lineno { + padding-right: 4px; + text-align: right; + border-right: 2px solid #0F0; + background-color: #E8E8E8; + white-space: pre; +} +span.lineno a { + background-color: #D8D8D8; +} + +span.lineno a:hover { + background-color: #C8C8C8; +} + +div.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px; + padding: 0.2em; + border: solid thin #333; + border-radius: 0.5em; + -webkit-border-radius: .5em; + -moz-border-radius: .5em; + box-shadow: 2px 2px 3px #999; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); + background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + background-color: white; + color: black; + margin: 0; +} + +div.contents { + margin-top: 10px; + margin-left: 12px; + margin-right: 8px; +} + +td.indexkey { + background-color: #EBEFF6; + font-weight: bold; + border: 1px solid #C4CFE5; + margin: 2px 0px 2px 0; + padding: 2px 10px; + white-space: nowrap; + vertical-align: top; +} + +td.indexvalue { + background-color: #EBEFF6; + border: 1px solid #C4CFE5; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #EEF1F7; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl { + vertical-align: middle; +} + +div.center { + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; +} + +div.center img { + border: 0px; +} + +address.footer { + text-align: right; + padding-right: 12px; +} + +img.footer { + border: 0px; + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +blockquote { + background-color: #F7F8FB; + border-left: 2px solid #9CAFD4; + margin: 0 24px 0 4px; + padding: 0 12px 0 16px; +} + +/* @end */ + +/* +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +*/ + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #A3B4D7; +} + +th.dirtab { + background: #EBEFF6; + font-weight: bold; +} + +hr { + height: 0px; + border: none; + border-top: 1px solid #4A6AAA; +} + +hr.footer { + height: 1px; +} + +/* @group Member Descriptions */ + +table.memberdecls { + border-spacing: 0px; + padding: 0px; +} + +.memberdecls td, .fieldtable tr { + -webkit-transition-property: background-color, box-shadow; + -webkit-transition-duration: 0.5s; + -moz-transition-property: background-color, box-shadow; + -moz-transition-duration: 0.5s; + -ms-transition-property: background-color, box-shadow; + -ms-transition-duration: 0.5s; + -o-transition-property: background-color, box-shadow; + -o-transition-duration: 0.5s; + transition-property: background-color, box-shadow; + transition-duration: 0.5s; +} + +.memberdecls td.glow, .fieldtable tr.glow { + background-color: cyan; + box-shadow: 0 0 15px cyan; +} + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #F9FAFC; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memSeparator { + border-bottom: 1px solid #DEE4F0; + line-height: 1px; + margin: 0px; + padding: 0px; +} + +.memItemLeft, .memTemplItemLeft { + white-space: nowrap; +} + +.memItemRight { + width: 100%; +} + +.memTemplParams { + color: #4665A2; + white-space: nowrap; + font-size: 80%; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtemplate { + font-size: 80%; + color: #4665A2; + font-weight: normal; + margin-left: 9px; +} + +.memnav { + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.mempage { + width: 100%; +} + +.memitem { + padding: 0; + margin-bottom: 10px; + margin-right: 5px; + -webkit-transition: box-shadow 0.5s linear; + -moz-transition: box-shadow 0.5s linear; + -ms-transition: box-shadow 0.5s linear; + -o-transition: box-shadow 0.5s linear; + transition: box-shadow 0.5s linear; + display: table !important; + width: 100%; +} + +.memitem.glow { + box-shadow: 0 0 15px cyan; +} + +.memname { + font-weight: bold; + margin-left: 6px; +} + +.memname td { + vertical-align: bottom; +} + +.memproto, dl.reflist dt { + border-top: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 6px 0px 6px 0px; + color: #253555; + font-weight: bold; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + /* opera specific markup */ + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + border-top-right-radius: 4px; + border-top-left-radius: 4px; + /* firefox specific markup */ + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + -moz-border-radius-topright: 4px; + -moz-border-radius-topleft: 4px; + /* webkit specific markup */ + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + -webkit-border-top-right-radius: 4px; + -webkit-border-top-left-radius: 4px; + +} + +.memdoc, dl.reflist dd { + border-bottom: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 6px 10px 2px 10px; + background-color: #FBFCFD; + border-top-width: 0; + background-image:url('nav_g.png'); + background-repeat:repeat-x; + background-color: #FFFFFF; + /* opera specific markup */ + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + /* firefox specific markup */ + -moz-border-radius-bottomleft: 4px; + -moz-border-radius-bottomright: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + /* webkit specific markup */ + -webkit-border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} + +dl.reflist dt { + padding: 5px; +} + +dl.reflist dd { + margin: 0px 0px 10px 0px; + padding: 5px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} +.paramname code { + line-height: 14px; +} + +.params, .retval, .exception, .tparams { + margin-left: 0px; + padding-left: 0px; +} + +.params .paramname, .retval .paramname { + font-weight: bold; + vertical-align: top; +} + +.params .paramtype { + font-style: italic; + vertical-align: top; +} + +.params .paramdir { + font-family: "courier new",courier,monospace; + vertical-align: top; +} + +table.mlabels { + border-spacing: 0px; +} + +td.mlabels-left { + width: 100%; + padding: 0px; +} + +td.mlabels-right { + vertical-align: bottom; + padding: 0px; + white-space: nowrap; +} + +span.mlabels { + margin-left: 8px; +} + +span.mlabel { + background-color: #728DC1; + border-top:1px solid #5373B4; + border-left:1px solid #5373B4; + border-right:1px solid #C4CFE5; + border-bottom:1px solid #C4CFE5; + text-shadow: none; + color: white; + margin-right: 4px; + padding: 2px 3px; + border-radius: 3px; + font-size: 7pt; + white-space: nowrap; + vertical-align: middle; +} + + + +/* @end */ + +/* these are for tree view when not used as main index */ + +div.directory { + margin: 10px 0px; + border-top: 1px solid #A8B8D9; + border-bottom: 1px solid #A8B8D9; + width: 100%; +} + +.directory table { + border-collapse:collapse; +} + +.directory td { + margin: 0px; + padding: 0px; + vertical-align: top; +} + +.directory td.entry { + white-space: nowrap; + padding-right: 6px; + padding-top: 3px; +} + +.directory td.entry a { + outline:none; +} + +.directory td.entry a img { + border: none; +} + +.directory td.desc { + width: 100%; + padding-left: 6px; + padding-right: 6px; + padding-top: 3px; + border-left: 1px solid rgba(0,0,0,0.05); +} + +.directory tr.even { + padding-left: 6px; + background-color: #F7F8FB; +} + +.directory img { + vertical-align: -30%; +} + +.directory .levels { + white-space: nowrap; + width: 100%; + text-align: right; + font-size: 9pt; +} + +.directory .levels span { + cursor: pointer; + padding-left: 2px; + padding-right: 2px; + color: #3D578C; +} + +div.dynheader { + margin-top: 8px; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +address { + font-style: normal; + color: #2A3D61; +} + +table.doxtable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.doxtable td, table.doxtable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.doxtable th { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +table.fieldtable { + /*width: 100%;*/ + margin-bottom: 10px; + border: 1px solid #A8B8D9; + border-spacing: 0px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); + box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); +} + +.fieldtable td, .fieldtable th { + padding: 3px 7px 2px; +} + +.fieldtable td.fieldtype, .fieldtable td.fieldname { + white-space: nowrap; + border-right: 1px solid #A8B8D9; + border-bottom: 1px solid #A8B8D9; + vertical-align: top; +} + +.fieldtable td.fieldname { + padding-top: 3px; +} + +.fieldtable td.fielddoc { + border-bottom: 1px solid #A8B8D9; + /*width: 100%;*/ +} + +.fieldtable td.fielddoc p:first-child { + margin-top: 0px; +} + +.fieldtable td.fielddoc p:last-child { + margin-bottom: 2px; +} + +.fieldtable tr:last-child td { + border-bottom: none; +} + +.fieldtable th { + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + font-size: 90%; + color: #253555; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; + -moz-border-radius-topleft: 4px; + -moz-border-radius-topright: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom: 1px solid #A8B8D9; +} + + +.tabsearch { + top: 0px; + left: 10px; + height: 36px; + background-image: url('tab_b.png'); + z-index: 101; + overflow: hidden; + font-size: 13px; +} + +.navpath ul +{ + font-size: 11px; + background-image:url('tab_b.png'); + background-repeat:repeat-x; + background-position: 0 -5px; + height:30px; + line-height:30px; + color:#8AA0CC; + border:solid 1px #C2CDE4; + overflow:hidden; + margin:0px; + padding:0px; +} + +.navpath li +{ + list-style-type:none; + float:left; + padding-left:10px; + padding-right:15px; + background-image:url('bc_s.png'); + background-repeat:no-repeat; + background-position:right; + color:#364D7C; +} + +.navpath li.navelem a +{ + height:32px; + display:block; + text-decoration: none; + outline: none; + color: #283A5D; + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + text-decoration: none; +} + +.navpath li.navelem a:hover +{ + color:#6884BD; +} + +.navpath li.footer +{ + list-style-type:none; + float:right; + padding-left:10px; + padding-right:15px; + background-image:none; + background-repeat:no-repeat; + background-position:right; + color:#364D7C; + font-size: 8pt; +} + + +div.summary +{ + float: right; + font-size: 8pt; + padding-right: 5px; + width: 50%; + text-align: right; +} + +div.summary a +{ + white-space: nowrap; +} + +div.ingroups +{ + font-size: 8pt; + width: 50%; + text-align: left; +} + +div.ingroups a +{ + white-space: nowrap; +} + +div.header +{ + background-image:url('nav_h.png'); + background-repeat:repeat-x; + background-color: #F9FAFC; + margin: 0px; + border-bottom: 1px solid #C4CFE5; +} + +div.headertitle +{ + padding: 5px 5px 5px 10px; +} + +dl +{ + padding: 0 0 0 10px; +} + +/* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */ +dl.section +{ + margin-left: 0px; + padding-left: 0px; +} + +dl.note +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #D0C000; +} + +dl.warning, dl.attention +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #FF0000; +} + +dl.pre, dl.post, dl.invariant +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #00D000; +} + +dl.deprecated +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #505050; +} + +dl.todo +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #00C0E0; +} + +dl.test +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #3030E0; +} + +dl.bug +{ + margin-left:-7px; + padding-left: 3px; + border-left:4px solid; + border-color: #C08050; +} + +dl.section dd { + margin-bottom: 6px; +} + + +#projectlogo +{ + text-align: center; + vertical-align: bottom; + border-collapse: separate; +} + +#projectlogo img +{ + border: 0px none; +} + +#projectname +{ + font: 300% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 2px 0px; +} + +#projectbrief +{ + font: 120% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#projectnumber +{ + font: 50% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#titlearea +{ + padding: 0px; + margin: 0px; + width: 100%; + border-bottom: 1px solid #5373B4; +} + +.image +{ + text-align: center; +} + +.dotgraph +{ + text-align: center; +} + +.mscgraph +{ + text-align: center; +} + +.diagraph +{ + text-align: center; +} + +.caption +{ + font-weight: bold; +} + +div.zoom +{ + border: 1px solid #90A5CE; +} + +dl.citelist { + margin-bottom:50px; +} + +dl.citelist dt { + color:#334975; + float:left; + font-weight:bold; + margin-right:10px; + padding:5px; +} + +dl.citelist dd { + margin:2px 0; + padding:5px 0; +} + +div.toc { + padding: 14px 25px; + background-color: #F4F6FA; + border: 1px solid #D8DFEE; + border-radius: 7px 7px 7px 7px; + float: right; + height: auto; + margin: 0 20px 10px 10px; + width: 200px; +} + +div.toc li { + background: url("bdwn.png") no-repeat scroll 0 5px transparent; + font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif; + margin-top: 5px; + padding-left: 10px; + padding-top: 2px; +} + +div.toc h3 { + font: bold 12px/1.2 Arial,FreeSans,sans-serif; + color: #4665A2; + border-bottom: 0 none; + margin: 0; +} + +div.toc ul { + list-style: none outside none; + border: medium none; + padding: 0px; +} + +div.toc li.level1 { + margin-left: 0px; +} + +div.toc li.level2 { + margin-left: 15px; +} + +div.toc li.level3 { + margin-left: 30px; +} + +div.toc li.level4 { + margin-left: 45px; +} + +.inherit_header { + font-weight: bold; + color: gray; + cursor: pointer; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.inherit_header td { + padding: 6px 0px 2px 5px; +} + +.inherit { + display: none; +} + +tr.heading h2 { + margin-top: 12px; + margin-bottom: 4px; +} + +/* tooltip related style info */ + +.ttc { + position: absolute; + display: none; +} + +#powerTip { + cursor: default; + white-space: nowrap; + background-color: white; + border: 1px solid gray; + border-radius: 4px 4px 4px 4px; + box-shadow: 1px 1px 7px gray; + display: none; + font-size: smaller; + max-width: 80%; + opacity: 0.9; + padding: 1ex 1em 1em; + position: absolute; + z-index: 2147483647; +} + +#powerTip div.ttdoc { + color: grey; + font-style: italic; +} + +#powerTip div.ttname a { + font-weight: bold; +} + +#powerTip div.ttname { + font-weight: bold; +} + +#powerTip div.ttdeci { + color: #006318; +} + +#powerTip div { + margin: 0px; + padding: 0px; + font: 12px/16px Roboto,sans-serif; +} + +#powerTip:before, #powerTip:after { + content: ""; + position: absolute; + margin: 0px; +} + +#powerTip.n:after, #powerTip.n:before, +#powerTip.s:after, #powerTip.s:before, +#powerTip.w:after, #powerTip.w:before, +#powerTip.e:after, #powerTip.e:before, +#powerTip.ne:after, #powerTip.ne:before, +#powerTip.se:after, #powerTip.se:before, +#powerTip.nw:after, #powerTip.nw:before, +#powerTip.sw:after, #powerTip.sw:before { + border: solid transparent; + content: " "; + height: 0; + width: 0; + position: absolute; +} + +#powerTip.n:after, #powerTip.s:after, +#powerTip.w:after, #powerTip.e:after, +#powerTip.nw:after, #powerTip.ne:after, +#powerTip.sw:after, #powerTip.se:after { + border-color: rgba(255, 255, 255, 0); +} + +#powerTip.n:before, #powerTip.s:before, +#powerTip.w:before, #powerTip.e:before, +#powerTip.nw:before, #powerTip.ne:before, +#powerTip.sw:before, #powerTip.se:before { + border-color: rgba(128, 128, 128, 0); +} + +#powerTip.n:after, #powerTip.n:before, +#powerTip.ne:after, #powerTip.ne:before, +#powerTip.nw:after, #powerTip.nw:before { + top: 100%; +} + +#powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after { + border-top-color: #ffffff; + border-width: 10px; + margin: 0px -10px; +} +#powerTip.n:before { + border-top-color: #808080; + border-width: 11px; + margin: 0px -11px; +} +#powerTip.n:after, #powerTip.n:before { + left: 50%; +} + +#powerTip.nw:after, #powerTip.nw:before { + right: 14px; +} + +#powerTip.ne:after, #powerTip.ne:before { + left: 14px; +} + +#powerTip.s:after, #powerTip.s:before, +#powerTip.se:after, #powerTip.se:before, +#powerTip.sw:after, #powerTip.sw:before { + bottom: 100%; +} + +#powerTip.s:after, #powerTip.se:after, #powerTip.sw:after { + border-bottom-color: #ffffff; + border-width: 10px; + margin: 0px -10px; +} + +#powerTip.s:before, #powerTip.se:before, #powerTip.sw:before { + border-bottom-color: #808080; + border-width: 11px; + margin: 0px -11px; +} + +#powerTip.s:after, #powerTip.s:before { + left: 50%; +} + +#powerTip.sw:after, #powerTip.sw:before { + right: 14px; +} + +#powerTip.se:after, #powerTip.se:before { + left: 14px; +} + +#powerTip.e:after, #powerTip.e:before { + left: 100%; +} +#powerTip.e:after { + border-left-color: #ffffff; + border-width: 10px; + top: 50%; + margin-top: -10px; +} +#powerTip.e:before { + border-left-color: #808080; + border-width: 11px; + top: 50%; + margin-top: -11px; +} + +#powerTip.w:after, #powerTip.w:before { + right: 100%; +} +#powerTip.w:after { + border-right-color: #ffffff; + border-width: 10px; + top: 50%; + margin-top: -10px; +} +#powerTip.w:before { + border-right-color: #808080; + border-width: 11px; + top: 50%; + margin-top: -11px; +} + +@media print +{ + #top { display: none; } + #side-nav { display: none; } + #nav-path { display: none; } + body { overflow:visible; } + h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + .summary { display: none; } + .memitem { page-break-inside: avoid; } + #doc-content + { + margin-left:0 !important; + height:auto !important; + width:auto !important; + overflow:inherit; + display:inline; + } +} + diff --git a/docs/RuntimeAPI/html/doxygen.png b/docs/RuntimeAPI/html/doxygen.png new file mode 100644 index 0000000000..3ff17d807f Binary files /dev/null and b/docs/RuntimeAPI/html/doxygen.png differ diff --git a/docs/RuntimeAPI/html/dynsections.js b/docs/RuntimeAPI/html/dynsections.js new file mode 100644 index 0000000000..ed092c7f63 --- /dev/null +++ b/docs/RuntimeAPI/html/dynsections.js @@ -0,0 +1,97 @@ +function toggleVisibility(linkObj) +{ + var base = $(linkObj).attr('id'); + var summary = $('#'+base+'-summary'); + var content = $('#'+base+'-content'); + var trigger = $('#'+base+'-trigger'); + var src=$(trigger).attr('src'); + if (content.is(':visible')===true) { + content.hide(); + summary.show(); + $(linkObj).addClass('closed').removeClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); + } else { + content.show(); + summary.hide(); + $(linkObj).removeClass('closed').addClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); + } + return false; +} + +function updateStripes() +{ + $('table.directory tr'). + removeClass('even').filter(':visible:even').addClass('even'); +} +function toggleLevel(level) +{ + $('table.directory tr').each(function(){ + var l = this.id.split('_').length-1; + var i = $('#img'+this.id.substring(3)); + var a = $('#arr'+this.id.substring(3)); + if (l + + + + + +HIP: Heterogenous-computing Interface for Portability: File List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
File List
+
+
+
Here is a list of all documented files with brief descriptions:
+
[detail level 1234]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
o-include
|\-hip
| o-hcc_detail
| |o*hcc_acc.h
| |o*hip_complex.h
| |o*hip_fp16.h
| |o*hip_ldg.h
| |o*hip_runtime.hContains definitions of APIs for HIP runtime
| |o*hip_runtime_api.hContains C function APIs for HIP runtime. This file does not use any HCC builtin or special language extensions (-hc mode) ; those functions in hip_runtime.h
| |o*hip_texture.hHIP C++ Texture API for hcc compiler
| |o*hip_vector_types.hDefines the different newt vector types for HIP runtime
| |\*host_defines.hTODO-doc
| o*hcc.h
| o*hip_common.h
| o*hip_complex.h
| o*hip_fp16.h
| o*hip_profile.h
| o*hip_runtime.h
| o*hip_runtime_api.h
| o*hip_texture.h
| \*hip_vector_types.h
\-src
 o*device_util.h
 o*hip_hcc.cpp
 o*hip_hcc.h
 o*hip_util.h
 \*trace_helper.h
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/ftv2blank.png b/docs/RuntimeAPI/html/ftv2blank.png new file mode 100644 index 0000000000..63c605bb4c Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2blank.png differ diff --git a/docs/RuntimeAPI/html/ftv2cl.png b/docs/RuntimeAPI/html/ftv2cl.png new file mode 100644 index 0000000000..132f6577bf Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2cl.png differ diff --git a/docs/RuntimeAPI/html/ftv2doc.png b/docs/RuntimeAPI/html/ftv2doc.png new file mode 100644 index 0000000000..17edabff95 Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2doc.png differ diff --git a/docs/RuntimeAPI/html/ftv2folderclosed.png b/docs/RuntimeAPI/html/ftv2folderclosed.png new file mode 100644 index 0000000000..bb8ab35edc Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2folderclosed.png differ diff --git a/docs/RuntimeAPI/html/ftv2folderopen.png b/docs/RuntimeAPI/html/ftv2folderopen.png new file mode 100644 index 0000000000..d6c7f676a3 Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2folderopen.png differ diff --git a/docs/RuntimeAPI/html/ftv2lastnode.png b/docs/RuntimeAPI/html/ftv2lastnode.png new file mode 100644 index 0000000000..63c605bb4c Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2lastnode.png differ diff --git a/docs/RuntimeAPI/html/ftv2link.png b/docs/RuntimeAPI/html/ftv2link.png new file mode 100644 index 0000000000..17edabff95 Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2link.png differ diff --git a/docs/RuntimeAPI/html/ftv2mlastnode.png b/docs/RuntimeAPI/html/ftv2mlastnode.png new file mode 100644 index 0000000000..0b63f6d38c Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2mlastnode.png differ diff --git a/docs/RuntimeAPI/html/ftv2mnode.png b/docs/RuntimeAPI/html/ftv2mnode.png new file mode 100644 index 0000000000..0b63f6d38c Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2mnode.png differ diff --git a/docs/RuntimeAPI/html/ftv2mo.png b/docs/RuntimeAPI/html/ftv2mo.png new file mode 100644 index 0000000000..4bfb80f76e Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2mo.png differ diff --git a/docs/RuntimeAPI/html/ftv2node.png b/docs/RuntimeAPI/html/ftv2node.png new file mode 100644 index 0000000000..63c605bb4c Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2node.png differ diff --git a/docs/RuntimeAPI/html/ftv2ns.png b/docs/RuntimeAPI/html/ftv2ns.png new file mode 100644 index 0000000000..72e3d71c28 Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2ns.png differ diff --git a/docs/RuntimeAPI/html/ftv2plastnode.png b/docs/RuntimeAPI/html/ftv2plastnode.png new file mode 100644 index 0000000000..c6ee22f937 Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2plastnode.png differ diff --git a/docs/RuntimeAPI/html/ftv2pnode.png b/docs/RuntimeAPI/html/ftv2pnode.png new file mode 100644 index 0000000000..c6ee22f937 Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2pnode.png differ diff --git a/docs/RuntimeAPI/html/ftv2splitbar.png b/docs/RuntimeAPI/html/ftv2splitbar.png new file mode 100644 index 0000000000..fe895f2c58 Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2splitbar.png differ diff --git a/docs/RuntimeAPI/html/ftv2vertline.png b/docs/RuntimeAPI/html/ftv2vertline.png new file mode 100644 index 0000000000..63c605bb4c Binary files /dev/null and b/docs/RuntimeAPI/html/ftv2vertline.png differ diff --git a/docs/RuntimeAPI/html/functions.html b/docs/RuntimeAPI/html/functions.html new file mode 100644 index 0000000000..ca8882856d --- /dev/null +++ b/docs/RuntimeAPI/html/functions.html @@ -0,0 +1,332 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Class Members + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- _ -

+ + +

- a -

+ + +

- c -

+ + +

- h -

+ + +

- i -

+ + +

- l -

+ + +

- m -

+ + +

- n -

+ + +

- p -

+ + +

- r -

+ + +

- s -

+ + +

- t -

+ + +

- w -

+ + +

- x -

+ + +

- y -

+ + +

- z -

+
+ + + + diff --git a/docs/RuntimeAPI/html/functions_rela.html b/docs/RuntimeAPI/html/functions_rela.html new file mode 100644 index 0000000000..9ddcfb49b4 --- /dev/null +++ b/docs/RuntimeAPI/html/functions_rela.html @@ -0,0 +1,106 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Class Members - Related Functions + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+ + + + diff --git a/docs/RuntimeAPI/html/functions_vars.html b/docs/RuntimeAPI/html/functions_vars.html new file mode 100644 index 0000000000..4569adf399 --- /dev/null +++ b/docs/RuntimeAPI/html/functions_vars.html @@ -0,0 +1,329 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Class Members - Variables + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+  + +

- _ -

+ + +

- a -

+ + +

- c -

+ + +

- h -

+ + +

- i -

+ + +

- l -

+ + +

- m -

+ + +

- n -

+ + +

- p -

+ + +

- r -

+ + +

- s -

+ + +

- t -

+ + +

- w -

+ + +

- x -

+ + +

- y -

+ + +

- z -

+
+ + + + diff --git a/docs/RuntimeAPI/html/globals.html b/docs/RuntimeAPI/html/globals.html new file mode 100644 index 0000000000..1bdcacb7ee --- /dev/null +++ b/docs/RuntimeAPI/html/globals.html @@ -0,0 +1,567 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: File Members + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
Here is a list of all documented file members with links to the documentation:
+ +

- _ -

+ + +

- d -

+ + +

- h -

+
+ + + + diff --git a/docs/RuntimeAPI/html/globals_defs.html b/docs/RuntimeAPI/html/globals_defs.html new file mode 100644 index 0000000000..6f7178061f --- /dev/null +++ b/docs/RuntimeAPI/html/globals_defs.html @@ -0,0 +1,152 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: File Members + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+ + + + diff --git a/docs/RuntimeAPI/html/globals_enum.html b/docs/RuntimeAPI/html/globals_enum.html new file mode 100644 index 0000000000..f11ce794d3 --- /dev/null +++ b/docs/RuntimeAPI/html/globals_enum.html @@ -0,0 +1,119 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: File Members + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+ + + + diff --git a/docs/RuntimeAPI/html/globals_eval.html b/docs/RuntimeAPI/html/globals_eval.html new file mode 100644 index 0000000000..c2ff74f32f --- /dev/null +++ b/docs/RuntimeAPI/html/globals_eval.html @@ -0,0 +1,146 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: File Members + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+ + + + diff --git a/docs/RuntimeAPI/html/globals_func.html b/docs/RuntimeAPI/html/globals_func.html new file mode 100644 index 0000000000..f21de520bb --- /dev/null +++ b/docs/RuntimeAPI/html/globals_func.html @@ -0,0 +1,451 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: File Members + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+  + +

- _ -

+ + +

- h -

+
+ + + + diff --git a/docs/RuntimeAPI/html/globals_type.html b/docs/RuntimeAPI/html/globals_type.html new file mode 100644 index 0000000000..99b173c22b --- /dev/null +++ b/docs/RuntimeAPI/html/globals_type.html @@ -0,0 +1,119 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: File Members + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__API.html b/docs/RuntimeAPI/html/group__API.html new file mode 100644 index 0000000000..8a7c5d7c71 --- /dev/null +++ b/docs/RuntimeAPI/html/group__API.html @@ -0,0 +1,245 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: HIP API + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
HIP API
+
+
+ + + + + + + + + + + + + + + + + + + + + + +

+Modules

 Device Management
 
 Error Handling
 
 Stream Management
 
 Event Management
 
 Memory Management
 
 Device Memory Access
 
 Initialization and Version
 
 Control
 
 HCC-Specific Accessors
 
 Texture Reference Management
 
+ + + + + + + + + + +

+Functions

hipError_t hipIpcGetMemHandle (hipIpcMemHandle_t *handle, void *devPtr)
 Gets an interprocess memory handle for an existing device memory allocation. More...
 
hipError_t hipIpcOpenMemHandle (void **devPtr, hipIpcMemHandle_t handle, unsigned int flags)
 Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process. More...
 
hipError_t hipIpcCloseMemHandle (void *devPtr)
 Close memory mapped with hipIpcOpenMemHandle. More...
 
+

Detailed Description

+

Defines the HIP API. See the individual sections for more information.

+

Function Documentation

+ +
+
+ + + + + + + + +
hipError_t hipIpcCloseMemHandle (void * devPtr)
+
+ +

Close memory mapped with hipIpcOpenMemHandle.

+

Unmaps memory returnd by hipIpcOpenMemHandle. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected.

+

Any resources used to enable peer access will be freed if this is the last mapping using them.

+
Parameters
+ + +
devPtr- Device pointer returned by hipIpcOpenMemHandle
+
+
+
Returns
hipSuccess, hipErrorMapBufferObjectFailed, hipErrorInvalidResourceHandle,
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipIpcGetMemHandle (hipIpcMemHandle_thandle,
void * devPtr 
)
+
+ +

Gets an interprocess memory handle for an existing device memory allocation.

+

Takes a pointer to the base of an existing device memory allocation created with hipMalloc and exports it for use in another process. This is a lightweight operation and may be called multiple times on an allocation without adverse effects.

+

If a region of memory is freed with hipFree and a subsequent call to hipMalloc returns memory with the same device address, hipIpcGetMemHandle will return a unique handle for the new memory.

+
Parameters
+ + + +
handle- Pointer to user allocated hipIpcMemHandle to return the handle in.
devPtr- Base pointer to previously allocated device memory
+
+
+
Returns
hipSuccess, hipErrorInvalidResourceHandle, hipErrorMemoryAllocation, hipErrorMapBufferObjectFailed,
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipIpcOpenMemHandle (void ** devPtr,
hipIpcMemHandle_t handle,
unsigned int flags 
)
+
+ +

Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process.

+

Maps memory exported from another process with hipIpcGetMemHandle into the current device address space. For contexts on different devices hipIpcOpenMemHandle can attempt to enable peer access between the devices as if the user called hipDeviceEnablePeerAccess. This behavior is controlled by the hipIpcMemLazyEnablePeerAccess flag. hipDeviceCanAccessPeer can determine if a mapping is possible.

+

Contexts that may open hipIpcMemHandles are restricted in the following way. hipIpcMemHandles from each device in a given process may only be opened by one context per device per other process.

+

Memory returned from hipIpcOpenMemHandle must be freed with hipIpcCloseMemHandle.

+

Calling hipFree on an exported memory region before calling hipIpcCloseMemHandle in the importing context will result in undefined behavior.

+
Parameters
+ + + + +
devPtr- Returned device pointer
handle- hipIpcMemHandle to open
flags- Flags for this operation. Must be specified as hipIpcMemLazyEnablePeerAccess
+
+
+
Returns
hipSuccess, hipErrorMapBufferObjectFailed, hipErrorInvalidResourceHandle, hipErrorTooManyPeers
+
Note
No guarantees are made about the address returned in *devPtr. In particular, multiple processes may not receive the same address for the same handle.
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Context.html b/docs/RuntimeAPI/html/group__Context.html new file mode 100644 index 0000000000..7699238778 --- /dev/null +++ b/docs/RuntimeAPI/html/group__Context.html @@ -0,0 +1,607 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Management + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipCtxCreate (hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
 Create a context and set it as current/ default context. More...
 
hipError_t hipCtxDestroy (hipCtx_t ctx)
 Destroy a HIP context. More...
 
hipError_t hipCtxPopCurrent (hipCtx_t *ctx)
 Pop the current/default context and return the popped context. More...
 
hipError_t hipCtxPushCurrent (hipCtx_t ctx)
 Push the context to be set as current/ default context. More...
 
hipError_t hipCtxSetCurrent (hipCtx_t ctx)
 Set the passed context as current/default. More...
 
hipError_t hipCtxGetCurrent (hipCtx_t *ctx)
 Get the handle of the current/ default context. More...
 
hipError_t hipCtxGetDevice (hipDevice_t *device)
 Get the handle of the device associated with current/default context. More...
 
hipError_t hipCtxGetApiVersion (hipCtx_t ctx, int *apiVersion)
 Returns the approximate HIP api version. More...
 
hipError_t hipCtxGetCacheConfig (hipFuncCache_t *cacheConfig)
 Set Cache configuration for a specific function. More...
 
hipError_t hipCtxSetCacheConfig (hipFuncCache_t cacheConfig)
 Set L1/Shared cache partition. More...
 
hipError_t hipCtxSetSharedMemConfig (hipSharedMemConfig config)
 Set Shared memory bank configuration. More...
 
hipError_t hipCtxGetSharedMemConfig (hipSharedMemConfig *pConfig)
 Get Shared memory bank configuration. More...
 
hipError_t hipCtxSynchronize (void)
 Blocks until the default context has completed all preceding requested tasks. More...
 
hipError_t hipCtxGetFlags (unsigned int *flags)
 Return flags used for creating default context. More...
 
hipError_t hipCtxEnablePeerAccess (hipCtx_t peerCtx, unsigned int flags)
 Enables direct access to memory allocations in a peer context. More...
 
hipError_t hipCtxDisablePeerAccess (hipCtx_t peerCtx)
 Disable direct access from current context's virtual address space to memory allocations physically located on a peer context.Disables direct access to memory allocations in a peer context and unregisters any registered allocations. More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipCtxCreate (hipCtx_tctx,
unsigned int flags,
hipDevice_t device 
)
+
+ +

Create a context and set it as current/ default context.

+
Parameters
+ + + + +
[out]ctx
[in]flags
[in]associateddevice handle
+
+
+
Returns
hipSuccess
+
See Also
hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxDestroy (hipCtx_t ctx)
+
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxDisablePeerAccess (hipCtx_t peerCtx)
+
+ +

Disable direct access from current context's virtual address space to memory allocations physically located on a peer context.Disables direct access to memory allocations in a peer context and unregisters any registered allocations.

+

Returns hipErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been enabled from the current device.

+
Parameters
+ + +
[in]peerCtx
+
+
+
Returns
hipSuccess, hipErrorPeerAccessNotEnabled
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+
Warning
PeerToPeer support is experimental.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipCtxEnablePeerAccess (hipCtx_t peerCtx,
unsigned int flags 
)
+
+ +

Enables direct access to memory allocations in a peer context.

+

Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.

+
Parameters
+ + + +
[in]peerCtx
[in]flags
+
+
+
Returns
hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue, hipErrorPeerAccessAlreadyEnabled
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+
Warning
PeerToPeer support is experimental.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipCtxGetApiVersion (hipCtx_t ctx,
int * apiVersion 
)
+
+ +

Returns the approximate HIP api version.

+
Parameters
+ + + +
[in]ctxContext to check
[out]apiVersion
+
+
+
Returns
hipSuccess
+
Warning
The HIP feature set does not correspond to an exact CUDA SDK api revision. This function always set *apiVersion to 4 as an approximation though HIP supports some features which were introduced in later CUDA SDK revisions. HIP apps code should not rely on the api revision number here and should use arch feature flags to test device capabilities or conditional compilation.
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxGetCacheConfig (hipFuncCache_tcacheConfig)
+
+ +

Set Cache configuration for a specific function.

+
Parameters
+ + +
[out]cacheConfiguration
+
+
+
Returns
hipSuccess
+
Warning
AMD devices and recent Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxGetCurrent (hipCtx_tctx)
+
+ +

Get the handle of the current/ default context.

+
Parameters
+ + +
[out]ctx
+
+
+
Returns
hipSuccess, hipErrorInvalidContext
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetDevice, hipCtxGetFlags, hipCtxPopCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxGetDevice (hipDevice_tdevice)
+
+ +

Get the handle of the device associated with current/default context.

+
Parameters
+ + +
[out]device
+
+
+
Returns
hipSuccess, hipErrorInvalidContext
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxGetFlags (unsigned int * flags)
+
+ +

Return flags used for creating default context.

+
Parameters
+ + +
[out]flags
+
+
+
Returns
hipSuccess
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxGetSharedMemConfig (hipSharedMemConfigpConfig)
+
+ +

Get Shared memory bank configuration.

+
Parameters
+ + +
[out]sharedMemoryConfiguration
+
+
+
Returns
hipSuccess
+
Warning
AMD devices and recent Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxPopCurrent (hipCtx_tctx)
+
+ +

Pop the current/default context and return the popped context.

+
Parameters
+ + +
[out]ctx
+
+
+
Returns
hipSuccess, hipErrorInvalidContext
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxSetCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxPushCurrent (hipCtx_t ctx)
+
+ +

Push the context to be set as current/ default context.

+
Parameters
+ + +
[in]ctx
+
+
+
Returns
hipSuccess, hipErrorInvalidContext
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxSetCacheConfig (hipFuncCache_t cacheConfig)
+
+ +

Set L1/Shared cache partition.

+
Parameters
+ + +
[in]cacheConfiguration
+
+
+
Returns
hipSuccess
+
Warning
AMD devices and recent Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxSetCurrent (hipCtx_t ctx)
+
+ +

Set the passed context as current/default.

+
Parameters
+ + +
[in]ctx
+
+
+
Returns
hipSuccess, hipErrorInvalidContext
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize , hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxSetSharedMemConfig (hipSharedMemConfig config)
+
+ +

Set Shared memory bank configuration.

+
Parameters
+ + +
[in]sharedMemoryConfiguration
+
+
+
Returns
hipSuccess
+
Warning
AMD devices and recent Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipCtxSynchronize (void )
+
+ +

Blocks until the default context has completed all preceding requested tasks.

+
Returns
hipSuccess
+
Warning
This function waits for all streams on the default context to complete execution, and then returns.
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxGetDevice
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Device.html b/docs/RuntimeAPI/html/group__Device.html new file mode 100644 index 0000000000..e1dddbbed7 --- /dev/null +++ b/docs/RuntimeAPI/html/group__Device.html @@ -0,0 +1,584 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Device Management + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Device Management
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipDeviceSynchronize (void)
 Waits on all active streams on current device. More...
 
hipError_t hipDeviceReset (void)
 The state of current device is discarded and updated to a fresh state. More...
 
hipError_t hipSetDevice (int deviceId)
 Set default device to be used for subsequent hip API calls from this thread. More...
 
hipError_t hipGetDevice (int *deviceId)
 Return the default device id for the calling host thread. More...
 
hipError_t hipGetDeviceCount (int *count)
 Return number of compute-capable devices. More...
 
hipError_t hipDeviceGetAttribute (int *pi, hipDeviceAttribute_t attr, int deviceId)
 Query for a specific device attribute. More...
 
hipError_t hipGetDeviceProperties (hipDeviceProp_t *prop, int deviceId)
 Returns device properties. More...
 
hipError_t hipDeviceSetCacheConfig (hipFuncCache_t cacheConfig)
 Set L1/Shared cache partition. More...
 
hipError_t hipDeviceGetCacheConfig (hipFuncCache_t *cacheConfig)
 Set Cache configuration for a specific function. More...
 
hipError_t hipDeviceGetLimit (size_t *pValue, hipLimit_t limit)
 Get Resource limits of current device. More...
 
hipError_t hipFuncSetCacheConfig (hipFuncCache_t config)
 Set Cache configuration for a specific function. More...
 
hipError_t hipDeviceGetSharedMemConfig (hipSharedMemConfig *pConfig)
 Returns bank width of shared memory for current device. More...
 
hipError_t hipDeviceSetSharedMemConfig (hipSharedMemConfig config)
 The bank width of shared memory on current device is set. More...
 
hipError_t hipSetDeviceFlags (unsigned flags)
 The current device behavior is changed according the flags passed. More...
 
hipError_t hipChooseDevice (int *device, const hipDeviceProp_t *prop)
 Device which matches hipDeviceProp_t is returned. More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipChooseDevice (int * device,
const hipDeviceProp_tprop 
)
+
+ +

Device which matches hipDeviceProp_t is returned.

+
Parameters
+ + + +
[out]deviceID
[in]deviceproperties pointer
+
+
+
Returns
hipSuccess, hipErrorInvalidValue
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceGetAttribute (int * pi,
hipDeviceAttribute_t attr,
int deviceId 
)
+
+ +

Query for a specific device attribute.

+
Parameters
+ + + + +
[out]pipointer to value to return
[in]attrattribute to query
[in]deviceIdwhich device to query for information
+
+
+
Returns
hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipDeviceGetCacheConfig (hipFuncCache_tcacheConfig)
+
+ +

Set Cache configuration for a specific function.

+
Parameters
+ + +
[in]cacheConfig
+
+
+
Returns
hipSuccess, hipErrorInitializationError Note: AMD devices and recent Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceGetLimit (size_t * pValue,
hipLimit_t limit 
)
+
+ +

Get Resource limits of current device.

+
Parameters
+ + + +
[out]pValue
[in]limit
+
+
+
Returns
hipSuccess, #hipErrorUnsupportedLimit, hipErrorInvalidValue Note: Currently, only hipLimitMallocHeapSize is available
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipDeviceGetSharedMemConfig (hipSharedMemConfigpConfig)
+
+ +

Returns bank width of shared memory for current device.

+
Parameters
+ + +
[out]pConfig
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInitializationError
+

Note: AMD devices and recent Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.

+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipDeviceReset (void )
+
+ +

The state of current device is discarded and updated to a fresh state.

+

Calling this function deletes all streams created, memory allocated, kernels running, events created. Make sure that no other thread is using the device or streams, memory, kernels, events associated with the current device.

+
Returns
hipSuccess
+
See Also
hipDeviceSynchronize
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipDeviceSetCacheConfig (hipFuncCache_t cacheConfig)
+
+ +

Set L1/Shared cache partition.

+
Parameters
+ + +
[in]cacheConfig
+
+
+
Returns
hipSuccess, hipErrorInitializationError Note: AMD devices and recent Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipDeviceSetSharedMemConfig (hipSharedMemConfig config)
+
+ +

The bank width of shared memory on current device is set.

+
Parameters
+ + +
[in]config
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInitializationError
+

Note: AMD devices and recent Nvidia GPUS do not support shared cache banking, and the hint is ignored on those architectures.

+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipDeviceSynchronize (void )
+
+ +

Waits on all active streams on current device.

+

When this command is invoked, the host thread gets blocked until all the commands associated with streams associated with the device. HIP does not support multiple blocking modes (yet!).

+
Returns
hipSuccess
+
See Also
hipSetDevice, hipDeviceReset
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipFuncSetCacheConfig (hipFuncCache_t config)
+
+ +

Set Cache configuration for a specific function.

+
Parameters
+ + +
[in]config;
+
+
+
Returns
hipSuccess, hipErrorInitializationError Note: AMD devices and recent Nvidia GPUS do not support reconfigurable cache. This hint is ignored on those architectures.
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipGetDevice (int * deviceId)
+
+ +

Return the default device id for the calling host thread.

+
Parameters
+ + +
[out]device*device is written with the default device
+
+
+

HIP maintains an default device for each thread using thread-local-storage. This device is used implicitly for HIP runtime APIs called by this thread. hipGetDevice returns in * device the default device for the calling host thread.

+
Returns
hipSuccess
+
See Also
hipSetDevice, hipGetDevicesizeBytes
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipGetDeviceCount (int * count)
+
+ +

Return number of compute-capable devices.

+
Parameters
+ + +
[output]count Returns number of compute-capable devices.
+
+
+
Returns
hipSuccess, hipErrorNoDevice
+

Returns in *count the number of devices that have ability to run compute commands. If there are no such devices, then hipGetDeviceCount will return hipErrorNoDevice. If 1 or more devices can be found, then hipGetDeviceCount returns hipSuccess.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipGetDeviceProperties (hipDeviceProp_tprop,
int deviceId 
)
+
+ +

Returns device properties.

+
Parameters
+ + + +
[out]propwritten with device properties
[in]deviceIdwhich device to query for information
+
+
+
Returns
hipSuccess, hipErrorInvalidDevice
+
Bug:

HCC always returns 0 for maxThreadsPerMultiProcessor

+

HCC always returns 0 for regsPerBlock

+

HCC always returns 0 for l2CacheSize

+
+

Populates hipGetDeviceProperties with information for the specified device.

+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipSetDevice (int deviceId)
+
+ +

Set default device to be used for subsequent hip API calls from this thread.

+
Parameters
+ + +
[in]deviceIdValid device in range 0...hipGetDeviceCount().
+
+
+

Sets device as the default device for the calling host thread. Valid device id's are 0... (hipGetDeviceCount()-1).

+

Many HIP APIs implicitly use the "default device" :

+
    +
  • Any device memory subsequently allocated from this host thread (using hipMalloc) will be allocated on device.
  • +
  • Any streams or events created from this host thread will be associated with device.
  • +
  • Any kernels launched from this host thread (using hipLaunchKernel) will be executed on device (unless a specific stream is specified, in which case the device associated with that stream will be used).
  • +
+

This function may be called from any host thread. Multiple host threads may use the same device. This function does no synchronization with the previous or new device, and has very little runtime overhead. Applications can use hipSetDevice to quickly switch the default device before making a HIP runtime call which uses the default device.

+

The default device is stored in thread-local-storage for each thread. Thread-pool implementations may inherit the default device of the previous thread. A good practice is to always call hipSetDevice at the start of HIP coding sequency to establish a known standard device.

+
Returns
hipSuccess, hipErrorInvalidDevice, #hipErrorDeviceAlreadyInUse
+
See Also
hipGetDevice, hipGetDeviceCount
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipSetDeviceFlags (unsigned flags)
+
+ +

The current device behavior is changed according the flags passed.

+
Parameters
+ + +
[in]flagsThe schedule flags impact how HIP waits for the completion of a command running on a device. hipDeviceScheduleSpin : HIP runtime will actively spin in the thread which submitted the work until the command completes. This offers the lowest latency, but will consume a CPU core and may increase power. hipDeviceScheduleYield : The HIP runtime will yield the CPU to system so that other tasks can use it. This may increase latency to detect the completion but will consume less power and is friendlier to other tasks in the system. hipDeviceScheduleBlockingSync : On ROCm platform, this is a synonym for hipDeviceScheduleYield. hipDeviceScheduleAuto : Use a hueristic to select between Spin and Yield modes. If the number of HIP contexts is greater than the number of logical processors in the system, use Spin scheduling. Else use Yield scheduling.
+
+
+

hipDeviceMapHost : Allow mapping host memory. On ROCM, this is always allowed and the flag is ignored. hipDeviceLmemResizeToMax :

+
Warning
ROCm silently ignores this flag.
+
Returns
hipSuccess, hipErrorInvalidDevice, #hipErrorSetOnActiveProcess
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Driver.html b/docs/RuntimeAPI/html/group__Driver.html new file mode 100644 index 0000000000..c045006c7e --- /dev/null +++ b/docs/RuntimeAPI/html/group__Driver.html @@ -0,0 +1,750 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Initialization and Version + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Initialization and Version
+
+
+ + + + +

+Modules

 Management
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipInit (unsigned int flags)
 Explicitly initializes the HIP runtime. More...
 
hipError_t hipDeviceGet (hipDevice_t *device, int ordinal)
 Returns a handle to a compute device. More...
 
hipError_t hipDeviceComputeCapability (int *major, int *minor, hipDevice_t device)
 Returns the compute capability of the device. More...
 
hipError_t hipDeviceGetName (char *name, int len, hipDevice_t device)
 Returns an identifer string for the device. More...
 
hipError_t hipDeviceGetPCIBusId (char *pciBusId, int len, int device)
 Returns a PCI Bus Id string for the device, overloaded to take int device ID. More...
 
hipError_t hipDeviceGetByPCIBusId (int *device, const int *pciBusId)
 Returns a handle to a compute device. More...
 
hipError_t hipDeviceTotalMem (size_t *bytes, hipDevice_t device)
 Returns the total amount of memory on the device. More...
 
hipError_t hipDriverGetVersion (int *driverVersion)
 Returns the approximate HIP driver version. More...
 
hipError_t hipRuntimeGetVersion (int *runtimeVersion)
 Returns the approximate HIP Runtime version. More...
 
hipError_t hipModuleLoad (hipModule_t *module, const char *fname)
 Loads code object from file into a hipModule_t. More...
 
hipError_t hipModuleUnload (hipModule_t module)
 Frees the module. More...
 
hipError_t hipModuleGetFunction (hipFunction_t *function, hipModule_t module, const char *kname)
 Function with kname will be extracted if present in module. More...
 
hipError_t hipModuleGetGlobal (hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name)
 returns device memory pointer and size of the kernel present in the module with symbol name More...
 
hipError_t hipModuleLoadData (hipModule_t *module, const void *image)
 builds module from code object which resides in host memory. Image is pointer to that location. More...
 
hipError_t hipModuleLaunchKernel (hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void **kernelParams, void **extra)
 launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceComputeCapability (int * major,
int * minor,
hipDevice_t device 
)
+
+ +

Returns the compute capability of the device.

+
Parameters
+ + + + +
[out]major
[out]minor
[in]device
+
+
+
Returns
hipSuccess, #hipErrorInavlidDevice
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceGet (hipDevice_tdevice,
int ordinal 
)
+
+ +

Returns a handle to a compute device.

+
Parameters
+ + + +
[out]device
[in]ordinal
+
+
+
Returns
hipSuccess, #hipErrorInavlidDevice
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceGetByPCIBusId (int * device,
const int * pciBusId 
)
+
+ +

Returns a handle to a compute device.

+
Parameters
+ + + +
[out]devicehandle
[in]PCIBus ID
+
+
+
Returns
hipSuccess, #hipErrorInavlidDevice, hipErrorInvalidValue
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceGetName (char * name,
int len,
hipDevice_t device 
)
+
+ +

Returns an identifer string for the device.

+
Parameters
+ + + + +
[out]name
[in]len
[in]device
+
+
+
Returns
hipSuccess, #hipErrorInavlidDevice
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceGetPCIBusId (char * pciBusId,
int len,
int device 
)
+
+ +

Returns a PCI Bus Id string for the device, overloaded to take int device ID.

+
Parameters
+ + + + +
[out]pciBusId
[in]len
[in]device
+
+
+
Returns
hipSuccess, #hipErrorInavlidDevice
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceTotalMem (size_t * bytes,
hipDevice_t device 
)
+
+ +

Returns the total amount of memory on the device.

+
Parameters
+ + + +
[out]bytes
[in]device
+
+
+
Returns
hipSuccess, #hipErrorInavlidDevice
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipDriverGetVersion (int * driverVersion)
+
+ +

Returns the approximate HIP driver version.

+
Parameters
+ + +
[out]driverVersion
+
+
+
Returns
hipSuccess, #hipErrorInavlidValue
+
Warning
The HIP feature set does not correspond to an exact CUDA SDK driver revision. This function always set *driverVersion to 4 as an approximation though HIP supports some features which were introduced in later CUDA SDK revisions. HIP apps code should not rely on the driver revision number here and should use arch feature flags to test device capabilities or conditional compilation.
+
See Also
hipRuntimeGetVersion
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipInit (unsigned int flags)
+
+ +

Explicitly initializes the HIP runtime.

+

Most HIP APIs implicitly initialize the HIP runtime. This API provides control over the timing of the initialization.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipModuleGetFunction (hipFunction_tfunction,
hipModule_t module,
const char * kname 
)
+
+ +

Function with kname will be extracted if present in module.

+
Parameters
+ + + + +
[in]module
[in]kname
[out]function
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInvalidContext, hipErrorNotInitialized, hipErrorNotFound,
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipModuleGetGlobal (hipDeviceptr_t * dptr,
size_t * bytes,
hipModule_t hmod,
const char * name 
)
+
+ +

returns device memory pointer and size of the kernel present in the module with symbol name

+
Parameters
+ + + + + +
[out]dptr
[out[bytes
[in]hmod
[in]name
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorNotInitialized
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipModuleLaunchKernel (hipFunction_t f,
unsigned int gridDimX,
unsigned int gridDimY,
unsigned int gridDimZ,
unsigned int blockDimX,
unsigned int blockDimY,
unsigned int blockDimZ,
unsigned int sharedMemBytes,
hipStream_t stream,
void ** kernelParams,
void ** extra 
)
+
+ +

launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra

+
Parameters
+ + + + + + + + + + + + +
[in[f
[in]gridDimX
[in]gridDimY
[in]gridDimZ
[in]blockDimX
[in]blockDimY
[in]blockDimZ
[in]sharedMemBytes
[in]stream
[in]kernelParams
[in]extraaThe function takes the above arguments and run the kernel in hipFunction_t f. with launch parameters specified in gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY and blockDimmZ. The amount of shared memory is specificed and can be used with HIP_DYNAMIC_SHARED. The arguemt extra is used to pass in the arguments for the kernel.
+
+
+
Returns
hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue
+
Warning
kernellParams argument is not yet implemented in HIP. Please use extra instead. Please refer to hip_porting_driver_api.md for sample usage.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipModuleLoad (hipModule_tmodule,
const char * fname 
)
+
+ +

Loads code object from file into a hipModule_t.

+
Parameters
+ + + +
[in]fname
[out]module
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInvalidContext, hipErrorFileNotFound, hipErrorOutOfMemory, hipErrorSharedObjectInitFailed, hipErrorNotInitialized
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipModuleLoadData (hipModule_tmodule,
const void * image 
)
+
+ +

builds module from code object which resides in host memory. Image is pointer to that location.

+
Parameters
+ + + +
[in]image
[out]module
+
+
+
Returns
hipSuccess, hipErrorNotInitialized, hipErrorOutOfMemory, hipErrorNotInitialized
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipModuleUnload (hipModule_t module)
+
+ +

Frees the module.

+
Parameters
+ + +
[in]module
+
+
+
Returns
hipSuccess, hipInvalidValue module is freed and the code objects associated with it are destroyed
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipRuntimeGetVersion (int * runtimeVersion)
+
+ +

Returns the approximate HIP Runtime version.

+
Parameters
+ + +
[out]runtimeVersion
+
+
+
Returns
hipSuccess, #hipErrorInavlidValue
+
Warning
On HIP/HCC path this function returns HIP runtime patch version however on HIP/NVCC path this function return CUDA runtime version.
+
See Also
hipDriverGetVersion
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Error.html b/docs/RuntimeAPI/html/group__Error.html new file mode 100644 index 0000000000..03d5f89643 --- /dev/null +++ b/docs/RuntimeAPI/html/group__Error.html @@ -0,0 +1,206 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Error Handling + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Error Handling
+
+
+ + + + + + + + + + + + + + +

+Functions

hipError_t hipGetLastError (void)
 Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess. More...
 
hipError_t hipPeekAtLastError (void)
 Return last error returned by any HIP runtime API call. More...
 
const char * hipGetErrorName (hipError_t hip_error)
 Return name of the specified error code in text form. More...
 
const char * hipGetErrorString (hipError_t hipError)
 Return handy text string message to explain the error which occurred. More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+

Function Documentation

+ +
+
+ + + + + + + + +
const char* hipGetErrorName (hipError_t hip_error)
+
+ +

Return name of the specified error code in text form.

+
Parameters
+ + +
hip_errorError code to convert to name.
+
+
+
Returns
const char pointer to the NULL-terminated error name
+
See Also
hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t
+ +
+
+ +
+
+ + + + + + + + +
const char* hipGetErrorString (hipError_t hipError)
+
+ +

Return handy text string message to explain the error which occurred.

+
Parameters
+ + +
hipErrorError code to convert to string.
+
+
+
Returns
const char pointer to the NULL-terminated error string
+
Warning
: on HCC, this function returns the name of the error (same as hipGetErrorName)
+
See Also
hipGetErrorName, hipGetLastError, hipPeakAtLastError, hipError_t
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipGetLastError (void )
+
+ +

Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess.

+
Returns
return code from last HIP called from the active host thread
+

Returns the last error that has been returned by any of the runtime calls in the same host thread, and then resets the saved error to hipSuccess.

+
See Also
hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipPeekAtLastError (void )
+
+ +

Return last error returned by any HIP runtime API call.

+
Returns
hipSuccess
+

Returns the last error that has been returned by any of the runtime calls in the same host thread. Unlike hipGetLastError, this function does not reset the saved error code.

+
See Also
hipGetErrorString, hipGetLastError, hipPeakAtLastError, hipError_t
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Event.html b/docs/RuntimeAPI/html/group__Event.html new file mode 100644 index 0000000000..73095e0234 --- /dev/null +++ b/docs/RuntimeAPI/html/group__Event.html @@ -0,0 +1,356 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Event Management + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Event Management
+
+
+ + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipEventCreateWithFlags (hipEvent_t *event, unsigned flags)
 Create an event with the specified flags. More...
 
hipError_t hipEventCreate (hipEvent_t *event)
 
hipError_t hipEventRecord (hipEvent_t event, hipStream_t stream)
 Record an event in the specified stream. More...
 
hipError_t hipEventDestroy (hipEvent_t event)
 Destroy the specified event. More...
 
hipError_t hipEventSynchronize (hipEvent_t event)
 Wait for an event to complete. More...
 
hipError_t hipEventElapsedTime (float *ms, hipEvent_t start, hipEvent_t stop)
 Return the elapsed time between two events. More...
 
hipError_t hipEventQuery (hipEvent_t event)
 Query event status. More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+

Function Documentation

+ +
+
+ + + + + + + + +
hipError_t hipEventCreate (hipEvent_tevent)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipEventCreateWithFlags (hipEvent_tevent,
unsigned flags 
)
+
+ +

Create an event with the specified flags.

+
Parameters
+ + + +
[in,out]eventReturns the newly created event.
[in]flagsFlags to control event behavior. Valid values are hipEventDefault, hipEventBlockingSync, hipEventDisableTiming, hipEventInterprocess
+
+
+

hipEventDefault : Default flag. The event will use active synchronization and will support timing. Blocking synchronization provides lowest possible latency at the expense of dedicating a CPU to poll on the eevent. hipEventBlockingSync : The event will use blocking synchronization : if hipEventSynchronize is called on this event, the thread will block until the event completes. This can increase latency for the synchroniation but can result in lower power and more resources for other CPU threads. hipEventDisableTiming : Disable recording of timing information. On ROCM platform, timing information is always recorded and this flag has no performance benefit.

+
Warning
On HCC platform, hipEventInterprocess support is under development. Use of this flag will return an error.
+
Returns
hipSuccess, hipErrorInitializationError, hipErrorInvalidValue, hipErrorLaunchFailure, hipErrorMemoryAllocation
+
See Also
hipEventCreate, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipEventDestroy (hipEvent_t event)
+
+ +

Destroy the specified event.

+
Parameters
+ + +
[in]eventEvent to destroy.
+
+
+
Returns
hipSuccess, hipErrorInitializationError, hipErrorInvalidValue, hipErrorLaunchFailure
+

Releases memory associated with the event. If the event is recording but has not completed recording when hipEventDestroy() is called, the function will return immediately and the completion_future resources will be released later, when the hipDevice is synchronized.

+
See Also
hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventRecord, hipEventElapsedTime
+
Returns
hipSuccess
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipEventElapsedTime (float * ms,
hipEvent_t start,
hipEvent_t stop 
)
+
+ +

Return the elapsed time between two events.

+
Parameters
+ + + + +
[out]ms: Return time between start and stop in ms.
[in]start: Start event.
[in]stop: Stop event.
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorNotReady, hipErrorInvalidResourceHandle, hipErrorInitializationError, hipErrorLaunchFailure
+

Computes the elapsed time between two events. Time is computed in ms, with a resolution of approximately 1 us.

+

Events which are recorded in a NULL stream will block until all commands on all other streams complete execution, and then record the timestamp.

+

Events which are recorded in a non-NULL stream will record their timestamp when they reach the head of the specified stream, after all previous commands in that stream have completed executing. Thus the time that the event recorded may be significantly after the host calls hipEventRecord().

+

If hipEventRecord() has not been called on either event, then hipErrorInvalidResourceHandle is returned. If hipEventRecord() has been called on both events, but the timestamp has not yet been recorded on one or both events (that is, hipEventQuery() would return hipErrorNotReady on at least one of the events), then hipErrorNotReady is returned.

+
See Also
hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventSynchronize
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipEventQuery (hipEvent_t event)
+
+ +

Query event status.

+
Parameters
+ + +
[in]eventEvent to query.
+
+
+
Returns
hipSuccess, hipErrorNotReady, hipErrorInvalidResourceHandle, hipErrorInvalidValue, hipErrorInitializationError, hipErrorLaunchFailure
+

Query the status of the specified event. This function will return hipErrorNotReady if all commands in the appropriate stream (specified to hipEventRecord()) have completed. If that work has not completed, or if hipEventRecord() was not called on the event, then hipSuccess is returned.

+
See Also
hipEventCreate, hipEventCreateWithFlags, hipEventRecord, hipEventDestroy, hipEventSynchronize, hipEventElapsedTime
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipEventRecord (hipEvent_t event,
hipStream_t stream 
)
+
+ +

Record an event in the specified stream.

+
Parameters
+ + + +
[in]eventevent to record.
[in]streamstream in which to record event.
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInitializationError, hipErrorInvalidResourceHandle, hipErrorLaunchFailure
+

hipEventQuery() or hipEventSynchronize() must be used to determine when the event transitions from "recording" (after hipEventRecord() is called) to "recorded" (when timestamps are set, if requested).

+

Events which are recorded in a non-NULL stream will transition to from recording to "recorded" state when they reach the head of the specified stream, after all previous commands in that stream have completed executing.

+

If hipEventRecord() has been previously called aon event, then this call will overwrite any existing state in event.

+

If this function is called on a an event that is currently being recorded, results are undefined - either outstanding recording may save state into the event, and the order is not guaranteed. This shoul be avoided.

+
See Also
hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipEventSynchronize (hipEvent_t event)
+
+ +

Wait for an event to complete.

+

This function will block until the event is ready, waiting for all previous work in the stream specified when event was recorded with hipEventRecord().

+

If hipEventRecord() has not been called on event, this function returns immediately.

+

TODO-hcc - This function needs to support hipEventBlockingSync parameter.

+
Parameters
+ + +
[in]eventEvent on which to wait.
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInitializationError, hipErrorInvalidResourceHandle, hipErrorLaunchFailure
+
See Also
hipEventCreate, hipEventCreateWithFlags, hipEventQuery, hipEventDestroy, hipEventRecord, hipEventElapsedTime
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Fence.html b/docs/RuntimeAPI/html/group__Fence.html new file mode 100644 index 0000000000..bb73801cca --- /dev/null +++ b/docs/RuntimeAPI/html/group__Fence.html @@ -0,0 +1,211 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Fence Functions + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Fence Functions
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

__device__ void __threadfence_block (void)
 threadfence_block makes writes visible to threads running in same block. More...
 
__device__ void __threadfence (void)
 threadfence makes wirtes visible to other threads running on same GPU. More...
 
__device__ void __threadfence_system (void)
 threadfence_system makes writes to pinned system memory visible on host CPU. More...
 
+__device__ unsigned __hip_ds_bpermute (int index, unsigned src)
 
+__device__ float __hip_ds_bpermutef (int index, float src)
 
+__device__ unsigned __hip_ds_permute (int index, unsigned src)
 
+__device__ float __hip_ds_permutef (int index, float src)
 
+__device__ unsigned __hip_ds_swizzle (unsigned int src, int pattern)
 
+__device__ float __hip_ds_swizzlef (float src, int pattern)
 
+__device__ int __hip_move_dpp (int src, int dpp_ctrl, int row_mask, int bank_mask, bool bound_ctrl)
 
+

Detailed Description

+

CUDA 8 device function features

+

Kernel launching

+
+
Warning
The HIP memory fence functions are currently not supported yet. If any of those threadfence stubs are reached by the application, you should set "export HSA_DISABLE_CACHE=1" to disable L1 and L2 caches.
+

On AMD platforms, the threadfence* routines are currently empty stubs.

+

Function Documentation

+ +
+
+ + + + + + + + +
__device__ void __threadfence (void )
+
+ +

threadfence makes wirtes visible to other threads running on same GPU.

+

void

+
Parameters
+ + +
void
+
+
+
Warning
__threadfence is a stub and map to no-op, application should set "export HSA_DISABLE_CACHE=1" to disable both L1 and L2 caches.
+ +
+
+ +
+
+ + + + + + + + +
__device__ void __threadfence_block (void )
+
+ +

threadfence_block makes writes visible to threads running in same block.

+

void

+
Parameters
+ + +
void
+
+
+
Warning
__threadfence_block is a stub and map to no-op.
+ +
+
+ +
+
+ + + + + + + + +
__device__ void __threadfence_system (void )
+
+ +

threadfence_system makes writes to pinned system memory visible on host CPU.

+

void

+
Parameters
+ + +
void
+
+
+
Warning
__threadfence_system is a stub and map to no-op.
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__GlobalDefs.html b/docs/RuntimeAPI/html/group__GlobalDefs.html new file mode 100644 index 0000000000..4182019c94 --- /dev/null +++ b/docs/RuntimeAPI/html/group__GlobalDefs.html @@ -0,0 +1,700 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Global enum and defines + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Global enum and defines
+
+
+ + + + +

+Classes

struct  dim3
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

#define hipStreamDefault   0x00
 Flags that can be used with hipStreamCreateWithFlags. More...
 
+#define hipStreamNonBlocking   0x01
 Stream does not implicitly synchronize with null stream.
 
#define hipEventDefault   0x0
 Flags that can be used with hipEventCreateWithFlags: More...
 
+#define hipEventBlockingSync   0x1
 Waiting will yield CPU. Power-friendly and usage-friendly but may increase latency.
 
+#define hipEventDisableTiming   0x2
 Disable event's capability to record timing information. May improve performance.
 
#define hipEventInterprocess   0x4
 Event can support IPC. More...
 
+#define hipHostMallocDefault   0x0
 Flags that can be used with hipHostMalloc.
 
+#define hipHostMallocPortable   0x1
 
+#define hipHostMallocMapped   0x2
 
+#define hipHostMallocWriteCombined   0x4
 
#define hipHostRegisterDefault   0x0
 Flags that can be used with hipHostRegister. More...
 
+#define hipHostRegisterPortable   0x1
 Memory is considered registered by all contexts. HIP only supports one context so this is always assumed true.
 
+#define hipHostRegisterMapped   0x2
 Map the allocation into the address space for the current device. The device pointer can be obtained with hipHostGetDevicePointer.
 
+#define hipHostRegisterIoMemory   0x4
 Not supported.
 
+#define hipDeviceScheduleAuto   0x0
 Automatically select between Spin and Yield.
 
+#define hipDeviceScheduleSpin   0x1
 Dedicate a CPU core to spin-wait. Provides lowest latency, but burns a CPU core and may consume more power.
 
+#define hipDeviceScheduleYield   0x2
 Yield the CPU to the operating system when waiting. May increase latency, but lowers power and is friendlier to other threads in the system.
 
+#define hipDeviceScheduleBlockingSync   0x4
 
+#define hipDeviceScheduleMask   0x7
 
+#define hipDeviceMapHost   0x8
 
+#define hipDeviceLmemResizeToMax   0x16
 
+ + + + + + + + + + + + + +

+Typedefs

+typedef enum hipError_t hipError_t
 
+typedef enum hipDeviceAttribute_t hipDeviceAttribute_t
 
typedef enum hipFuncCache_t hipFuncCache_t
 
typedef enum hipSharedMemConfig hipSharedMemConfig
 
typedef struct dim3 dim3
 
typedef enum hipMemcpyKind hipMemcpyKind
 
+ + + + + + + + + + + +

+Enumerations

enum  hipError_t {
+  hipSuccess = 0, +hipErrorOutOfMemory = 2, +hipErrorNotInitialized = 3, +hipErrorDeinitialized = 4, +
+  hipErrorProfilerDisabled = 5, +hipErrorProfilerNotInitialized = 6, +hipErrorProfilerAlreadyStarted = 7, +hipErrorProfilerAlreadyStopped = 8, +
+  hipErrorInvalidImage = 200, +hipErrorInvalidContext = 201, +hipErrorContextAlreadyCurrent = 202, +hipErrorMapFailed = 205, +
+  hipErrorUnmapFailed = 206, +hipErrorArrayIsMapped = 207, +hipErrorAlreadyMapped = 208, +hipErrorNoBinaryForGpu = 209, +
+  hipErrorAlreadyAcquired = 210, +hipErrorNotMapped = 211, +hipErrorNotMappedAsArray = 212, +hipErrorNotMappedAsPointer = 213, +
+  hipErrorECCNotCorrectable = 214, +hipErrorUnsupportedLimit = 215, +hipErrorContextAlreadyInUse = 216, +hipErrorPeerAccessUnsupported = 217, +
+  hipErrorInvalidKernelFile = 218, +hipErrorInvalidGraphicsContext = 219, +hipErrorInvalidSource = 300, +hipErrorFileNotFound = 301, +
+  hipErrorSharedObjectSymbolNotFound = 302, +hipErrorSharedObjectInitFailed = 303, +hipErrorOperatingSystem = 304, +hipErrorInvalidHandle = 400, +
+  hipErrorNotFound = 500, +hipErrorIllegalAddress = 700, +hipErrorInvalidSymbol = 701, +hipErrorMissingConfiguration = 1001, +
+  hipErrorMemoryAllocation = 1002, +hipErrorInitializationError = 1003, +hipErrorLaunchFailure = 1004, +hipErrorPriorLaunchFailure = 1005, +
+  hipErrorLaunchTimeOut = 1006, +hipErrorLaunchOutOfResources = 1007, +hipErrorInvalidDeviceFunction = 1008, +hipErrorInvalidConfiguration = 1009, +
+  hipErrorInvalidDevice = 1010, +hipErrorInvalidValue = 1011, +hipErrorInvalidDevicePointer = 1017, +hipErrorInvalidMemcpyDirection = 1021, +
+  hipErrorUnknown = 1030, +hipErrorInvalidResourceHandle = 1033, +hipErrorNotReady = 1034, +hipErrorNoDevice = 1038, +
+  hipErrorPeerAccessAlreadyEnabled = 1050, +hipErrorPeerAccessNotEnabled = 1051, +hipErrorRuntimeMemory = 1052, +hipErrorRuntimeOther = 1053, +
+  hipErrorHostMemoryAlreadyRegistered = 1061, +hipErrorHostMemoryNotRegistered = 1062, +hipErrorMapBufferObjectFailed = 1071, +hipErrorTbd +
+ }
 
enum  hipDeviceAttribute_t {
+  hipDeviceAttributeMaxThreadsPerBlock, +hipDeviceAttributeMaxBlockDimX, +hipDeviceAttributeMaxBlockDimY, +hipDeviceAttributeMaxBlockDimZ, +
+  hipDeviceAttributeMaxGridDimX, +hipDeviceAttributeMaxGridDimY, +hipDeviceAttributeMaxGridDimZ, +hipDeviceAttributeMaxSharedMemoryPerBlock, +
+  hipDeviceAttributeTotalConstantMemory, +hipDeviceAttributeWarpSize, +hipDeviceAttributeMaxRegistersPerBlock, +hipDeviceAttributeClockRate, +
+  hipDeviceAttributeMemoryClockRate, +hipDeviceAttributeMemoryBusWidth, +hipDeviceAttributeMultiprocessorCount, +hipDeviceAttributeComputeMode, +
+  hipDeviceAttributeL2CacheSize, +hipDeviceAttributeMaxThreadsPerMultiProcessor, +hipDeviceAttributeComputeCapabilityMajor, +hipDeviceAttributeComputeCapabilityMinor, +
+  hipDeviceAttributeConcurrentKernels, +hipDeviceAttributePciBusId, +hipDeviceAttributePciDeviceId, +hipDeviceAttributeMaxSharedMemoryPerMultiprocessor, +
+  hipDeviceAttributeIsMultiGpuBoard +
+ }
 
enum  hipFuncCache_t { hipFuncCachePreferNone, +hipFuncCachePreferShared, +hipFuncCachePreferL1, +hipFuncCachePreferEqual + }
 
enum  hipSharedMemConfig { hipSharedMemBankSizeDefault, +hipSharedMemBankSizeFourByte, +hipSharedMemBankSizeEightByte + }
 
enum  hipMemcpyKind {
+  hipMemcpyHostToHost = 0, +hipMemcpyHostToDevice = 1, +hipMemcpyDeviceToHost = 2, +hipMemcpyDeviceToDevice =3, +
+  hipMemcpyDefault = 4 +
+ }
 
+

Detailed Description

+

Macro Definition Documentation

+ +
+
+ + + + +
#define hipEventDefault   0x0
+
+ +

Flags that can be used with hipEventCreateWithFlags:

+

Default flags

+ +
+
+ +
+
+ + + + +
#define hipEventInterprocess   0x4
+
+ +

Event can support IPC.

+
Warning
- not supported in HIP.
+ +
+
+ +
+
+ + + + +
#define hipHostRegisterDefault   0x0
+
+ +

Flags that can be used with hipHostRegister.

+

Memory is Mapped and Portable

+ +
+
+ +
+
+ + + + +
#define hipStreamDefault   0x00
+
+ +

Flags that can be used with hipStreamCreateWithFlags.

+

Default stream creation flags. These are used with hipStreamCreate().

+ +
+
+

Typedef Documentation

+ +
+
+ + + + +
typedef struct dim3 dim3
+
+

Struct for data in 3D

+ +
+
+ +
+
+ + + + +
typedef enum hipFuncCache_t hipFuncCache_t
+
+
Warning
On AMD devices and recent Nvidia devices, these hints and controls are ignored.
+ +
+
+ +
+
+ + + + +
typedef enum hipMemcpyKind hipMemcpyKind
+
+

Memory copy types

+ +
+
+ +
+
+ + + + +
typedef enum hipSharedMemConfig hipSharedMemConfig
+
+
Warning
On AMD devices and recent Nvidia devices, these hints and controls are ignored.
+ +
+
+

Enumeration Type Documentation

+ +
+
+ + + + +
enum hipDeviceAttribute_t
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Enumerator
hipDeviceAttributeMaxThreadsPerBlock  +

Maximum number of threads per block.

+
hipDeviceAttributeMaxBlockDimX  +

Maximum x-dimension of a block.

+
hipDeviceAttributeMaxBlockDimY  +

Maximum y-dimension of a block.

+
hipDeviceAttributeMaxBlockDimZ  +

Maximum z-dimension of a block.

+
hipDeviceAttributeMaxGridDimX  +

Maximum x-dimension of a grid.

+
hipDeviceAttributeMaxGridDimY  +

Maximum y-dimension of a grid.

+
hipDeviceAttributeMaxGridDimZ  +

Maximum z-dimension of a grid.

+
hipDeviceAttributeMaxSharedMemoryPerBlock  +

Maximum shared memory available per block in bytes.

+
hipDeviceAttributeTotalConstantMemory  +

Constant memory size in bytes.

+
hipDeviceAttributeWarpSize  +

Warp size in threads.

+
hipDeviceAttributeMaxRegistersPerBlock  +

Maximum number of 32-bit registers available to a thread block. This number is shared by all thread blocks simultaneously resident on a multiprocessor.

+
hipDeviceAttributeClockRate  +

Peak clock frequency in kilohertz.

+
hipDeviceAttributeMemoryClockRate  +

Peak memory clock frequency in kilohertz.

+
hipDeviceAttributeMemoryBusWidth  +

Global memory bus width in bits.

+
hipDeviceAttributeMultiprocessorCount  +

Number of multiprocessors on the device.

+
hipDeviceAttributeComputeMode  +

Compute mode that device is currently in.

+
hipDeviceAttributeL2CacheSize  +

Size of L2 cache in bytes. 0 if the device doesn't have L2 cache.

+
hipDeviceAttributeMaxThreadsPerMultiProcessor  +

Maximum resident threads per multiprocessor.

+
hipDeviceAttributeComputeCapabilityMajor  +

Major compute capability version number.

+
hipDeviceAttributeComputeCapabilityMinor  +

Minor compute capability version number.

+
hipDeviceAttributeConcurrentKernels  +

Device can possibly execute multiple kernels concurrently.

+
hipDeviceAttributePciBusId  +

PCI Bus ID.

+
hipDeviceAttributePciDeviceId  +

PCI Device ID.

+
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor  +

Maximum Shared Memory Per Multiprocessor.

+
hipDeviceAttributeIsMultiGpuBoard  +

Multiple GPU devices.

+
+ +
+
+ +
+
+ + + + +
enum hipError_t
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Enumerator
hipSuccess  +

Successful completion.

+
hipErrorInvalidContext  +

Produced when input context is invalid.

+
hipErrorInvalidKernelFile  +

In CUDA DRV, it is CUDA_ERROR_INVALID_PTX.

+
hipErrorMemoryAllocation  +

Memory allocation error.

+
hipErrorInitializationError  +

TODO comment from hipErrorInitializationError.

+
hipErrorLaunchFailure  +

An exception occurred on the device while executing a kernel.

+
hipErrorLaunchOutOfResources  +

Out of resources error.

+
hipErrorInvalidDevice  +

DeviceID must be in range 0...#compute-devices.

+
hipErrorInvalidValue  +

One or more of the parameters passed to the API call is NULL or not in an acceptable range.

+
hipErrorInvalidDevicePointer  +

Invalid Device Pointer.

+
hipErrorInvalidMemcpyDirection  +

Invalid memory copy direction.

+
hipErrorUnknown  +

Unknown error.

+
hipErrorInvalidResourceHandle  +

Resource handle (hipEvent_t or hipStream_t) invalid.

+
hipErrorNotReady  +

Indicates that asynchronous operations enqueued earlier are not ready. This is not actually an error, but is used to distinguish from hipSuccess (which indicates completion). APIs that return this error include hipEventQuery and hipStreamQuery.

+
hipErrorNoDevice  +

Call to hipGetDeviceCount returned 0 devices.

+
hipErrorPeerAccessAlreadyEnabled  +

Peer access was already enabled from the current device.

+
hipErrorPeerAccessNotEnabled  +

Peer access was never enabled from the current device.

+
hipErrorRuntimeMemory  +

HSA runtime memory call returned error. Typically not seen in production systems.

+
hipErrorRuntimeOther  +

HSA runtime call other than memory returned error. Typically not seen in production systems.

+
hipErrorHostMemoryAlreadyRegistered  +

Produced when trying to lock a page-locked memory.

+
hipErrorHostMemoryNotRegistered  +

Produced when trying to unlock a non-page-locked memory.

+
hipErrorMapBufferObjectFailed  +

Produced when the IPC memory attach failed from ROCr.

+
hipErrorTbd  +

Marker that more error codes are needed.

+
+ +
+
+ +
+
+ + + + +
enum hipFuncCache_t
+
+
Warning
On AMD devices and recent Nvidia devices, these hints and controls are ignored.
+ + + + + +
Enumerator
hipFuncCachePreferNone  +

no preference for shared memory or L1 (default)

+
hipFuncCachePreferShared  +

prefer larger shared memory and smaller L1 cache

+
hipFuncCachePreferL1  +

prefer larger L1 cache and smaller shared memory

+
hipFuncCachePreferEqual  +

prefer equal size L1 cache and shared memory

+
+ +
+
+ +
+
+ + + + +
enum hipMemcpyKind
+
+

Memory copy types

+ + + + + + +
Enumerator
hipMemcpyHostToHost  +

Host-to-Host Copy.

+
hipMemcpyHostToDevice  +

Host-to-Device Copy.

+
hipMemcpyDeviceToHost  +

Device-to-Host Copy.

+
hipMemcpyDeviceToDevice  +

Device-to-Device Copy.

+
hipMemcpyDefault  +

Runtime will automatically determine copy-kind based on virtual addresses.

+
+ +
+
+ +
+
+ + + + +
enum hipSharedMemConfig
+
+
Warning
On AMD devices and recent Nvidia devices, these hints and controls are ignored.
+ + + + +
Enumerator
hipSharedMemBankSizeDefault  +

The compiler selects a device-specific value for the banking.

+
hipSharedMemBankSizeFourByte  +

Shared mem is banked at 4-bytes intervals and performs best when adjacent threads access data 4 bytes apart.

+
hipSharedMemBankSizeEightByte  +

Shared mem is banked at 8-byte intervals and performs best when adjacent threads access data 4 bytes apart.

+
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__HCC__Specific.html b/docs/RuntimeAPI/html/group__HCC__Specific.html new file mode 100644 index 0000000000..b9940e0a53 --- /dev/null +++ b/docs/RuntimeAPI/html/group__HCC__Specific.html @@ -0,0 +1,96 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: HCC-Specific Accessors + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
HCC-Specific Accessors
+
+
+

----------------------------------------------------------------------------------------------—

+

The following calls are only supported when compiler HIP with HCC. To produce portable code, use of these calls must be guarded #ifdef checks:

+
#ifdef __HCC__
+
hc::accelerator acc;
+
hipError_t err = hipHccGetAccelerator(deviceId, &acc)
+
#endif
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__HIP-ENV.html b/docs/RuntimeAPI/html/group__HIP-ENV.html new file mode 100644 index 0000000000..f38a717247 --- /dev/null +++ b/docs/RuntimeAPI/html/group__HIP-ENV.html @@ -0,0 +1,90 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: HIP Environment Variables + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
HIP Environment Variables
+
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Memory.html b/docs/RuntimeAPI/html/group__Memory.html new file mode 100644 index 0000000000..338ce818a2 --- /dev/null +++ b/docs/RuntimeAPI/html/group__Memory.html @@ -0,0 +1,1319 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Memory Management + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Memory Management
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipPointerGetAttributes (hipPointerAttribute_t *attributes, void *ptr)
 Return attributes for the specified pointer. More...
 
hipError_t hipMalloc (void **ptr, size_t size)
 Allocate memory on the default accelerator. More...
 
hipError_t hipMallocHost (void **ptr, size_t size) __attribute__((deprecated("use hipHostMalloc instead")))
 Allocate pinned host memory [Deprecated]. More...
 
hipError_t hipHostMalloc (void **ptr, size_t size, unsigned int flags)
 Allocate device accessible page locked host memory. More...
 
hipError_t hipHostAlloc (void **ptr, size_t size, unsigned int flags) __attribute__((deprecated("use hipHostMalloc instead")))
 Allocate device accessible page locked host memory [Deprecated]. More...
 
hipError_t hipHostGetDevicePointer (void **devPtr, void *hstPtr, unsigned int flags)
 Get Device pointer from Host Pointer allocated through hipHostMalloc. More...
 
hipError_t hipHostGetFlags (unsigned int *flagsPtr, void *hostPtr)
 Return flags associated with host pointer. More...
 
hipError_t hipHostRegister (void *hostPtr, size_t sizeBytes, unsigned int flags)
 Register host memory so it can be accessed from the current device. More...
 
hipError_t hipHostUnregister (void *hostPtr)
 Un-register host pointer. More...
 
hipError_t hipMallocPitch (void **ptr, size_t *pitch, size_t width, size_t height)
 
hipError_t hipFree (void *ptr)
 Free memory allocated by the hcc hip memory allocation API. This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned. More...
 
hipError_t hipFreeHost (void *ptr) __attribute__((deprecated("use hipHostFree instead")))
 Free memory allocated by the hcc hip host memory allocation API. [Deprecated]. More...
 
hipError_t hipHostFree (void *ptr)
 Free memory allocated by the hcc hip host memory allocation API This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned. More...
 
hipError_t hipMemcpy (void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind)
 Copy data from src to dst. More...
 
hipError_t hipMemcpyHtoD (hipDeviceptr_t dst, void *src, size_t sizeBytes)
 Copy data from Host to Device. More...
 
hipError_t hipMemcpyDtoH (void *dst, hipDeviceptr_t src, size_t sizeBytes)
 Copy data from Device to Host. More...
 
hipError_t hipMemcpyDtoD (hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
 Copy data from Device to Device. More...
 
hipError_t hipMemcpyHtoDAsync (hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream)
 Copy data from Host to Device asynchronously. More...
 
hipError_t hipMemcpyDtoHAsync (void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
 Copy data from Device to Host asynchronously. More...
 
hipError_t hipMemcpyDtoDAsync (hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
 Copy data from Device to Device asynchronously. More...
 
hipError_t hipMemcpyToSymbol (const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
 Copies sizeBytes bytes from the memory area pointed to by src to the memory area pointed to by offset bytes from the start of symbol symbol. More...
 
hipError_t hipMemcpyToSymbolAsync (const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
 Copies sizeBytes bytes from the memory area pointed to by src to the memory area pointed to by offset bytes from the start of symbol symbol. More...
 
hipError_t hipMemcpyAsync (void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream)
 Copy data from src to dst asynchronously. More...
 
hipError_t hipMemset (void *dst, int value, size_t sizeBytes)
 Copy data from src to dst asynchronously. More...
 
hipError_t hipMemsetAsync (void *dst, int value, size_t sizeBytes, hipStream_t stream)
 Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value value. More...
 
hipError_t hipMemGetInfo (size_t *free, size_t *total)
 Query memory info. Return snapshot of free memory, and total allocatable memory on the device. More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+

The following CUDA APIs are not currently supported:

+ +

Function Documentation

+ +
+
+ + + + + + + + +
hipError_t hipFree (void * ptr)
+
+ +

Free memory allocated by the hcc hip memory allocation API. This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

+
Parameters
+ + +
[in]ptrPointer to memory to be freed
+
+
+
Returns
hipSuccess
+
+hipErrorInvalidDevicePointer (if pointer is invalid, including host pointers allocated with hipHostMalloc)
+
See Also
hipMalloc, hipMallocPitch, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipFreeHost (void * ptr)
+
+ +

Free memory allocated by the hcc hip host memory allocation API. [Deprecated].

+
Parameters
+ + +
[in]ptrPointer to memory to be freed
+
+
+
Returns
hipSuccess, hipErrorInvalidValue (if pointer is invalid, including device pointers allocated with hipMalloc)
+
Deprecated:
use hipHostFree() instead
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipHostAlloc (void ** ptr,
size_t size,
unsigned int flags 
)
+
+ +

Allocate device accessible page locked host memory [Deprecated].

+
Parameters
+ + + + +
[out]ptrPointer to the allocated host pinned memory
[in]sizeRequested memory size
[in]flagsType of host memory allocation
+
+
+
Returns
hipSuccess, hipErrorMemoryAllocation
+
Deprecated:
use hipHostMalloc() instead
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipHostFree (void * ptr)
+
+ +

Free memory allocated by the hcc hip host memory allocation API This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

+
Parameters
+ + +
[in]ptrPointer to memory to be freed
+
+
+
Returns
hipSuccess, hipErrorInvalidValue (if pointer is invalid, including device pointers allocated with hipMalloc)
+
See Also
hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostMalloc
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipHostGetDevicePointer (void ** devPtr,
void * hstPtr,
unsigned int flags 
)
+
+ +

Get Device pointer from Host Pointer allocated through hipHostMalloc.

+
Parameters
+ + + + +
[out]dstPtrDevice Pointer mapped to passed host pointer
[in]hstPtrHost Pointer allocated through hipHostMalloc
[in]flagsFlags to be passed for extension
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorMemoryAllocation
+
See Also
hipSetDeviceFlags, hipHostMalloc
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipHostGetFlags (unsigned int * flagsPtr,
void * hostPtr 
)
+
+ +

Return flags associated with host pointer.

+
Parameters
+ + + +
[out]flagsPtrMemory location to store flags
[in]hostPtrHost Pointer allocated through hipHostMalloc
+
+
+
Returns
hipSuccess, hipErrorInvalidValue
+
See Also
hipHostMalloc
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipHostMalloc (void ** ptr,
size_t size,
unsigned int flags 
)
+
+ +

Allocate device accessible page locked host memory.

+
Parameters
+ + + + +
[out]ptrPointer to the allocated host pinned memory
[in]sizeRequested memory size
[in]flagsType of host memory allocation
+
+
+
Returns
hipSuccess, hipErrorMemoryAllocation
+
See Also
hipSetDeviceFlags, hipHostFree
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipHostRegister (void * hostPtr,
size_t sizeBytes,
unsigned int flags 
)
+
+ +

Register host memory so it can be accessed from the current device.

+
Parameters
+ + + + +
[out]hostPtrPointer to host memory to be registered.
[in]sizeBytessize of the host memory
[in]flags.See below.
+
+
+

Flags:

+ +

After registering the memory, use hipHostGetDevicePointer to obtain the mapped device pointer. On many systems, the mapped device pointer will have a different value than the mapped host pointer. Applications must use the device pointer in device code, and the host pointer in device code.

+

On some systems, registered memory is pinned. On some systems, registered memory may not be actually be pinned but uses OS or hardware facilities to all GPU access to the host memory.

+

Developers are strongly encouraged to register memory blocks which are aligned to the host cache-line size. (typically 64-bytes but can be obtains from the CPUID instruction).

+

If registering non-aligned pointers, the application must take care when register pointers from the same cache line on different devices. HIP's coarse-grained synchronization model does not guarantee correct results if different devices write to different parts of the same cache block - typically one of the writes will "win" and overwrite data from the other registered memory region.

+
Returns
hipSuccess, hipErrorMemoryAllocation
+
See Also
hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipHostUnregister (void * hostPtr)
+
+ +

Un-register host pointer.

+
Parameters
+ + +
[in]hostPtrHost pointer previously registered with hipHostRegister
+
+
+
Returns
Error code
+
See Also
hipHostRegister
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipMalloc (void ** ptr,
size_t size 
)
+
+ +

Allocate memory on the default accelerator.

+
Parameters
+ + + +
[out]ptrPointer to the allocated memory
[in]sizeRequested memory size
+
+
+
Returns
hipSuccess
+
See Also
hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostFree, hipHostMalloc
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipMallocHost (void ** ptr,
size_t size 
)
+
+ +

Allocate pinned host memory [Deprecated].

+
Parameters
+ + + +
[out]ptrPointer to the allocated host pinned memory
[in]sizeRequested memory size
+
+
+
Returns
hipSuccess, hipErrorMemoryAllocation
+
Deprecated:
use hipHostMalloc() instead
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMallocPitch (void ** ptr,
size_t * pitch,
size_t width,
size_t height 
)
+
+

Allocates at least width (in bytes) * height bytes of linear memory Padding may occur to ensure alighnment requirements are met for the given row The change in width size due to padding will be returned in *pitch. Currently the alignment is set to 128 bytes

+
Parameters
+ + + + + +
[out]ptrPointer to the allocated device memory
[out]pitchPitch for allocation (in bytes)
[in]widthRequested pitched allocation width (in bytes)
[in]heightRequested pitched allocation height
+
+
+
Returns
Error code
+
See Also
hipMalloc, hipFree, hipMallocArray, hipFreeArray, hipHostFree, hipMalloc3D, hipMalloc3DArray, hipHostMalloc
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpy (void * dst,
const void * src,
size_t sizeBytes,
hipMemcpyKind kind 
)
+
+ +

Copy data from src to dst.

+

It supports memory from host to device, device to host, device to device and host to host The src and dst must not overlap.

+

For hipMemcpy, the copy is always performed by the current device (set by hipSetDevice). For multi-gpu or peer-to-peer configurations, it is recommended to set the current device to the device where the src data is physically located. For optimal peer-to-peer copies, the copy device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy agent as the current device and src/dest as the peerDevice argument. if this is not done, the hipMemcpy will still work, but will perform the copy using a staging buffer on the host.

+
Parameters
+ + + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
[in]copyTypeMemory copy type
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknowni
+
See Also
hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyAsync (void * dst,
const void * src,
size_t sizeBytes,
hipMemcpyKind kind,
hipStream_t stream 
)
+
+ +

Copy data from src to dst asynchronously.

+
Warning
If host or dest are not pinned, the memory copy will be performed synchronously. For best performance, use hipHostMalloc to allocate host memory that is transferred asynchronously.
+
+on HCC hipMemcpyAsync does not support overlapped H2D and D2H copies. For hipMemcpy, the copy is always performed by the device associated with the specified stream.
+

For multi-gpu or peer-to-peer configurations, it is recommended to use a stream which is a attached to the device where the src data is physically located. For optimal peer-to-peer copies, the copy device must be able to access the src and dst pointers (by calling hipDeviceEnablePeerAccess with copy agent as the current device and src/dest as the peerDevice argument. if this is not done, the hipMemcpy will still work, but will perform the copy using a staging buffer on the host.

+
Parameters
+ + + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
[in]accelerator_viewAccelerator view which the copy is being enqueued
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorMemoryFree, hipErrorUnknown
+
See Also
hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpy2DFromArray, hipMemcpyArrayToArray, hipMemcpy2DArrayToArray, hipMemcpyToSymbol, hipMemcpyFromSymbol, hipMemcpy2DAsync, hipMemcpyToArrayAsync, hipMemcpy2DToArrayAsync, hipMemcpyFromArrayAsync, hipMemcpy2DFromArrayAsync, hipMemcpyToSymbolAsync, hipMemcpyFromSymbolAsync
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyDtoD (hipDeviceptr_t dst,
hipDeviceptr_t src,
size_t sizeBytes 
)
+
+ +

Copy data from Device to Device.

+
Parameters
+ + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
+
+
+
Returns
hipSuccess, #hipErrorDeInitialized, #hipErrorNotInitialized, hipErrorInvalidContext, hipErrorInvalidValue
+
See Also
hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyDtoDAsync (hipDeviceptr_t dst,
hipDeviceptr_t src,
size_t sizeBytes,
hipStream_t stream 
)
+
+ +

Copy data from Device to Device asynchronously.

+
Parameters
+ + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
+
+
+
Returns
hipSuccess, #hipErrorDeInitialized, #hipErrorNotInitialized, hipErrorInvalidContext, hipErrorInvalidValue
+
See Also
hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyDtoH (void * dst,
hipDeviceptr_t src,
size_t sizeBytes 
)
+
+ +

Copy data from Device to Host.

+
Parameters
+ + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
+
+
+
Returns
hipSuccess, #hipErrorDeInitialized, #hipErrorNotInitialized, hipErrorInvalidContext, hipErrorInvalidValue
+
See Also
hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyDtoHAsync (void * dst,
hipDeviceptr_t src,
size_t sizeBytes,
hipStream_t stream 
)
+
+ +

Copy data from Device to Host asynchronously.

+
Parameters
+ + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
+
+
+
Returns
hipSuccess, #hipErrorDeInitialized, #hipErrorNotInitialized, hipErrorInvalidContext, hipErrorInvalidValue
+
See Also
hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyHtoD (hipDeviceptr_t dst,
void * src,
size_t sizeBytes 
)
+
+ +

Copy data from Host to Device.

+
Parameters
+ + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
+
+
+
Returns
hipSuccess, #hipErrorDeInitialized, #hipErrorNotInitialized, hipErrorInvalidContext, hipErrorInvalidValue
+
See Also
hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyHtoDAsync (hipDeviceptr_t dst,
void * src,
size_t sizeBytes,
hipStream_t stream 
)
+
+ +

Copy data from Host to Device asynchronously.

+
Parameters
+ + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
+
+
+
Returns
hipSuccess, #hipErrorDeInitialized, #hipErrorNotInitialized, hipErrorInvalidContext, hipErrorInvalidValue
+
See Also
hipArrayCreate, hipArrayDestroy, hipArrayGetDescriptor, hipMemAlloc, hipMemAllocHost, hipMemAllocPitch, hipMemcpy2D, hipMemcpy2DAsync, hipMemcpy2DUnaligned, hipMemcpyAtoA, hipMemcpyAtoD, hipMemcpyAtoH, hipMemcpyAtoHAsync, hipMemcpyDtoA, hipMemcpyDtoD, hipMemcpyDtoDAsync, hipMemcpyDtoH, hipMemcpyDtoHAsync, hipMemcpyHtoA, hipMemcpyHtoAAsync, hipMemcpyHtoDAsync, hipMemFree, hipMemFreeHost, hipMemGetAddressRange, hipMemGetInfo, hipMemHostAlloc, hipMemHostGetDevicePointer
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyToSymbol (const char * symbolName,
const void * src,
size_t sizeBytes,
size_t offset,
hipMemcpyKind kind 
)
+
+ +

Copies sizeBytes bytes from the memory area pointed to by src to the memory area pointed to by offset bytes from the start of symbol symbol.

+

The memory areas may not overlap. Symbol can either be a variable that resides in global or constant memory space, or it can be a character string, naming a variable that resides in global or constant memory space. Kind can be either hipMemcpyHostToDevice or hipMemcpyDeviceToDevice TODO: cudaErrorInvalidSymbol and cudaErrorInvalidMemcpyDirection is not supported, use hipErrorUnknown for now.

+
Parameters
+ + + + + + +
[in]symbolName- Symbol destination on device
[in]src- Data being copy from
[in]sizeBytes- Data size in bytes
[in]offset- Offset from start of symbol in bytes
[in]kind- Type of transfer
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorMemoryFree, hipErrorUnknown
+
See Also
hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpy2DFromArray, hipMemcpyArrayToArray, hipMemcpy2DArrayToArray, hipMemcpyFromSymbol, hipMemcpyAsync, hipMemcpy2DAsync, hipMemcpyToArrayAsync, hipMemcpy2DToArrayAsync, hipMemcpyFromArrayAsync, hipMemcpy2DFromArrayAsync, hipMemcpyToSymbolAsync, hipMemcpyFromSymbolAsync
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyToSymbolAsync (const char * symbolName,
const void * src,
size_t sizeBytes,
size_t offset,
hipMemcpyKind kind,
hipStream_t stream 
)
+
+ +

Copies sizeBytes bytes from the memory area pointed to by src to the memory area pointed to by offset bytes from the start of symbol symbol.

+

The memory areas may not overlap. Symbol can either be a variable that resides in global or constant memory space, or it can be a character string, naming a variable that resides in global or constant memory space. Kind can be either hipMemcpyHostToDevice or hipMemcpyDeviceToDevice hipMemcpyToSymbolAsync() is asynchronous with respect to the host, so the call may return before copy is complete. TODO: cudaErrorInvalidSymbol and cudaErrorInvalidMemcpyDirection is not supported, use hipErrorUnknown for now.

+
Parameters
+ + + + + + +
[in]symbolName- Symbol destination on device
[in]src- Data being copy from
[in]sizeBytes- Data size in bytes
[in]offset- Offset from start of symbol in bytes
[in]kind- Type of transfer
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorMemoryFree, hipErrorUnknown
+
See Also
hipMemcpy, hipMemcpy2D, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpy2DFromArray, hipMemcpyArrayToArray, hipMemcpy2DArrayToArray, hipMemcpyFromSymbol, hipMemcpyAsync, hipMemcpy2DAsync, hipMemcpyToArrayAsync, hipMemcpy2DToArrayAsync, hipMemcpyFromArrayAsync, hipMemcpy2DFromArrayAsync, hipMemcpyToSymbolAsync, hipMemcpyFromSymbolAsync
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipMemGetInfo (size_t * free,
size_t * total 
)
+
+ +

Query memory info. Return snapshot of free memory, and total allocatable memory on the device.

+

Returns in *free a snapshot of the current free memory.

+
Returns
hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue
+
Warning
On HCC, the free memory only accounts for memory allocated by this process and may be optimistic.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemset (void * dst,
int value,
size_t sizeBytes 
)
+
+ +

Copy data from src to dst asynchronously.

+

It supports memory from host to device, device to host, device to device and host to host.

+
Parameters
+ + + + + +
[out]dstData being copy to
[in]srcData being copy from
[in]sizeBytesData size in bytes
[in]accelerator_viewAccelerator view which the copy is being enqueued
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorMemoryFree
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemsetAsync (void * dst,
int value,
size_t sizeBytes,
hipStream_t stream 
)
+
+ +

Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value value.

+

hipMemsetAsync() is asynchronous with respect to the host, so the call may return before the memset is complete. The operation can optionally be associated to a stream by passing a non-zero stream argument. If stream is non-zero, the operation may overlap with operations in other streams.

+
Parameters
+ + + + + +
[out]dstPointer to device memory
[in]value- Value to set for each byte of specified memory
[in]sizeBytes- Size in bytes to set
[in]stream- Stream identifier
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorMemoryFree
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipPointerGetAttributes (hipPointerAttribute_tattributes,
void * ptr 
)
+
+ +

Return attributes for the specified pointer.

+
Parameters
+ + + +
[out]attributesfor the specified pointer
[in]pointerto get attributes for
+
+
+
Returns
hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue
+
See Also
hipGetDeviceCount, hipGetDevice, hipSetDevice, hipChooseDevice
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__PeerToPeer.html b/docs/RuntimeAPI/html/group__PeerToPeer.html new file mode 100644 index 0000000000..6038b9a5e5 --- /dev/null +++ b/docs/RuntimeAPI/html/group__PeerToPeer.html @@ -0,0 +1,404 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Device Memory Access + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Device Memory Access
+
+
+ + + + +

+Macros

+#define USE_PEER_NON_UNIFIED   1
 
+ + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipDeviceCanAccessPeer (int *canAccessPeer, int deviceId, int peerDeviceId)
 Determine if a device can access a peer's memory. More...
 
hipError_t hipDeviceEnablePeerAccess (int peerDeviceId, unsigned int flags)
 Enable direct access from current device's virtual address space to memory allocations physically located on a peer device. More...
 
hipError_t hipDeviceDisablePeerAccess (int peerDeviceId)
 Disable direct access from current device's virtual address space to memory allocations physically located on a peer device. More...
 
hipError_t hipMemGetAddressRange (hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr)
 Get information on memory allocations. More...
 
hipError_t hipMemcpyPeer (void *dst, int dstDeviceId, const void *src, int srcDeviceId, size_t sizeBytes)
 Copies memory from one device to memory on another device. More...
 
hipError_t hipMemcpyPeerAsync (void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream)
 Copies memory from one device to memory on another device. More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+
Warning
PeerToPeer support is experimental.
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceCanAccessPeer (int * canAccessPeer,
int deviceId,
int peerDeviceId 
)
+
+ +

Determine if a device can access a peer's memory.

+
Parameters
+ + + + +
[out]canAccessPeerReturns the peer access capability (0 or 1)
[in]device- device from where memory may be accessed.
[in]peerDevice- device where memory is physically located
+
+
+

Returns "1" in canAccessPeer if the specified device is capable of directly accessing memory physically located on peerDevice , or "0" if not.

+

Returns "0" in canAccessPeer if deviceId == peerDeviceId, and both are valid devices : a device is not a peer of itself.

+
Returns
hipSuccess,
+
+hipErrorInvalidDevice if deviceId or peerDeviceId are not valid devices
+
Warning
PeerToPeer support is experimental.
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipDeviceDisablePeerAccess (int peerDeviceId)
+
+ +

Disable direct access from current device's virtual address space to memory allocations physically located on a peer device.

+

Returns hipErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been enabled from the current device.

+
Parameters
+ + +
[in]peerDeviceId
+
+
+
Returns
hipSuccess, hipErrorPeerAccessNotEnabled
+
Warning
PeerToPeer support is experimental.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipDeviceEnablePeerAccess (int peerDeviceId,
unsigned int flags 
)
+
+ +

Enable direct access from current device's virtual address space to memory allocations physically located on a peer device.

+

Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.

+
Parameters
+ + + +
[in]peerDeviceId
[in]flagsReturns hipSuccess, hipErrorInvalidDevice, hipErrorInvalidValue,
+
+
+
Returns
hipErrorPeerAccessAlreadyEnabled if peer access is already enabled for this device.
+
Warning
PeerToPeer support is experimental.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyPeer (void * dst,
int dstDeviceId,
const void * src,
int srcDeviceId,
size_t sizeBytes 
)
+
+ +

Copies memory from one device to memory on another device.

+
Parameters
+ + + + + + +
[out]dst- Destination device pointer.
[in]dstDeviceId- Destination device
[in]src- Source device pointer
[in]srcDeviceId- Source device
[in]sizeBytes- Size of memory copy in bytes
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInvalidDevice
+
Warning
PeerToPeer support is experimental.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyPeerAsync (void * dst,
int dstDevice,
const void * src,
int srcDevice,
size_t sizeBytes,
hipStream_t stream 
)
+
+ +

Copies memory from one device to memory on another device.

+
Parameters
+ + + + + + + +
[out]dst- Destination device pointer.
[in]dstDevice- Destination device
[in]src- Source device pointer
[in]srcDevice- Source device
[in]sizeBytes- Size of memory copy in bytes
[in]stream- Stream identifier
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInvalidDevice
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemGetAddressRange (hipDeviceptr_t * pbase,
size_t * psize,
hipDeviceptr_t dptr 
)
+
+ +

Get information on memory allocations.

+
Parameters
+ + + + +
[out]pbase- BAse pointer address
[out]psize- Size of allocation
[in]dptr-Device Pointer
+
+
+
Returns
hipSuccess, hipErrorInvalidDevicePointer
+
See Also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Profiler.html b/docs/RuntimeAPI/html/group__Profiler.html new file mode 100644 index 0000000000..ab54cc9f59 --- /dev/null +++ b/docs/RuntimeAPI/html/group__Profiler.html @@ -0,0 +1,142 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Control + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Control
+
+
+ + + + + + + + +

+Functions

hipError_t hipProfilerStart ()
 Start recording of profiling information When using this API, start the profiler with profiling disabled. (–startdisabled) More...
 
hipError_t hipProfilerStop ()
 Stop recording of profiling information. When using this API, start the profiler with profiling disabled. (–startdisabled) More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+
Warning
The cudaProfilerInitialize API format for "configFile" is not supported.
+

Function Documentation

+ +
+
+ + + + + + + +
hipError_t hipProfilerStart ()
+
+ +

Start recording of profiling information When using this API, start the profiler with profiling disabled. (–startdisabled)

+
Warning
: hipProfilerStart API is under development.
+ +
+
+ +
+
+ + + + + + + +
hipError_t hipProfilerStop ()
+
+ +

Stop recording of profiling information. When using this API, start the profiler with profiling disabled. (–startdisabled)

+
Warning
: hipProfilerStop API is under development.
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Stream.html b/docs/RuntimeAPI/html/group__Stream.html new file mode 100644 index 0000000000..4230158ab1 --- /dev/null +++ b/docs/RuntimeAPI/html/group__Stream.html @@ -0,0 +1,437 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Stream Management + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Stream Management
+
+
+ + + + +

+Typedefs

typedef void(* hipStreamCallback_t )(hipStream_t stream, hipError_t status, void *userData)
 
+ + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipStreamCreate (hipStream_t *stream)
 Create an asynchronous stream. More...
 
hipError_t hipStreamCreateWithFlags (hipStream_t *stream, unsigned int flags)
 Create an asynchronous stream. More...
 
hipError_t hipStreamDestroy (hipStream_t stream)
 Destroys the specified stream. More...
 
hipError_t hipStreamQuery (hipStream_t stream)
 Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not. More...
 
hipError_t hipStreamSynchronize (hipStream_t stream)
 Wait for all commands in stream to complete. More...
 
hipError_t hipStreamWaitEvent (hipStream_t stream, hipEvent_t event, unsigned int flags)
 Make the specified compute stream wait for an event. More...
 
hipError_t hipStreamGetFlags (hipStream_t stream, unsigned int *flags)
 Return flags associated with this stream. More...
 
hipError_t hipStreamAddCallback (hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags)
 Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each cudaStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished. More...
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+

The following Stream APIs are not (yet) supported in HIP:

+ +

Typedef Documentation

+ +
+
+ + + + +
typedef void(* hipStreamCallback_t)(hipStream_t stream, hipError_t status, void *userData)
+
+

Stream CallBack struct

+ +
+
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipStreamAddCallback (hipStream_t stream,
hipStreamCallback_t callback,
void * userData,
unsigned int flags 
)
+
+ +

Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each cudaStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.

+
Parameters
+ + + + + +
[in]stream- Stream to add callback to
[in]callback- The function to call once preceding stream operations are complete
[in]userData- User specified data to be passed to the callback function
[in]flags- Reserved for future use, must be 0
+
+
+
Returns
hipSuccess, hipErrorInvalidResourceHandle, #hipErrorNotSupported
+
See Also
hipStreamCreate, hipStreamCreateWithFlags, hipStreamQuery, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipStreamCreate (hipStream_tstream)
+
+ +

Create an asynchronous stream.

+
Parameters
+ + +
[in,out]streamValid pointer to hipStream_t. This function writes the memory with the newly created stream.
+
+
+
Returns
hipSuccess, hipErrorInvalidValue
+

Create a new asynchronous stream. stream returns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, applicaiton must call hipStreamDestroy.

+
Returns
hipSuccess, hipErrorInvalidValue
+
See Also
hipStreamCreateWithFlags, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipStreamCreateWithFlags (hipStream_tstream,
unsigned int flags 
)
+
+ +

Create an asynchronous stream.

+
Parameters
+ + + +
[in,out]streamPointer to new stream
[in]flagsto control stream creation.
+
+
+
Returns
hipSuccess, hipErrorInvalidValue
+

Create a new asynchronous stream. stream returns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. See hipStreamDefault, hipStreamNonBlocking.

+
See Also
hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipStreamDestroy (hipStream_t stream)
+
+ +

Destroys the specified stream.

+
Parameters
+ + +
[in,out]streamValid pointer to hipStream_t. This function writes the memory with the newly created stream.
+
+
+
Returns
hipSuccess hipErrorInvalidResourceHandle
+

Destroys the specified stream.

+

If commands are still executing on the specified stream, some may complete execution before the queue is deleted.

+

The queue may be destroyed while some commands are still inflight, or may wait for all commands queued to the stream before destroying it.

+
See Also
hipStreamCreate, hipStreamCreateWithFlags, hipStreamQuery, hipStreamWaitEvent, hipStreamSynchronize
+
Returns
hipSuccess, hipErrorInvalidResourceHandle
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
hipError_t hipStreamGetFlags (hipStream_t stream,
unsigned int * flags 
)
+
+ +

Return flags associated with this stream.

+
Parameters
+ + + +
[in]streamstream to be queried
[in,out]flagsPointer to an unsigned integer in which the stream's flags are returned
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInvalidResourceHandle
+
+hipSuccess hipErrorInvalidValue hipErrorInvalidResourceHandle
+

Return flags associated with this stream in *flags.

+
See Also
hipStreamCreateWithFlags
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipStreamQuery (hipStream_t stream)
+
+ +

Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not.

+
Parameters
+ + +
[in]streamstream to query
+
+
+
Returns
hipSuccess, hipErrorNotReady, hipErrorInvalidResourceHandle
+

This is thread-safe and returns a snapshot of the current state of the queue. However, if other host threads are sending work to the stream, the status may change immediately after the function is called. It is typically used for debug.

+
See Also
hipStreamCreate, hipStreamCreateWithFlags, hipStreamWaitEvent, hipStreamSynchronize, hipStreamDestroy
+ +
+
+ +
+
+ + + + + + + + +
hipError_t hipStreamSynchronize (hipStream_t stream)
+
+ +

Wait for all commands in stream to complete.

+
Parameters
+ + +
[in]streamstream identifier.
+
+
+
Returns
hipSuccess, hipErrorInvalidResourceHandle
+

If the null stream is specified, this command blocks until all This command honors the hipDeviceLaunchBlocking flag, which controls whether the wait is active or blocking. This command is host-synchronous : the host will block until the stream is empty.

+
See Also
hipStreamCreate, hipStreamCreateWithFlags, hipStreamWaitEvent, hipStreamDestroy
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipStreamWaitEvent (hipStream_t stream,
hipEvent_t event,
unsigned int flags 
)
+
+ +

Make the specified compute stream wait for an event.

+
Parameters
+ + + + +
[in]streamstream to make wait.
[in]eventevent to wait on
[in]flagscontrol operation [must be 0]
+
+
+
Returns
hipSuccess, hipErrorInvalidResourceHandle
+

This function inserts a wait operation into the specified stream. All future work submitted to stream will wait until event reports completion before beginning execution. This function is host-asynchronous and the function may return before the wait has completed.

+
See Also
hipStreamCreate, hipStreamCreateWithFlags, hipStreamSynchronize, hipStreamDestroy
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/group__Texture.html b/docs/RuntimeAPI/html/group__Texture.html new file mode 100644 index 0000000000..21560396c7 --- /dev/null +++ b/docs/RuntimeAPI/html/group__Texture.html @@ -0,0 +1,214 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Texture Reference Management + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+ +
+
Texture Reference Management
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipChannelFormatDesc hipCreateChannelDesc (int x, int y, int z, int w, hipChannelFormatKind f)
 Returns a channel descriptor using the specified format. More...
 
+template<typename T >
hipChannelFormatDesc hipCreateChannelDesc ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< int > ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< unsigned int > ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< long > ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< unsigned long > ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< float > ()
 
+template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTexture (size_t *offset, struct texture< T, dim, readMode > &tex, const void *devPtr, const struct hipChannelFormatDesc *desc, size_t size=UINT_MAX)
 
+template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTexture (size_t *offset, struct texture< T, dim, readMode > &tex, const void *devPtr, size_t size=UINT_MAX)
 
+template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTextureToArray (struct texture< T, dim, readMode > &tex, hipArray *array)
 
+template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipUnbindTexture (struct texture< T, dim, readMode > &tex)
 
+

Detailed Description

+

----------------------------------------------------------------------------------------------—

+
Warning
The HIP texture API implements a small subset of full texture API. Known limitations include:
    +
  • Only point sampling is supported.
  • +
  • Only C++ APIs are provided.
  • +
  • Many APIs and modes are not implemented.
  • +
+
+

The HIP texture support is intended to allow use of texture cache on hardware where this is beneficial.

+

The following CUDA APIs are not currently supported:

+ +

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipChannelFormatDesc hipCreateChannelDesc (int x,
int y,
int z,
int w,
hipChannelFormatKind f 
)
+
+ +

Returns a channel descriptor using the specified format.

+
Parameters
+ + + + + + +
[in]xX component
[in]yY component
[in]zZ component
[in]wW component
[in]fChannel format
+
+
+
Returns
Channel descriptor with format f
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc_8h_source.html b/docs/RuntimeAPI/html/hcc_8h_source.html new file mode 100644 index 0000000000..720e8ffa6e --- /dev/null +++ b/docs/RuntimeAPI/html/hcc_8h_source.html @@ -0,0 +1,130 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hcc.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #ifndef HIP_HCC_H
+
24 #define HIP_HCC_H
+
25 
+
26 #if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
+
27 #include "hip/hcc_detail/hcc_acc.h"
+
28 #endif
+
29 
+
30 #endif
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__acc_8h_source.html b/docs/RuntimeAPI/html/hcc__acc_8h_source.html new file mode 100644 index 0000000000..06918d855c --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__acc_8h_source.html @@ -0,0 +1,138 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hcc_acc.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hcc_acc.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #ifndef HCC_ACC_H
+
24 #define HCC_ACC_H
+
25 #include "hip/hip_runtime_api.h"
+
26 
+
27 #if __cplusplus
+
28 #ifdef __HCC__
+
29 #include <hc.hpp>
+
34 hipError_t hipHccGetAccelerator(int deviceId, hc::accelerator *acc);
+
35 
+
42 hipError_t hipHccGetAcceleratorView(hipStream_t stream, hc::accelerator_view **av);
+
43 #endif
+
44 #endif
+
45 
+
46 #endif
+
hipError_t
Definition: hip_runtime_api.h:152
+
Definition: hip_hcc.h:463
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__complex_8h_source.html b/docs/RuntimeAPI/html/hcc__detail_2hip__complex_8h_source.html new file mode 100644 index 0000000000..ba44cc5c16 --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__complex_8h_source.html @@ -0,0 +1,276 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_complex.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_complex.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #ifndef HIPCOMPLEX_H
+
24 #define HIPCOMPLEX_H
+
25 
+
26 typedef struct{
+
27  float x;
+
28  float y;
+ +
30 
+
31 __device__ static inline float hipCrealf(hipFloatComplex z){
+
32  return z.x;
+
33 }
+
34 
+
35 __device__ static inline float hipCimagf(hipFloatComplex z){
+
36  return z.y;
+
37 }
+
38 
+
39 __device__ static inline hipFloatComplex make_hipFloatComplex(float a, float b){
+ +
41  z.x = a;
+
42  z.y = b;
+
43  return z;
+
44 }
+
45 
+
46 __device__ static inline hipFloatComplex hipConjf(hipFloatComplex z){
+
47  hipFloatComplex ret;
+
48  ret.x = z.x;
+
49  ret.y = -z.y;
+
50  return ret;
+
51 }
+
52 
+
53 __device__ static inline float hipCsqabsf(hipFloatComplex z){
+
54  return z.x * z.x + z.y * z.y;
+
55 }
+
56 
+
57 __device__ static inline hipFloatComplex hipCaddf(hipFloatComplex p, hipFloatComplex q){
+
58  return make_hipFloatComplex(p.x + q.x, p.y + q.y);
+
59 }
+
60 
+
61 __device__ static inline hipFloatComplex hipCsubf(hipFloatComplex p, hipFloatComplex q){
+
62  return make_hipFloatComplex(p.x - q.x, p.y - q.y);
+
63 }
+
64 
+
65 __device__ static inline hipFloatComplex hipCmulf(hipFloatComplex p, hipFloatComplex q){
+
66  return make_hipFloatComplex(p.x * q.x - p.y * q.y, p.y * q.x + p.x * q.y);
+
67 }
+
68 
+
69 __device__ static inline hipFloatComplex hipCdivf(hipFloatComplex p, hipFloatComplex q){
+
70  float sqabs = hipCsqabsf(q);
+
71  hipFloatComplex ret;
+
72  ret.x = (p.x * q.x + p.y * q.y)/sqabs;
+
73  ret.y = (p.y * q.x - p.x * q.y)/sqabs;
+
74  return ret;
+
75 }
+
76 
+
77 __device__ static inline float hipCabsf(hipFloatComplex z){
+
78  return sqrtf(hipCsqabsf(z));
+
79 }
+
80 
+
81 
+
82 typedef struct{
+
83  double x;
+
84  double y;
+ +
86 
+
87 __device__ static inline double hipCreal(hipDoubleComplex z){
+
88  return z.x;
+
89 }
+
90 
+
91 __device__ static inline double hipCimag(hipDoubleComplex z){
+
92  return z.y;
+
93 }
+
94 
+
95 __device__ static inline hipDoubleComplex make_hipDoubleComplex(double a, double b){
+ +
97  z.x = a;
+
98  z.y = b;
+
99  return z;
+
100 }
+
101 
+
102 __device__ static inline hipDoubleComplex hipConj(hipDoubleComplex z){
+
103  hipDoubleComplex ret;
+
104  ret.x = z.x;
+
105  ret.y = z.y;
+
106  return ret;
+
107 }
+
108 
+
109 __device__ static inline double hipCsqabs(hipDoubleComplex z){
+
110  return z.x * z.x + z.y * z.y;
+
111 }
+
112 
+
113 __device__ static inline hipDoubleComplex hipCadd(hipDoubleComplex p, hipDoubleComplex q){
+
114  return make_hipDoubleComplex(p.x + q.x, p.y + q.y);
+
115 }
+
116 
+
117 __device__ static inline hipDoubleComplex hipCsub(hipDoubleComplex p, hipDoubleComplex q){
+
118  return make_hipDoubleComplex(p.x - q.x, p.y - q.y);
+
119 }
+
120 
+
121 __device__ static inline hipDoubleComplex hipCmul(hipDoubleComplex p, hipDoubleComplex q){
+
122  return make_hipDoubleComplex(p.x * q.x - p.y * q.y, p.y * q.x + p.x * q.y);
+
123 }
+
124 
+
125 __device__ static inline hipDoubleComplex hipCdiv(hipDoubleComplex p, hipDoubleComplex q){
+
126  double sqabs = hipCsqabs(q);
+
127  hipDoubleComplex ret;
+
128  ret.x = (p.x * q.x + p.y * q.y)/sqabs;
+
129  ret.y = (p.y * q.x - p.x * q.y)/sqabs;
+
130  return ret;
+
131 }
+
132 
+
133 __device__ static inline double hipCabs(hipDoubleComplex z){
+
134  return sqrtf(hipCsqabs(z));
+
135 }
+
136 
+ +
138 
+
139 __device__ static inline hipComplex make_hipComplex(float x,
+
140  float y){
+
141  return make_hipFloatComplex(x, y);
+
142 }
+
143 
+
144 __device__ static inline hipFloatComplex hipComplexDoubleToFloat
+
145 (hipDoubleComplex z){
+
146  return make_hipFloatComplex((float)z.x, (float)z.y);
+
147 }
+
148 
+
149 __device__ static inline hipDoubleComplex hipComplexFloatToDouble
+
150 (hipFloatComplex z){
+
151  return make_hipDoubleComplex((double)z.x, (double)z.y);
+
152 }
+
153 
+
154 __device__ static inline hipComplex hipCfmaf(hipComplex p, hipComplex q, hipComplex r){
+
155  float real = (p.x * q.x) + r.x;
+
156  float imag = (q.x * p.y) + r.y;
+
157 
+
158  real = -(p.y * q.y) + real;
+
159  imag = (p.x * q.y) + imag;
+
160 
+
161  return make_hipComplex(real, imag);
+
162 }
+
163 
+
164 __device__ static inline hipDoubleComplex hipCfma(hipDoubleComplex p, hipDoubleComplex q, hipDoubleComplex r){
+
165  float real = (p.x * q.x) + r.x;
+
166  float imag = (q.x * p.y) + r.y;
+
167 
+
168  real = -(p.y * q.y) + real;
+
169  imag = (p.x * q.y) + imag;
+
170 
+
171  return make_hipDoubleComplex(real, imag);
+
172 }
+
173 
+
174 #endif
+
Definition: hip_complex.h:26
+
Definition: hip_complex.h:82
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__fp16_8h_source.html b/docs/RuntimeAPI/html/hcc__detail_2hip__fp16_8h_source.html new file mode 100644 index 0000000000..27e7ea4ddb --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__fp16_8h_source.html @@ -0,0 +1,278 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_fp16.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_fp16.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #ifndef HIP_FP16_H
+
24 #define HIP_FP16_H
+
25 
+
26 #include "hip/hip_runtime.h"
+
27 
+
28 typedef struct{
+
29  unsigned x: 16;
+
30 } __half;
+
31 
+
32 
+
33 typedef struct __attribute__((aligned(4))){
+
34  __half p,q;
+
35 } __half2;
+
36 
+
37 typedef __half half;
+
38 typedef __half2 half2;
+
39 
+
40 /*
+
41 Arithmetic functions
+
42 */
+
43 
+
44 __device__ __half __hadd(const __half a, const __half b);
+
45 
+
46 __device__ __half __hadd_sat(const __half a, const __half b);
+
47 
+
48 __device__ __half __hfma(const __half a, const __half b, const __half c);
+
49 
+
50 __device__ __half __hfma_sat(const __half a, const __half b, const __half c);
+
51 
+
52 __device__ __half __hmul(const __half a, const __half b);
+
53 
+
54 __device__ __half __hmul_sat(const __half a, const __half b);
+
55 
+
56 __device__ __half __hneq(const __half a);
+
57 
+
58 __device__ __half __hsub(const __half a, const __half b);
+
59 
+
60 __device__ __half __hsub_sat(const __half a, const __half b);
+
61 
+
62 
+
63 
+
64 /*
+
65 Half2 Arithmetic Instructions
+
66 */
+
67 
+
68 __device__ __half2 __hadd2(const __half2 a, const __half2 b);
+
69 
+
70 __device__ __half2 __hadd2_sat(const __half2 a, const __half2 b);
+
71 
+
72 __device__ __half2 __hfma2(const __half2 a, const __half2 b, const __half2 c);
+
73 
+
74 __device__ __half2 __hfma2_sat(const __half2 a, const __half2 b, const __half2 c);
+
75 
+
76 __device__ __half2 __hmul2(const __half2 a, const __half2 b);
+
77 
+
78 __device__ __half2 __hmul2_sat(const __half2 a, const __half2 b);
+
79 
+
80 __device__ __half2 __hneq2(const __half2 a);
+
81 
+
82 __device__ __half2 __hsub2(const __half2 a, const __half2 b);
+
83 
+
84 __device__ __half2 __hsub2_sat(const __half2 a, const __half2 b);
+
85 
+
86 /*
+
87 Half Cmps
+
88 */
+
89 
+
90 __device__ bool __heq(const __half a, const __half b);
+
91 
+
92 __device__ bool __hge(const __half a, const __half b);
+
93 
+
94 __device__ bool __hgt(const __half a, const __half b);
+
95 
+
96 __device__ bool __hisinf(const __half a);
+
97 
+
98 __device__ bool __hisnan(const __half a);
+
99 
+
100 __device__ bool __hle(const __half a, const __half b);
+
101 
+
102 __device__ bool __hlt(const __half a, const __half b);
+
103 
+
104 __device__ bool __hne(const __half a, const __half b);
+
105 
+
106 /*
+
107 Half2 Cmps
+
108 */
+
109 
+
110 __device__ bool __hbeq2(const __half2 a, const __half2 b);
+
111 
+
112 __device__ bool __hbge2(const __half2 a, const __half2 b);
+
113 
+
114 __device__ bool __hbgt2(const __half2 a, const __half2 b);
+
115 
+
116 __device__ bool __hble2(const __half2 a, const __half2 b);
+
117 
+
118 __device__ bool __hblt2(const __half2 a, const __half2 b);
+
119 
+
120 __device__ bool __hbne2(const __half2 a, const __half2 b);
+
121 
+
122 __device__ __half2 __heq2(const __half2 a, const __half2 b);
+
123 
+
124 __device__ __half2 __hge2(const __half2 a, const __half2 b);
+
125 
+
126 __device__ __half2 __hgt2(const __half2 a, const __half2 b);
+
127 
+
128 __device__ __half2 __hisnan2(const __half2 a);
+
129 
+
130 __device__ __half2 __hle2(const __half2 a, const __half2 b);
+
131 
+
132 __device__ __half2 __hlt2(const __half2 a, const __half2 b);
+
133 
+
134 __device__ __half2 __hne2(const __half2 a, const __half2 b);
+
135 
+
136 
+
137 /*
+
138 Half Cnvs and Data Mvmnt
+
139 */
+
140 
+
141 __device__ __half2 __float22half2_rn(const float2 a);
+
142 
+
143 __device__ __half __float2half(const float a);
+
144 
+
145 __device__ __half2 __float2half2_rn(const float a);
+
146 
+
147 __device__ __half2 __floats2half2_rn(const float a, const float b);
+
148 
+
149 __device__ float2 __half22float2(const __half2 a);
+
150 
+
151 __device__ float __half2float(const __half a);
+
152 
+
153 __device__ __half2 __half2half2(const __half a);
+
154 
+
155 __device__ __half2 __halves2half2(const __half a, const __half b);
+
156 
+
157 __device__ float __high2float(const __half2 a);
+
158 
+
159 __device__ __half __high2half(const __half2 a);
+
160 
+
161 __device__ __half2 __high2half2(const __half2 a);
+
162 
+
163 __device__ __half2 __highs2half2(const __half2 a, const __half2 b);
+
164 
+
165 __device__ float __low2float(const __half2 a);
+
166 
+
167 __device__ __half __low2half(const __half2 a);
+
168 
+
169 __device__ __half2 __low2half2(const __half2 a);
+
170 
+
171 __device__ __half2 __lows2half2(const __half2 a, const __half2 b);
+
172 
+
173 __device__ __half2 __lowhigh2highlow(const __half2 a);
+
174 
+
175 __device__ __half2 __low2half2(const __half2 a, const __half2 b);
+
176 
+
177 #endif
+
Definition: hip_fp16.h:28
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__runtime_8h.html b/docs/RuntimeAPI/html/hcc__detail_2hip__runtime_8h.html new file mode 100644 index 0000000000..9b7b4d8f90 --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__runtime_8h.html @@ -0,0 +1,1191 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_runtime.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
hip_runtime.h File Reference
+
+
+ +

Contains definitions of APIs for HIP runtime. +More...

+
#include <math.h>
+#include <string.h>
+#include <stddef.h>
+#include <hip/hip_runtime_api.h>
+#include <grid_launch.h>
+#include <hip/hcc_detail/host_defines.h>
+
+

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

+#define NVCC_COMPAT
 
+#define CUDA_SUCCESS   hipSuccess
 
+#define hipLaunchParm   grid_launch_parm
 
+#define __launch_bounds__(requiredMaxThreadsPerBlock, minBlocksPerMultiprocessor)
 
+#define clock_t   long long int
 
+#define hipThreadIdx_x   (hc_get_workitem_id(0))
 
+#define hipThreadIdx_y   (hc_get_workitem_id(1))
 
+#define hipThreadIdx_z   (hc_get_workitem_id(2))
 
+#define hipBlockIdx_x   (hc_get_group_id(0))
 
+#define hipBlockIdx_y   (hc_get_group_id(1))
 
+#define hipBlockIdx_z   (hc_get_group_id(2))
 
+#define hipBlockDim_x   (hc_get_group_size(0))
 
+#define hipBlockDim_y   (hc_get_group_size(1))
 
+#define hipBlockDim_z   (hc_get_group_size(2))
 
+#define hipGridDim_x   (hc_get_num_groups(0))
 
+#define hipGridDim_y   (hc_get_num_groups(1))
 
+#define hipGridDim_z   (hc_get_num_groups(2))
 
+#define __syncthreads()   hc_barrier(CLK_LOCAL_MEM_FENCE)
 
+#define HIP_KERNEL_NAME(...)   __VA_ARGS__
 
+#define HIP_SYMBOL(X)   #X
 
#define HIP_DYNAMIC_SHARED(type, var)
 
+#define HIP_DYNAMIC_SHARED_ATTRIBUTE   __attribute__((address_space(3)))
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

+__device__ float acosf (float x)
 
+__device__ float acoshf (float x)
 
+__device__ float asinf (float x)
 
+__device__ float asinhf (float x)
 
+__device__ float atan2f (float y, float x)
 
+__device__ float atanf (float x)
 
+__device__ float atanhf (float x)
 
+__device__ float cbrtf (float x)
 
+__device__ float ceilf (float x)
 
+__device__ float copysignf (float x, float y)
 
+__device__ float coshf (float x)
 
+__device__ float cyl_bessel_i0f (float x)
 
+__device__ float cyl_bessel_i1f (float x)
 
+__device__ float erfcf (float x)
 
+__device__ float erfcinvf (float y)
 
+__device__ float erfcxf (float x)
 
+__device__ float erff (float x)
 
+__device__ float erfinvf (float y)
 
+__device__ float exp2f (float x)
 
+__device__ float expm1f (float x)
 
+__device__ float fabsf (float x)
 
+__device__ float fdimf (float x, float y)
 
+__device__ __host__ float fdividef (float x, float y)
 
+__device__ float floorf (float x)
 
+__device__ float fmaf (float x, float y, float z)
 
+__device__ float fmaxf (float x, float y)
 
+__device__ float fminf (float x, float y)
 
+__device__ float fmodf (float x, float y)
 
+__device__ float frexpf (float x, float y)
 
+__device__ float hypotf (float x, float y)
 
+__device__ float ilogbf (float x)
 
+__host__ __device__ unsigned isfinite (float a)
 
+__device__ unsigned isinf (float a)
 
+__device__ unsigned isnan (float a)
 
+__device__ float j0f (float x)
 
+__device__ float j1f (float x)
 
+__device__ float jnf (int n, float x)
 
+__device__ float ldexpf (float x, int exp)
 
+__device__ float lgammaf (float x)
 
+__device__ long long int llrintf (float x)
 
+__device__ long long int llroundf (float x)
 
+__device__ float log1pf (float x)
 
+__device__ float logbf (float x)
 
+__device__ long int lrintf (float x)
 
+__device__ long int lroundf (float x)
 
+__device__ float modff (float x, float *iptr)
 
+__device__ float nanf (const char *tagp)
 
+__device__ float nearbyintf (float x)
 
+__device__ float nextafterf (float x, float y)
 
+__device__ float norm3df (float a, float b, float c)
 
+__device__ float norm4df (float a, float b, float c, float d)
 
+__device__ float normcdff (float y)
 
+__device__ float normcdfinvf (float y)
 
+__device__ float normf (int dim, const float *a)
 
+__device__ float rcbrtf (float x)
 
+__device__ float remainderf (float x, float y)
 
+__device__ float remquof (float x, float y, int *quo)
 
+__device__ float rhypotf (float x, float y)
 
+__device__ float rintf (float x)
 
+__device__ float rnorm3df (float a, float b, float c)
 
+__device__ float rnorm4df (float a, float b, float c, float d)
 
+__device__ float rnormf (int dim, const float *a)
 
+__device__ float roundf (float x)
 
+__device__ float rsqrtf (float x)
 
+__device__ float scalblnf (float x, long int n)
 
+__device__ float scalbnf (float x, int n)
 
+__host__ __device__ unsigned signbit (float a)
 
+__device__ void sincospif (float x, float *sptr, float *cptr)
 
+__device__ float sinhf (float x)
 
+__device__ float sinpif (float x)
 
+__device__ float sqrtf (float x)
 
+__device__ float tanhf (float x)
 
+__device__ float tgammaf (float x)
 
+__device__ float truncf (float x)
 
+__device__ float y0f (float x)
 
+__device__ float y1f (float x)
 
+__device__ float ynf (int n, float x)
 
+__host__ __device__ float cospif (float x)
 
+__device__ double acos (double x)
 
+__device__ double acosh (double x)
 
+__device__ double asin (double x)
 
+__device__ double asinh (double x)
 
+__device__ double atan (double x)
 
+__device__ double atan2 (double y, double x)
 
+__device__ double atanh (double x)
 
+__device__ double cbrt (double x)
 
+__device__ double ceil (double x)
 
+__device__ double copysign (double x, double y)
 
+__device__ double cos (double x)
 
+__device__ double cosh (double x)
 
+__host__ __device__ double cospi (double x)
 
+__device__ double cyl_bessel_i0 (double x)
 
+__device__ double cyl_bessel_i1 (double x)
 
+__device__ double erf (double x)
 
+__device__ double erfc (double x)
 
+__device__ double erfcinv (double y)
 
+__device__ double erfcx (double x)
 
+__device__ double erfinv (double x)
 
+__device__ double exp (double x)
 
+__device__ double exp10 (double x)
 
+__device__ double exp2 (double x)
 
+__device__ double expm1 (double x)
 
+__device__ double fabs (double x)
 
+__device__ double fdim (double x, double y)
 
+__device__ double fdivide (double x, double y)
 
+__device__ double floor (double x)
 
+__device__ double fma (double x, double y, double z)
 
+__device__ double fmax (double x, double y)
 
+__device__ double fmin (double x, double y)
 
+__device__ double fmod (double x, double y)
 
+__device__ double frexp (double x, int *nptr)
 
+__device__ double hypot (double x, double y)
 
+__device__ double ilogb (double x)
 
+__host__ __device__ unsigned isfinite (double x)
 
+__device__ unsigned isinf (double x)
 
+__device__ unsigned isnan (double x)
 
+__device__ double j0 (double x)
 
+__device__ double j1 (double x)
 
+__device__ double jn (int n, double x)
 
+__device__ double ldexp (double x, int exp)
 
+__device__ double lgamma (double x)
 
+__device__ long long llrint (double x)
 
+__device__ long long llround (double x)
 
+__device__ double log (double x)
 
+__device__ double log10 (double x)
 
+__device__ double log1p (double x)
 
+__device__ double log2 (double x)
 
+__device__ double logb (double x)
 
+__device__ long int lrint (double x)
 
+__device__ long int lround (double x)
 
+__device__ double modf (double x, double *iptr)
 
+__device__ double nan (const char *tagp)
 
+__device__ double nearbyint (double x)
 
+__device__ double nextafter (double x, double y)
 
+__device__ double norm (int dim, const double *t)
 
+__device__ double norm3d (double a, double b, double c)
 
+__device__ double norm4d (double a, double b, double c, double d)
 
+__device__ double normcdf (double y)
 
+__device__ double normcdfinv (double y)
 
+__device__ double pow (double x, double y)
 
+__device__ double rcbrt (double x)
 
+__device__ double remainder (double x, double y)
 
+__device__ double remquo (double x, double y, int *quo)
 
+__device__ double rhypot (double x, double y)
 
+__device__ double rint (double x)
 
+__device__ double rnorm (int dim, const double *t)
 
+__device__ double rnorm3d (double a, double b, double c)
 
+__device__ double rnorm4d (double a, double b, double c, double d)
 
+__device__ double round (double x)
 
+__host__ __device__ double rsqrt (double x)
 
+__device__ double scalbln (double x, long int n)
 
+__device__ double scalbn (double x, int n)
 
+__host__ __device__ unsigned signbit (double a)
 
+__device__ double sin (double a)
 
+__device__ void sincos (double x, double *sptr, double *cptr)
 
+__device__ void sincospi (double x, double *sptr, double *cptr)
 
+__device__ double sinh (double x)
 
+__host__ __device__ double sinpi (double x)
 
+__device__ double sqrt (double x)
 
+__device__ double tan (double x)
 
+__device__ double tanh (double x)
 
+__device__ double tgamma (double x)
 
+__device__ double trunc (double x)
 
+__device__ double y0 (double x)
 
+__device__ double y1 (double y)
 
+__device__ double yn (int n, double x)
 
+__device__ long long int clock64 ()
 
+__device__ clock_t clock ()
 
+__device__ int atomicAdd (int *address, int val)
 
+__device__ unsigned int atomicAdd (unsigned int *address, unsigned int val)
 
+__device__ unsigned long long int atomicAdd (unsigned long long int *address, unsigned long long int val)
 
+__device__ float atomicAdd (float *address, float val)
 
+__device__ int atomicSub (int *address, int val)
 
+__device__ unsigned int atomicSub (unsigned int *address, unsigned int val)
 
+__device__ int atomicExch (int *address, int val)
 
+__device__ unsigned int atomicExch (unsigned int *address, unsigned int val)
 
+__device__ unsigned long long int atomicExch (unsigned long long int *address, unsigned long long int val)
 
+__device__ float atomicExch (float *address, float val)
 
+__device__ int atomicMin (int *address, int val)
 
+__device__ unsigned int atomicMin (unsigned int *address, unsigned int val)
 
+__device__ unsigned long long int atomicMin (unsigned long long int *address, unsigned long long int val)
 
+__device__ int atomicMax (int *address, int val)
 
+__device__ unsigned int atomicMax (unsigned int *address, unsigned int val)
 
+__device__ unsigned long long int atomicMax (unsigned long long int *address, unsigned long long int val)
 
+__device__ int atomicCAS (int *address, int compare, int val)
 
+__device__ unsigned int atomicCAS (unsigned int *address, unsigned int compare, unsigned int val)
 
+__device__ unsigned long long int atomicCAS (unsigned long long int *address, unsigned long long int compare, unsigned long long int val)
 
+__device__ int atomicAnd (int *address, int val)
 
+__device__ unsigned int atomicAnd (unsigned int *address, unsigned int val)
 
+__device__ unsigned long long int atomicAnd (unsigned long long int *address, unsigned long long int val)
 
+__device__ int atomicOr (int *address, int val)
 
+__device__ unsigned int atomicOr (unsigned int *address, unsigned int val)
 
+__device__ unsigned long long int atomicOr (unsigned long long int *address, unsigned long long int val)
 
+__device__ int atomicXor (int *address, int val)
 
+__device__ unsigned int atomicXor (unsigned int *address, unsigned int val)
 
+__device__ unsigned long long int atomicXor (unsigned long long int *address, unsigned long long int val)
 
+__device__ unsigned int atomicInc (unsigned int *address, unsigned int val)
 
+__device__ unsigned int atomicDec (unsigned int *address, unsigned int val)
 
+__device__ int __mul24 (int arg1, int arg2)
 
+__device__ unsigned int __umul24 (unsigned int arg1, unsigned int arg2)
 
+__device__ unsigned int __popc (unsigned int input)
 
+__device__ unsigned int __popcll (unsigned long long int input)
 
+__device__ unsigned int __clz (unsigned int input)
 
+__device__ unsigned int __clzll (unsigned long long int input)
 
+__device__ unsigned int __clz (int input)
 
+__device__ unsigned int __clzll (long long int input)
 
+__device__ unsigned int __ffs (unsigned int input)
 
+__device__ unsigned int __ffsll (unsigned long long int input)
 
+__device__ unsigned int __ffs (int input)
 
+__device__ unsigned int __ffsll (long long int input)
 
+__device__ unsigned int __brev (unsigned int input)
 
+__device__ unsigned long long int __brevll (unsigned long long int input)
 
+__device__ int __all (int input)
 
+__device__ int __any (int input)
 
+__device__ unsigned long long int __ballot (int input)
 
+__device__ int __shfl (int input, int lane, int width)
 
+__device__ int __shfl_up (int input, unsigned int lane_delta, int width)
 
+__device__ int __shfl_down (int input, unsigned int lane_delta, int width)
 
+__device__ int __shfl_xor (int input, int lane_mask, int width)
 
+__device__ float __shfl (float input, int lane, int width)
 
+__device__ float __shfl_up (float input, unsigned int lane_delta, int width)
 
+__device__ float __shfl_down (float input, unsigned int lane_delta, int width)
 
+__device__ float __shfl_xor (float input, int lane_mask, int width)
 
+__host__ __device__ int min (int arg1, int arg2)
 
+__host__ __device__ int max (int arg1, int arg2)
 
+__device__ __attribute__ ((address_space(3))) void *__get_dynamicgroupbaseptr()
 
+__device__ float __hip_precise_cosf (float)
 
+__device__ float __hip_precise_exp10f (float)
 
+__device__ float __hip_precise_expf (float)
 
+__device__ float __hip_precise_frsqrt_rn (float)
 
+__device__ float __hip_precise_fsqrt_rd (float)
 
+__device__ float __hip_precise_fsqrt_rn (float)
 
+__device__ float __hip_precise_fsqrt_ru (float)
 
+__device__ float __hip_precise_fsqrt_rz (float)
 
+__device__ float __hip_precise_log10f (float)
 
+__device__ float __hip_precise_log2f (float)
 
+__device__ float __hip_precise_logf (float)
 
+__device__ float __hip_precise_powf (float, float)
 
+__device__ void __hip_precise_sincosf (float, float *, float *)
 
+__device__ float __hip_precise_sinf (float)
 
+__device__ float __hip_precise_tanf (float)
 
+__device__ double __hip_precise_dsqrt_rd (double)
 
+__device__ double __hip_precise_dsqrt_rn (double)
 
+__device__ double __hip_precise_dsqrt_ru (double)
 
+__device__ double __hip_precise_dsqrt_rz (double)
 
__attribute__ ((const)) float __hip_fast_cosf(float) __asm("llvm.cos.f32")
 
+__device__ float __hip_fast_exp10f (float)
 
+__device__ float __hip_fast_expf (float)
 
+__device__ float __hip_fast_frsqrt_rn (float)
 
+__device__ float __hip_fast_fsqrt_rn (float)
 
+__device__ float __hip_fast_fsqrt_ru (float)
 
+__device__ float __hip_fast_fsqrt_rz (float)
 
+__device__ float __hip_fast_log10f (float)
 
+__device__ float __hip_fast_logf (float)
 
+__device__ float __hip_fast_powf (float, float)
 
+__device__ void __hip_fast_sincosf (float, float *, float *)
 
+__device__ float __hip_fast_tanf (float)
 
+float __asm ("llvm.fma.f32")
 
+double __asm ("llvm.fma.f64")
 
+__device__ float sinf (float)
 
+__device__ float cosf (float)
 
+__device__ float tanf (float)
 
+__device__ void sincosf (float, float *, float *)
 
+__device__ float logf (float)
 
+__device__ float log2f (float)
 
+__device__ float log10f (float)
 
+__device__ float expf (float)
 
+__device__ float exp10f (float)
 
+__device__ float powf (float, float)
 
+__device__ float __cosf (float x)
 
+__device__ float __exp10f (float x)
 
+__device__ float __expf (float x)
 
+__device__ float __frsqrt_rn (float x)
 
+__device__ float __fsqrt_rd (float x)
 
+__device__ float __fsqrt_rn (float x)
 
+__device__ float __fsqrt_ru (float x)
 
+__device__ float __fsqrt_rz (float x)
 
+__device__ float __log10f (float x)
 
+__device__ float __log2f (float x)
 
+__device__ float __logf (float x)
 
+__device__ float __powf (float base, float exponent)
 
+__device__ void __sincosf (float x, float *s, float *c)
 
+__device__ float __sinf (float x)
 
+__device__ float __tanf (float x)
 
+__device__ float __fmaf_rd (float x, float y, float z)
 
+__device__ float __fmaf_rn (float x, float y, float z)
 
+__device__ float __fmaf_ru (float x, float y, float z)
 
+__device__ float __fmaf_rz (float x, float y, float z)
 
+__device__ float __frcp_rd (float x)
 
+__device__ float __frcp_rn (float x)
 
+__device__ float __frcp_ru (float x)
 
+__device__ float __frcp_rz (float x)
 
+__device__ double __dsqrt_rd (double x)
 
+__device__ double __dsqrt_rn (double x)
 
+__device__ double __dsqrt_ru (double x)
 
+__device__ double __dsqrt_rz (double x)
 
+__device__ double __fma_rd (double x, double y, double z)
 
+__device__ double __fma_rn (double x, double y, double z)
 
+__device__ double __fma_ru (double x, double y, double z)
 
+__device__ double __fma_rz (double x, double y, double z)
 
+__device__ double __drcp_rd (double x)
 
+__device__ double __drcp_rn (double x)
 
+__device__ double __drcp_ru (double x)
 
+__device__ double __drcp_rz (double x)
 
__device__ void __threadfence_block (void)
 threadfence_block makes writes visible to threads running in same block. More...
 
__device__ void __threadfence (void)
 threadfence makes wirtes visible to other threads running on same GPU. More...
 
__device__ void __threadfence_system (void)
 threadfence_system makes writes to pinned system memory visible on host CPU. More...
 
+__device__ unsigned __hip_ds_bpermute (int index, unsigned src)
 
+__device__ float __hip_ds_bpermutef (int index, float src)
 
+__device__ unsigned __hip_ds_permute (int index, unsigned src)
 
+__device__ float __hip_ds_permutef (int index, float src)
 
+__device__ unsigned __hip_ds_swizzle (unsigned int src, int pattern)
 
+__device__ float __hip_ds_swizzlef (float src, int pattern)
 
+__device__ int __hip_move_dpp (int src, int dpp_ctrl, int row_mask, int bank_mask, bool bound_ctrl)
 
+__device__ void * __hip_hc_malloc (size_t)
 
+__device__ void * __hip_hc_free (void *ptr)
 
+__device__ char4 __hip_hc_add8pk (char4, char4)
 
+__device__ char4 __hip_hc_sub8pk (char4, char4)
 
+__device__ char4 __hip_hc_mul8pk (char4, char4)
 
+ + + + + + + + + +

+Variables

+int HIP_TRACE_API
 
+const int warpSize
 
float
 
double
 
+

Detailed Description

+

Contains definitions of APIs for HIP runtime.

+

Macro Definition Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
#define HIP_DYNAMIC_SHARED( type,
 var 
)
+
+Value:
__attribute__((address_space(3))) type* var = \
+
(__attribute__((address_space(3))) type*)__get_dynamicgroupbaseptr(); \
+

extern shared

+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__runtime_8h_source.html b/docs/RuntimeAPI/html/hcc__detail_2hip__runtime_8h_source.html new file mode 100644 index 0000000000..7ad654c0d0 --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__runtime_8h_source.html @@ -0,0 +1,915 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_runtime.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_runtime.h
+
+
+Go to the documentation of this file.
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
28 //#pragma once
+
29 #ifndef HIP_RUNTIME_H
+
30 #define HIP_RUNTIME_H
+
31 
+
32 //---
+
33 // Top part of file can be compiled with any compiler
+
34 
+
35 
+
36 //#include <cstring>
+
37 #if __cplusplus
+
38 #include <cmath>
+
39 #else
+
40 #include <math.h>
+
41 #include <string.h>
+
42 #include <stddef.h>
+
43 #endif
+
44 // Define NVCC_COMPAT for CUDA compatibility
+
45 #define NVCC_COMPAT
+
46 #define CUDA_SUCCESS hipSuccess
+
47 
+
48 #include <hip/hip_runtime_api.h>
+
49 //#include "hip/hcc_detail/hip_hcc.h"
+
50 //---
+
51 // Remainder of this file only compiles with HCC
+
52 #ifdef __HCC__
+
53 #include <grid_launch.h>
+
54 
+
55 #if defined (GRID_LAUNCH_VERSION) and (GRID_LAUNCH_VERSION >= 20)
+
56 // Use field names for grid_launch 2.0 structure, if HCC supports GL 2.0.
+
57 #else
+
58 #error (HCC must support GRID_LAUNCH_20)
+
59 #endif
+
60 
+
61 extern int HIP_TRACE_API;
+
62 
+
63 //TODO-HCC-GL - change this to typedef.
+
64 //typedef grid_launch_parm hipLaunchParm ;
+
65 #define hipLaunchParm grid_launch_parm
+
66 #ifdef __cplusplus
+
67 //#include <hip/hcc_detail/hip_texture.h>
+
68 #include <hip/hcc_detail/hip_ldg.h>
+
69 #endif
+ +
71 // TODO-HCC remove old definitions ; ~1602 hcc supports __HCC_ACCELERATOR__ define.
+
72 #if defined (__KALMAR_ACCELERATOR__) && !defined (__HCC_ACCELERATOR__)
+
73 #define __HCC_ACCELERATOR__ __KALMAR_ACCELERATOR__
+
74 #endif
+
75 
+
76 // Feature tests:
+
77 #if defined(__HCC_ACCELERATOR__) && (__HCC_ACCELERATOR__ != 0)
+
78 // Device compile and not host compile:
+
79 
+
80 //TODO-HCC enable __HIP_ARCH_HAS_ATOMICS__ when HCC supports these.
+
81  // 32-bit Atomics:
+
82 #define __HIP_ARCH_HAS_GLOBAL_INT32_ATOMICS__ (1)
+
83 #define __HIP_ARCH_HAS_GLOBAL_FLOAT_ATOMIC_EXCH__ (1)
+
84 #define __HIP_ARCH_HAS_SHARED_INT32_ATOMICS__ (1)
+
85 #define __HIP_ARCH_HAS_SHARED_FLOAT_ATOMIC_EXCH__ (1)
+
86 #define __HIP_ARCH_HAS_FLOAT_ATOMIC_ADD__ (0)
+
87 
+
88 // 64-bit Atomics:
+
89 #define __HIP_ARCH_HAS_GLOBAL_INT64_ATOMICS__ (1)
+
90 #define __HIP_ARCH_HAS_SHARED_INT64_ATOMICS__ (0)
+
91 
+
92 // Doubles
+
93 #define __HIP_ARCH_HAS_DOUBLES__ (1)
+
94 
+
95 //warp cross-lane operations:
+
96 #define __HIP_ARCH_HAS_WARP_VOTE__ (1)
+
97 #define __HIP_ARCH_HAS_WARP_BALLOT__ (1)
+
98 #define __HIP_ARCH_HAS_WARP_SHUFFLE__ (1)
+
99 #define __HIP_ARCH_HAS_WARP_FUNNEL_SHIFT__ (0)
+
100 
+
101 //sync
+
102 #define __HIP_ARCH_HAS_THREAD_FENCE_SYSTEM__ (0)
+
103 #define __HIP_ARCH_HAS_SYNC_THREAD_EXT__ (0)
+
104 
+
105 // misc
+
106 #define __HIP_ARCH_HAS_SURFACE_FUNCS__ (0)
+
107 #define __HIP_ARCH_HAS_3DGRID__ (1)
+
108 #define __HIP_ARCH_HAS_DYNAMIC_PARALLEL__ (0)
+
109 
+
110 #endif /* Device feature flags */
+
111 
+
112 
+
113 //TODO-HCC this is currently ignored by HCC target of HIP
+
114 #define __launch_bounds__(requiredMaxThreadsPerBlock, minBlocksPerMultiprocessor)
+
115 
+
116 // Detect if we are compiling C++ mode or C mode
+
117 #if defined(__cplusplus)
+
118 #define __HCC_CPP__
+
119 #elif defined(__STDC_VERSION__)
+
120 #define __HCC_C__
+
121 #endif
+
122 
+
123 __device__ float acosf(float x);
+
124 __device__ float acoshf(float x);
+
125 __device__ float asinf(float x);
+
126 __device__ float asinhf(float x);
+
127 __device__ float atan2f(float y, float x);
+
128 __device__ float atanf(float x);
+
129 __device__ float atanhf(float x);
+
130 __device__ float cbrtf(float x);
+
131 __device__ float ceilf(float x);
+
132 __device__ float copysignf(float x, float y);
+
133 __device__ float coshf(float x);
+
134 __device__ float cyl_bessel_i0f(float x);
+
135 __device__ float cyl_bessel_i1f(float x);
+
136 __device__ float erfcf(float x);
+
137 __device__ float erfcinvf(float y);
+
138 __host__ float erfcinvf(float y);
+
139 __device__ float erfcxf(float x);
+
140 __host__ float erfcxf(float x);
+
141 __device__ float erff(float x);
+
142 __device__ float erfinvf(float y);
+
143 __host__ float erfinvf(float y);
+
144 __device__ float exp2f(float x);
+
145 __device__ float expm1f(float x);
+
146 __device__ float fabsf(float x);
+
147 __device__ float fdimf(float x, float y);
+
148 __device__ __host__ float fdividef(float x, float y);
+
149 __device__ float floorf(float x);
+
150 __device__ float fmaf(float x, float y, float z);
+
151 __device__ float fmaxf(float x, float y);
+
152 __device__ float fminf(float x, float y);
+
153 __device__ float fmodf(float x, float y);
+
154 __device__ float frexpf(float x, float y);
+
155 __device__ float hypotf(float x, float y);
+
156 __device__ float ilogbf(float x);
+
157 __host__ __device__ unsigned isfinite(float a);
+
158 __device__ unsigned isinf(float a);
+
159 __device__ unsigned isnan(float a);
+
160 __device__ float j0f(float x);
+
161 __device__ float j1f(float x);
+
162 __device__ float jnf(int n, float x);
+
163 __device__ float ldexpf(float x, int exp);
+
164 __device__ float lgammaf(float x);
+
165 __device__ long long int llrintf(float x);
+
166 __device__ long long int llroundf(float x);
+
167 __device__ float log1pf(float x);
+
168 __device__ float logbf(float x);
+
169 __device__ long int lrintf(float x);
+
170 __device__ long int lroundf(float x);
+
171 __device__ float modff(float x, float *iptr);
+
172 __device__ float nanf(const char* tagp);
+
173 __device__ float nearbyintf(float x);
+
174 __device__ float nextafterf(float x, float y);
+
175 __device__ float norm3df(float a, float b, float c);
+
176 __host__ float norm3df(float a, float b, float c);
+
177 __device__ float norm4df(float a, float b, float c, float d);
+
178 __host__ float norm4df(float a, float b, float c, float d);
+
179 __device__ float normcdff(float y);
+
180 __host__ float normcdff(float y);
+
181 __device__ float normcdfinvf(float y);
+
182 __host__ float normcdfinvf(float y);
+
183 __device__ float normf(int dim, const float *a);
+
184 __device__ float rcbrtf(float x);
+
185 __host__ float rcbrtf(float x);
+
186 __device__ float remainderf(float x, float y);
+
187 __device__ float remquof(float x, float y, int *quo);
+
188 __device__ float rhypotf(float x, float y);
+
189 __host__ float rhypotf(float x, float y);
+
190 __device__ float rintf(float x);
+
191 __device__ float rnorm3df(float a, float b, float c);
+
192 __host__ float rnorm3df(float a, float b, float c);
+
193 __device__ float rnorm4df(float a, float b, float c, float d);
+
194 __host__ float rnorm4df(float a, float b, float c, float d);
+
195 __device__ float rnormf(int dim, const float* a);
+
196 __host__ float rnormf(int dim, const float* a);
+
197 __device__ float roundf(float x);
+
198 __device__ float rsqrtf(float x);
+
199 __device__ float scalblnf(float x, long int n);
+
200 __device__ float scalbnf(float x, int n);
+
201 __host__ __device__ unsigned signbit(float a);
+
202 __device__ void sincospif(float x, float *sptr, float *cptr);
+
203 __host__ void sincospif(float x, float *sptr, float *cptr);
+
204 __device__ float sinhf(float x);
+
205 __device__ float sinpif(float x);
+
206 __device__ float sqrtf(float x);
+
207 __device__ float tanhf(float x);
+
208 __device__ float tgammaf(float x);
+
209 __device__ float truncf(float x);
+
210 __device__ float y0f(float x);
+
211 __device__ float y1f(float x);
+
212 __device__ float ynf(int n, float x);
+
213 
+
214 __host__ __device__ float cospif(float x);
+
215 __host__ __device__ float sinpif(float x);
+
216 __device__ float sqrtf(float x);
+
217 __host__ __device__ float rsqrtf(float x);
+
218 
+
219 __device__ double acos(double x);
+
220 __device__ double acosh(double x);
+
221 __device__ double asin(double x);
+
222 __device__ double asinh(double x);
+
223 __device__ double atan(double x);
+
224 __device__ double atan2(double y, double x);
+
225 __device__ double atanh(double x);
+
226 __device__ double cbrt(double x);
+
227 __device__ double ceil(double x);
+
228 __device__ double copysign(double x, double y);
+
229 __device__ double cos(double x);
+
230 __device__ double cosh(double x);
+
231 __host__ __device__ double cospi(double x);
+
232 __device__ double cyl_bessel_i0(double x);
+
233 __device__ double cyl_bessel_i1(double x);
+
234 __device__ double erf(double x);
+
235 __device__ double erfc(double x);
+
236 __device__ double erfcinv(double y);
+
237 __device__ double erfcx(double x);
+
238 __device__ double erfinv(double x);
+
239 __device__ double exp(double x);
+
240 __device__ double exp10(double x);
+
241 __device__ double exp2(double x);
+
242 __device__ double expm1(double x);
+
243 __device__ double fabs(double x);
+
244 __device__ double fdim(double x, double y);
+
245 __device__ double fdivide(double x, double y);
+
246 __device__ double floor(double x);
+
247 __device__ double fma(double x, double y, double z);
+
248 __device__ double fmax(double x, double y);
+
249 __device__ double fmin(double x, double y);
+
250 __device__ double fmod(double x, double y);
+
251 __device__ double frexp(double x, int *nptr);
+
252 __device__ double hypot(double x, double y);
+
253 __device__ double ilogb(double x);
+
254 __host__ __device__ unsigned isfinite(double x);
+
255 __device__ unsigned isinf(double x);
+
256 __device__ unsigned isnan(double x);
+
257 __device__ double j0(double x);
+
258 __device__ double j1(double x);
+
259 __device__ double jn(int n, double x);
+
260 __device__ double ldexp(double x, int exp);
+
261 __device__ double lgamma(double x);
+
262 __device__ long long llrint(double x);
+
263 __device__ long long llround(double x);
+
264 __device__ double log(double x);
+
265 __device__ double log10(double x);
+
266 __device__ double log1p(double x);
+
267 __device__ double log2(double x);
+
268 __device__ double logb(double x);
+
269 __device__ long int lrint(double x);
+
270 __device__ long int lround(double x);
+
271 __device__ double modf(double x, double *iptr);
+
272 __device__ double nan(const char* tagp);
+
273 __device__ double nearbyint(double x);
+
274 __device__ double nextafter(double x, double y);
+
275 __device__ double norm(int dim, const double* t);
+
276 __device__ double norm3d(double a, double b, double c);
+
277 __host__ double norm3d(double a, double b, double c);
+
278 __device__ double norm4d(double a, double b, double c, double d);
+
279 __host__ double norm4d(double a, double b, double c, double d);
+
280 __device__ double normcdf(double y);
+
281 __host__ double normcdf(double y);
+
282 __device__ double normcdfinv(double y);
+
283 __host__ double normcdfinv(double y);
+
284 __device__ double pow(double x, double y);
+
285 __device__ double rcbrt(double x);
+
286 __host__ double rcbrt(double x);
+
287 __device__ double remainder(double x, double y);
+
288 __device__ double remquo(double x, double y, int *quo);
+
289 __device__ double rhypot(double x, double y);
+
290 __host__ double rhypot(double x, double y);
+
291 __device__ double rint(double x);
+
292 __device__ double rnorm(int dim, const double* t);
+
293 __host__ double rnorm(int dim, const double* t);
+
294 __device__ double rnorm3d(double a, double b, double c);
+
295 __host__ double rnorm3d(double a, double b, double c);
+
296 __device__ double rnorm4d(double a, double b, double c, double d);
+
297 __host__ double rnorm4d(double a, double b, double c, double d);
+
298 __device__ double round(double x);
+
299 __host__ __device__ double rsqrt(double x);
+
300 __device__ double scalbln(double x, long int n);
+
301 __device__ double scalbn(double x, int n);
+
302 __host__ __device__ unsigned signbit(double a);
+
303 __device__ double sin(double a);
+
304 __device__ void sincos(double x, double *sptr, double *cptr);
+
305 __device__ void sincospi(double x, double *sptr, double *cptr);
+
306 __host__ void sincospi(double x, double *sptr, double *cptr);
+
307 __device__ double sinh(double x);
+
308 __host__ __device__ double sinpi(double x);
+
309 __device__ double sqrt(double x);
+
310 __device__ double tan(double x);
+
311 __device__ double tanh(double x);
+
312 __device__ double tgamma(double x);
+
313 __device__ double trunc(double x);
+
314 __device__ double y0(double x);
+
315 __device__ double y1(double y);
+
316 __device__ double yn(int n, double x);
+
317 
+
318 __host__ double erfcinv(double y);
+
319 __host__ double erfcx(double x);
+
320 __host__ double erfinv(double y);
+
321 __host__ double fdivide(double x, double y);
+
322 
+
323 // TODO - hipify-clang - change to use the function call.
+
324 //#define warpSize hc::__wavesize()
+
325 extern const int warpSize;
+
326 
+
327 
+
328 #define clock_t long long int
+
329 __device__ long long int clock64();
+
330 __device__ clock_t clock();
+
331 
+
332 //atomicAdd()
+
333 __device__ int atomicAdd(int* address, int val);
+
334 __device__ unsigned int atomicAdd(unsigned int* address,
+
335  unsigned int val);
+
336 
+
337 __device__ unsigned long long int atomicAdd(unsigned long long int* address,
+
338  unsigned long long int val);
+
339 
+
340 __device__ float atomicAdd(float* address, float val);
+
341 
+
342 
+
343 //atomicSub()
+
344 __device__ int atomicSub(int* address, int val);
+
345 
+
346 __device__ unsigned int atomicSub(unsigned int* address,
+
347  unsigned int val);
+
348 
+
349 
+
350 //atomicExch()
+
351 __device__ int atomicExch(int* address, int val);
+
352 
+
353 __device__ unsigned int atomicExch(unsigned int* address,
+
354  unsigned int val);
+
355 
+
356 __device__ unsigned long long int atomicExch(unsigned long long int* address,
+
357  unsigned long long int val);
+
358 
+
359 __device__ float atomicExch(float* address, float val);
+
360 
+
361 
+
362 //atomicMin()
+
363 __device__ int atomicMin(int* address, int val);
+
364 __device__ unsigned int atomicMin(unsigned int* address,
+
365  unsigned int val);
+
366 __device__ unsigned long long int atomicMin(unsigned long long int* address,
+
367  unsigned long long int val);
+
368 
+
369 
+
370 //atomicMax()
+
371 __device__ int atomicMax(int* address, int val);
+
372 __device__ unsigned int atomicMax(unsigned int* address,
+
373  unsigned int val);
+
374 __device__ unsigned long long int atomicMax(unsigned long long int* address,
+
375  unsigned long long int val);
+
376 
+
377 
+
378 //atomicCAS()
+
379 __device__ int atomicCAS(int* address, int compare, int val);
+
380 __device__ unsigned int atomicCAS(unsigned int* address,
+
381  unsigned int compare,
+
382  unsigned int val);
+
383 __device__ unsigned long long int atomicCAS(unsigned long long int* address,
+
384  unsigned long long int compare,
+
385  unsigned long long int val);
+
386 
+
387 
+
388 //atomicAnd()
+
389 __device__ int atomicAnd(int* address, int val);
+
390 __device__ unsigned int atomicAnd(unsigned int* address,
+
391  unsigned int val);
+
392 __device__ unsigned long long int atomicAnd(unsigned long long int* address,
+
393  unsigned long long int val);
+
394 
+
395 
+
396 //atomicOr()
+
397 __device__ int atomicOr(int* address, int val);
+
398 __device__ unsigned int atomicOr(unsigned int* address,
+
399  unsigned int val);
+
400 __device__ unsigned long long int atomicOr(unsigned long long int* address,
+
401  unsigned long long int val);
+
402 
+
403 
+
404 //atomicXor()
+
405 __device__ int atomicXor(int* address, int val);
+
406 __device__ unsigned int atomicXor(unsigned int* address,
+
407  unsigned int val);
+
408 __device__ unsigned long long int atomicXor(unsigned long long int* address,
+
409  unsigned long long int val);
+
410 
+
411 //atomicInc()
+
412 __device__ unsigned int atomicInc(unsigned int* address,
+
413  unsigned int val);
+
414 
+
415 
+
416 //atomicDec()
+
417 __device__ unsigned int atomicDec(unsigned int* address,
+
418  unsigned int val);
+
419 
+
420 //__mul24 __umul24
+
421 __device__ int __mul24(int arg1, int arg2);
+
422 __device__ unsigned int __umul24(unsigned int arg1, unsigned int arg2);
+
423 
+
424 // integer intrinsic function __poc __clz __ffs __brev
+
425 __device__ unsigned int __popc( unsigned int input);
+
426 __device__ unsigned int __popcll( unsigned long long int input);
+
427 __device__ unsigned int __clz(unsigned int input);
+
428 __device__ unsigned int __clzll(unsigned long long int input);
+
429 __device__ unsigned int __clz(int input);
+
430 __device__ unsigned int __clzll(long long int input);
+
431 __device__ unsigned int __ffs(unsigned int input);
+
432 __device__ unsigned int __ffsll(unsigned long long int input);
+
433 __device__ unsigned int __ffs(int input);
+
434 __device__ unsigned int __ffsll(long long int input);
+
435 __device__ unsigned int __brev( unsigned int input);
+
436 __device__ unsigned long long int __brevll( unsigned long long int input);
+
437 
+
438 
+
439 // warp vote function __all __any __ballot
+
440 __device__ int __all( int input);
+
441 __device__ int __any( int input);
+
442 __device__ unsigned long long int __ballot( int input);
+
443 
+
444 // warp shuffle functions
+
445 #ifdef __cplusplus
+
446 __device__ int __shfl(int input, int lane, int width=warpSize);
+
447 __device__ int __shfl_up(int input, unsigned int lane_delta, int width=warpSize);
+
448 __device__ int __shfl_down(int input, unsigned int lane_delta, int width=warpSize);
+
449 __device__ int __shfl_xor(int input, int lane_mask, int width=warpSize);
+
450 __device__ float __shfl(float input, int lane, int width=warpSize);
+
451 __device__ float __shfl_up(float input, unsigned int lane_delta, int width=warpSize);
+
452 __device__ float __shfl_down(float input, unsigned int lane_delta, int width=warpSize);
+
453 __device__ float __shfl_xor(float input, int lane_mask, int width=warpSize);
+
454 #else
+
455 __device__ int __shfl(int input, int lane, int width);
+
456 __device__ int __shfl_up(int input, unsigned int lane_delta, int width);
+
457 __device__ int __shfl_down(int input, unsigned int lane_delta, int width);
+
458 __device__ int __shfl_xor(int input, int lane_mask, int width);
+
459 __device__ float __shfl(float input, int lane, int width);
+
460 __device__ float __shfl_up(float input, unsigned int lane_delta, int width);
+
461 __device__ float __shfl_down(float input, unsigned int lane_delta, int width);
+
462 __device__ float __shfl_xor(float input, int lane_mask, int width);
+
463 #endif
+
464 
+
465 __host__ __device__ int min(int arg1, int arg2);
+
466 __host__ __device__ int max(int arg1, int arg2);
+
467 
+
468 __device__ __attribute__((address_space(3))) void* __get_dynamicgroupbaseptr();
+
469 
+
470 //TODO - add a couple fast math operations here, the set here will grow :
+
471 
+
472 // Single Precision Precise Math
+
473 __device__ float __hip_precise_cosf(float);
+
474 __device__ float __hip_precise_exp10f(float);
+
475 __device__ float __hip_precise_expf(float);
+
476 __device__ float __hip_precise_frsqrt_rn(float);
+
477 __device__ float __hip_precise_fsqrt_rd(float);
+
478 __device__ float __hip_precise_fsqrt_rn(float);
+
479 __device__ float __hip_precise_fsqrt_ru(float);
+
480 __device__ float __hip_precise_fsqrt_rz(float);
+
481 __device__ float __hip_precise_log10f(float);
+
482 __device__ float __hip_precise_log2f(float);
+
483 __device__ float __hip_precise_logf(float);
+
484 __device__ float __hip_precise_powf(float, float);
+
485 __device__ void __hip_precise_sincosf(float,float*,float*);
+
486 __device__ float __hip_precise_sinf(float);
+
487 __device__ float __hip_precise_tanf(float);
+
488 
+
489 // Double Precision Precise Math
+
490 __device__ double __hip_precise_dsqrt_rd(double);
+
491 __device__ double __hip_precise_dsqrt_rn(double);
+
492 __device__ double __hip_precise_dsqrt_ru(double);
+
493 __device__ double __hip_precise_dsqrt_rz(double);
+
494 
+
495 // Single Precision Fast Math
+
496 extern __attribute__((const)) float __hip_fast_cosf(float) __asm("llvm.cos.f32");
+
497 extern __attribute__((const)) float __hip_fast_exp2f(float) __asm("llvm.exp2.f32");
+
498 __device__ float __hip_fast_exp10f(float);
+
499 __device__ float __hip_fast_expf(float);
+
500 __device__ float __hip_fast_frsqrt_rn(float);
+
501 extern __attribute__((const)) float __hip_fast_fsqrt_rd(float) __asm("llvm.sqrt.f32");
+
502 __device__ float __hip_fast_fsqrt_rn(float);
+
503 __device__ float __hip_fast_fsqrt_ru(float);
+
504 __device__ float __hip_fast_fsqrt_rz(float);
+
505 __device__ float __hip_fast_log10f(float);
+
506 extern __attribute__((const)) float __hip_fast_log2f(float) __asm("llvm.log2.f32");
+
507 __device__ float __hip_fast_logf(float);
+
508 __device__ float __hip_fast_powf(float, float);
+
509 __device__ void __hip_fast_sincosf(float,float*,float*);
+
510 extern __attribute__((const)) float __hip_fast_sinf(float) __asm("llvm.sin.f32");
+
511 __device__ float __hip_fast_tanf(float);
+
512 extern __attribute__((const)) float __hip_fast_fmaf(float,float,float) __asm("llvm.fma.f32");
+
513 extern __attribute__((const)) float __hip_fast_frcp(float) __asm("llvm.amdgcn.rcp.f32");
+
514 
+
515 extern __attribute__((const)) double __hip_fast_dsqrt(double) __asm("llvm.sqrt.f64");
+
516 extern __attribute__((const)) double __hip_fast_fma(double,double,double) __asm("llvm.fma.f64");
+
517 extern __attribute__((const)) double __hip_fast_drcp(double) __asm("llvm.amdgcn.rcp.f64");
+
518 
+
519 #ifdef HIP_FAST_MATH
+
520 // Single Precision Precise Math when enabled
+
521 
+
522 __device__ inline float cosf(float x) {
+
523  return __hip_fast_cosf(x);
+
524 }
+
525 
+
526 __device__ inline float exp10f(float x) {
+
527  return __hip_fast_exp10f(x);
+
528 }
+
529 
+
530 __device__ inline float expf(float x) {
+
531  return __hip_fast_expf(x);
+
532 }
+
533 
+
534 __device__ inline float log10f(float x) {
+
535  return __hip_fast_log10f(x);
+
536 }
+
537 
+
538 __device__ inline float log2f(float x) {
+
539  return __hip_fast_log2f(x);
+
540 }
+
541 
+
542 __device__ inline float logf(float x) {
+
543  return __hip_fast_logf(x);
+
544 }
+
545 
+
546 __device__ inline float powf(float base, float exponent) {
+
547  return __hip_fast_powf(base, exponent);
+
548 }
+
549 
+
550 __device__ inline void sincosf(float x, float *s, float *c) {
+
551  return __hip_fast_sincosf(x, s, c);
+
552 }
+
553 
+
554 __device__ inline float sinf(float x) {
+
555  return __hip_fast_sinf(x);
+
556 }
+
557 
+
558 __device__ inline float tanf(float x) {
+
559  return __hip_fast_tanf(x);
+
560 }
+
561 
+
562 #else
+
563 
+
564 __device__ float sinf(float);
+
565 __device__ float cosf(float);
+
566 __device__ float tanf(float);
+
567 __device__ void sincosf(float, float*, float*);
+
568 __device__ float logf(float);
+
569 __device__ float log2f(float);
+
570 __device__ float log10f(float);
+
571 __device__ float expf(float);
+
572 __device__ float exp10f(float);
+
573 __device__ float powf(float, float);
+
574 
+
575 #endif
+
576 // Single Precision Fast Math
+
577 __device__ inline float __cosf(float x) {
+
578  return __hip_fast_cosf(x);
+
579 }
+
580 
+
581 __device__ inline float __exp10f(float x) {
+
582  return __hip_fast_exp10f(x);
+
583 }
+
584 
+
585 __device__ inline float __expf(float x) {
+
586  return __hip_fast_expf(x);
+
587 }
+
588 
+
589 __device__ inline float __frsqrt_rn(float x) {
+
590  return __hip_fast_frsqrt_rn(x);
+
591 }
+
592 
+
593 __device__ inline float __fsqrt_rd(float x) {
+
594  return __hip_fast_fsqrt_rd(x);
+
595 }
+
596 
+
597 __device__ inline float __fsqrt_rn(float x) {
+
598  return __hip_fast_fsqrt_rn(x);
+
599 }
+
600 
+
601 __device__ inline float __fsqrt_ru(float x) {
+
602  return __hip_fast_fsqrt_ru(x);
+
603 }
+
604 
+
605 __device__ inline float __fsqrt_rz(float x) {
+
606  return __hip_fast_fsqrt_rz(x);
+
607 }
+
608 
+
609 __device__ inline float __log10f(float x) {
+
610  return __hip_fast_log10f(x);
+
611 }
+
612 
+
613 __device__ inline float __log2f(float x) {
+
614  return __hip_fast_log2f(x);
+
615 }
+
616 
+
617 __device__ inline float __logf(float x) {
+
618  return __hip_fast_logf(x);
+
619 }
+
620 
+
621 __device__ inline float __powf(float base, float exponent) {
+
622  return __hip_fast_powf(base, exponent);
+
623 }
+
624 
+
625 __device__ inline void __sincosf(float x, float *s, float *c) {
+
626  return __hip_fast_sincosf(x, s, c);
+
627 }
+
628 
+
629 __device__ inline float __sinf(float x) {
+
630  return __hip_fast_sinf(x);
+
631 }
+
632 
+
633 __device__ inline float __tanf(float x) {
+
634  return __hip_fast_tanf(x);
+
635 }
+
636 
+
637 __device__ inline float __fmaf_rd(float x, float y, float z) {
+
638  return __hip_fast_fmaf(x, y, z);
+
639 }
+
640 
+
641 __device__ inline float __fmaf_rn(float x, float y, float z) {
+
642  return __hip_fast_fmaf(x, y, z);
+
643 }
+
644 
+
645 __device__ inline float __fmaf_ru(float x, float y, float z) {
+
646  return __hip_fast_fmaf(x, y, z);
+
647 }
+
648 
+
649 __device__ inline float __fmaf_rz(float x, float y, float z) {
+
650  return __hip_fast_fmaf(x, y, z);
+
651 }
+
652 
+
653 __device__ inline float __frcp_rd(float x) {
+
654  return __hip_fast_frcp(x);
+
655 }
+
656 
+
657 __device__ inline float __frcp_rn(float x) {
+
658  return __hip_fast_frcp(x);
+
659 }
+
660 
+
661 __device__ inline float __frcp_ru(float x) {
+
662  return __hip_fast_frcp(x);
+
663 }
+
664 
+
665 __device__ inline float __frcp_rz(float x) {
+
666  return __hip_fast_frcp(x);
+
667 }
+
668 
+
669 __device__ inline double __dsqrt_rd(double x) {
+
670  return __hip_fast_dsqrt(x);
+
671 }
+
672 
+
673 __device__ inline double __dsqrt_rn(double x) {
+
674  return __hip_fast_dsqrt(x);
+
675 }
+
676 
+
677 __device__ inline double __dsqrt_ru(double x) {
+
678  return __hip_fast_dsqrt(x);
+
679 }
+
680 
+
681 __device__ inline double __dsqrt_rz(double x) {
+
682  return __hip_fast_dsqrt(x);
+
683 }
+
684 
+
685 __device__ inline double __fma_rd(double x, double y, double z) {
+
686  return __hip_fast_fma(x, y, z);
+
687 }
+
688 
+
689 __device__ inline double __fma_rn(double x, double y, double z) {
+
690  return __hip_fast_fma(x, y, z);
+
691 }
+
692 
+
693 __device__ inline double __fma_ru(double x, double y, double z) {
+
694  return __hip_fast_fma(x, y, z);
+
695 }
+
696 
+
697 __device__ inline double __fma_rz(double x, double y, double z) {
+
698  return __hip_fast_fma(x, y, z);
+
699 }
+
700 
+
701 __device__ inline double __drcp_rd(double x) {
+
702  return __hip_fast_drcp(x);
+
703 }
+
704 
+
705 __device__ inline double __drcp_rn(double x) {
+
706  return __hip_fast_drcp(x);
+
707 }
+
708 
+
709 __device__ inline double __drcp_ru(double x) {
+
710  return __hip_fast_drcp(x);
+
711 }
+
712 
+
713 __device__ inline double __drcp_rz(double x) {
+
714  return __hip_fast_drcp(x);
+
715 }
+
716 
+
750 // __device__ void __threadfence_block(void);
+
751 extern "C" __device__ void __threadfence_block(void);
+
752 
+
762 // __device__ void __threadfence(void) __attribute__((deprecated("Provided for compile-time compatibility, not yet functional")));
+
763 extern "C" __device__ void __threadfence(void);
+
764 
+
774 //__device__ void __threadfence_system(void) __attribute__((deprecated("Provided with workaround configuration, see hip_kernel_language.md for details")));
+
775 __device__ void __threadfence_system(void) ;
+
776 
+
777 __device__ unsigned __hip_ds_bpermute(int index, unsigned src);
+
778 __device__ float __hip_ds_bpermutef(int index, float src);
+
779 __device__ unsigned __hip_ds_permute(int index, unsigned src);
+
780 __device__ float __hip_ds_permutef(int index, float src);
+
781 
+
782 __device__ unsigned __hip_ds_swizzle(unsigned int src, int pattern);
+
783 __device__ float __hip_ds_swizzlef(float src, int pattern);
+
784 
+
785 __device__ int __hip_move_dpp(int src, int dpp_ctrl, int row_mask, int bank_mask, bool bound_ctrl);
+
786 
+
787 // doxygen end Fence Fence
+
793 #define hipThreadIdx_x (hc_get_workitem_id(0))
+
794 #define hipThreadIdx_y (hc_get_workitem_id(1))
+
795 #define hipThreadIdx_z (hc_get_workitem_id(2))
+
796 
+
797 #define hipBlockIdx_x (hc_get_group_id(0))
+
798 #define hipBlockIdx_y (hc_get_group_id(1))
+
799 #define hipBlockIdx_z (hc_get_group_id(2))
+
800 
+
801 #define hipBlockDim_x (hc_get_group_size(0))
+
802 #define hipBlockDim_y (hc_get_group_size(1))
+
803 #define hipBlockDim_z (hc_get_group_size(2))
+
804 
+
805 #define hipGridDim_x (hc_get_num_groups(0))
+
806 #define hipGridDim_y (hc_get_num_groups(1))
+
807 #define hipGridDim_z (hc_get_num_groups(2))
+
808 
+
809 //extern "C" __device__ void* memcpy(void* dst, void* src, size_t size);
+
810 //extern "C" __device__ void* memset(void* ptr, uint8_t val, size_t size);
+
811 
+
812 extern "C" __device__ void* __hip_hc_malloc(size_t);
+
813 extern "C" __device__ void* __hip_hc_free(void *ptr);
+
814 
+
815 //extern "C" __device__ void* malloc(size_t size);
+
816 //extern "C" __device__ void* free(void *ptr);
+
817 
+
818 extern "C" __device__ char4 __hip_hc_add8pk(char4, char4);
+
819 extern "C" __device__ char4 __hip_hc_sub8pk(char4, char4);
+
820 extern "C" __device__ char4 __hip_hc_mul8pk(char4, char4);
+
821 
+
822 #define __syncthreads() hc_barrier(CLK_LOCAL_MEM_FENCE)
+
823 
+
824 #define HIP_KERNEL_NAME(...) __VA_ARGS__
+
825 #define HIP_SYMBOL(X) #X
+
826 
+
827 #ifdef __HCC_CPP__
+
828 extern hipStream_t ihipPreLaunchKernel(hipStream_t stream, dim3 grid, dim3 block, grid_launch_parm *lp, const char *kernelNameStr);
+
829 extern hipStream_t ihipPreLaunchKernel(hipStream_t stream, dim3 grid, size_t block, grid_launch_parm *lp, const char *kernelNameStr);
+
830 extern hipStream_t ihipPreLaunchKernel(hipStream_t stream, size_t grid, dim3 block, grid_launch_parm *lp, const char *kernelNameStr);
+
831 extern hipStream_t ihipPreLaunchKernel(hipStream_t stream, size_t grid, size_t block, grid_launch_parm *lp, const char *kernelNameStr);
+
832 extern void ihipPostLaunchKernel(const char *kernelName, hipStream_t stream, grid_launch_parm &lp);
+
833 
+
834 
+
835 // Due to multiple overloaded versions of ihipPreLaunchKernel, the numBlocks3D and blockDim3D can be either size_t or dim3 types
+
836 #define hipLaunchKernel(_kernelName, _numBlocks3D, _blockDim3D, _groupMemBytes, _stream, ...) \
+
837 do {\
+
838  grid_launch_parm lp;\
+
839  lp.dynamic_group_mem_bytes = _groupMemBytes; \
+
840  hipStream_t trueStream = (ihipPreLaunchKernel(_stream, _numBlocks3D, _blockDim3D, &lp, #_kernelName)); \
+
841  _kernelName (lp, ##__VA_ARGS__);\
+
842  ihipPostLaunchKernel(#_kernelName, trueStream, lp);\
+
843 } while(0)
+
844 
+
845 
+
846 #elif defined (__HCC_C__)
+
847 
+
848 //TODO - develop C interface.
+
849 
+
850 #endif
+
851 
+
856 // Macro to replace extern __shared__ declarations
+
857 // to local variable definitions
+
858 #define HIP_DYNAMIC_SHARED(type, var) \
+
859  __attribute__((address_space(3))) type* var = \
+
860  (__attribute__((address_space(3))) type*)__get_dynamicgroupbaseptr(); \
+
861 
+
862 #define HIP_DYNAMIC_SHARED_ATTRIBUTE __attribute__((address_space(3)))
+
863 
+
864 #endif // __HCC__
+
865 
+
866 
+
871 //extern int HIP_PRINT_ENV ; ///< Print all HIP-related environment variables.
+
872 //extern int HIP_TRACE_API; ///< Trace HIP APIs.
+
873 //extern int HIP_LAUNCH_BLOCKING ; ///< Make all HIP APIs host-synchronous
+
874 
+
880 // End doxygen API:
+
888 #endif
+
__device__ void __threadfence(void)
threadfence makes wirtes visible to other threads running on same GPU.
+
TODO-doc.
+
Definition: hip_runtime_api.h:151
+
#define __host__
Definition: host_defines.h:35
+
__device__ void __threadfence_system(void)
threadfence_system makes writes to pinned system memory visible on host CPU.
Definition: device_util.cpp:2600
+
Definition: hip_vector_types.h:140
+
__device__ void __threadfence_block(void)
threadfence_block makes writes visible to threads running in same block.
+
Definition: hip_hcc.h:463
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__runtime__api_8h.html b/docs/RuntimeAPI/html/hcc__detail_2hip__runtime__api_8h.html new file mode 100644 index 0000000000..5de643b669 --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__runtime__api_8h.html @@ -0,0 +1,589 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_runtime_api.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
hip_runtime_api.h File Reference
+
+
+ +

Contains C function APIs for HIP runtime. This file does not use any HCC builtin or special language extensions (-hc mode) ; those functions in hip_runtime.h. +More...

+
#include <stdint.h>
+#include <stddef.h>
+#include <hip/hcc_detail/host_defines.h>
+#include <hip/hip_runtime_api.h>
+
+

Go to the source code of this file.

+ + + + +

+Classes

struct  dim3
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Macros

+#define HIP_LAUNCH_PARAM_BUFFER_POINTER   ((void*) 0x01)
 
+#define HIP_LAUNCH_PARAM_BUFFER_SIZE   ((void*) 0x02)
 
+#define HIP_LAUNCH_PARAM_END   ((void*) 0x03)
 
+#define hipIpcMemLazyEnablePeerAccess   0
 
#define hipStreamDefault   0x00
 Flags that can be used with hipStreamCreateWithFlags. More...
 
+#define hipStreamNonBlocking   0x01
 Stream does not implicitly synchronize with null stream.
 
#define hipEventDefault   0x0
 Flags that can be used with hipEventCreateWithFlags: More...
 
+#define hipEventBlockingSync   0x1
 Waiting will yield CPU. Power-friendly and usage-friendly but may increase latency.
 
+#define hipEventDisableTiming   0x2
 Disable event's capability to record timing information. May improve performance.
 
#define hipEventInterprocess   0x4
 Event can support IPC. More...
 
+#define hipHostMallocDefault   0x0
 Flags that can be used with hipHostMalloc.
 
+#define hipHostMallocPortable   0x1
 
+#define hipHostMallocMapped   0x2
 
+#define hipHostMallocWriteCombined   0x4
 
#define hipHostRegisterDefault   0x0
 Flags that can be used with hipHostRegister. More...
 
+#define hipHostRegisterPortable   0x1
 Memory is considered registered by all contexts. HIP only supports one context so this is always assumed true.
 
+#define hipHostRegisterMapped   0x2
 Map the allocation into the address space for the current device. The device pointer can be obtained with hipHostGetDevicePointer.
 
+#define hipHostRegisterIoMemory   0x4
 Not supported.
 
+#define hipDeviceScheduleAuto   0x0
 Automatically select between Spin and Yield.
 
+#define hipDeviceScheduleSpin   0x1
 Dedicate a CPU core to spin-wait. Provides lowest latency, but burns a CPU core and may consume more power.
 
+#define hipDeviceScheduleYield   0x2
 Yield the CPU to the operating system when waiting. May increase latency, but lowers power and is friendlier to other threads in the system.
 
+#define hipDeviceScheduleBlockingSync   0x4
 
+#define hipDeviceScheduleMask   0x7
 
+#define hipDeviceMapHost   0x8
 
+#define hipDeviceLmemResizeToMax   0x16
 
+#define USE_PEER_NON_UNIFIED   1
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Typedefs

+typedef struct ihipCtx_thipCtx_t
 
+typedef struct ihipDevice_thipDevice_t
 
+typedef struct ihipStream_thipStream_t
 
+typedef struct ihipIpcMemHandle_thipIpcMemHandle_t
 
+typedef struct
+ihipIpcEventHandle_t * 
hipIpcEventHandle_t
 
+typedef struct ihipModule_thipModule_t
 
+typedef struct ihipFunction_thipFunction_t
 
+typedef void * hipDeviceptr_t
 
+typedef struct ihipEvent_thipEvent_t
 
typedef enum hipFuncCache_t hipFuncCache_t
 
typedef enum hipSharedMemConfig hipSharedMemConfig
 
typedef struct dim3 dim3
 
typedef enum hipMemcpyKind hipMemcpyKind
 
typedef void(* hipStreamCallback_t )(hipStream_t stream, hipError_t status, void *userData)
 
+ + + + + + + + + +

+Enumerations

enum  hipLimit_t { hipLimitMallocHeapSize = 0x02 + }
 
enum  hipFuncCache_t { hipFuncCachePreferNone, +hipFuncCachePreferShared, +hipFuncCachePreferL1, +hipFuncCachePreferEqual + }
 
enum  hipSharedMemConfig { hipSharedMemBankSizeDefault, +hipSharedMemBankSizeFourByte, +hipSharedMemBankSizeEightByte + }
 
enum  hipMemcpyKind {
+  hipMemcpyHostToHost = 0, +hipMemcpyHostToDevice = 1, +hipMemcpyDeviceToHost = 2, +hipMemcpyDeviceToDevice =3, +
+  hipMemcpyDefault = 4 +
+ }
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipDeviceSynchronize (void)
 Waits on all active streams on current device. More...
 
hipError_t hipDeviceReset (void)
 The state of current device is discarded and updated to a fresh state. More...
 
hipError_t hipSetDevice (int deviceId)
 Set default device to be used for subsequent hip API calls from this thread. More...
 
hipError_t hipGetDevice (int *deviceId)
 Return the default device id for the calling host thread. More...
 
hipError_t hipGetDeviceCount (int *count)
 Return number of compute-capable devices. More...
 
hipError_t hipDeviceGetAttribute (int *pi, hipDeviceAttribute_t attr, int deviceId)
 Query for a specific device attribute. More...
 
hipError_t hipGetDeviceProperties (hipDeviceProp_t *prop, int deviceId)
 Returns device properties. More...
 
hipError_t hipDeviceSetCacheConfig (hipFuncCache_t cacheConfig)
 Set L1/Shared cache partition. More...
 
hipError_t hipDeviceGetCacheConfig (hipFuncCache_t *cacheConfig)
 Set Cache configuration for a specific function. More...
 
hipError_t hipDeviceGetLimit (size_t *pValue, hipLimit_t limit)
 Get Resource limits of current device. More...
 
hipError_t hipFuncSetCacheConfig (hipFuncCache_t config)
 Set Cache configuration for a specific function. More...
 
hipError_t hipDeviceGetSharedMemConfig (hipSharedMemConfig *pConfig)
 Returns bank width of shared memory for current device. More...
 
hipError_t hipDeviceSetSharedMemConfig (hipSharedMemConfig config)
 The bank width of shared memory on current device is set. More...
 
hipError_t hipSetDeviceFlags (unsigned flags)
 The current device behavior is changed according the flags passed. More...
 
hipError_t hipChooseDevice (int *device, const hipDeviceProp_t *prop)
 Device which matches hipDeviceProp_t is returned. More...
 
hipError_t hipGetLastError (void)
 Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess. More...
 
hipError_t hipPeekAtLastError (void)
 Return last error returned by any HIP runtime API call. More...
 
const char * hipGetErrorName (hipError_t hip_error)
 Return name of the specified error code in text form. More...
 
const char * hipGetErrorString (hipError_t hipError)
 Return handy text string message to explain the error which occurred. More...
 
hipError_t hipStreamCreate (hipStream_t *stream)
 Create an asynchronous stream. More...
 
hipError_t hipStreamCreateWithFlags (hipStream_t *stream, unsigned int flags)
 Create an asynchronous stream. More...
 
hipError_t hipStreamDestroy (hipStream_t stream)
 Destroys the specified stream. More...
 
hipError_t hipStreamQuery (hipStream_t stream)
 Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not. More...
 
hipError_t hipStreamSynchronize (hipStream_t stream)
 Wait for all commands in stream to complete. More...
 
hipError_t hipStreamWaitEvent (hipStream_t stream, hipEvent_t event, unsigned int flags)
 Make the specified compute stream wait for an event. More...
 
hipError_t hipStreamGetFlags (hipStream_t stream, unsigned int *flags)
 Return flags associated with this stream. More...
 
hipError_t hipStreamAddCallback (hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags)
 Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each cudaStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished. More...
 
hipError_t hipEventCreateWithFlags (hipEvent_t *event, unsigned flags)
 Create an event with the specified flags. More...
 
hipError_t hipEventCreate (hipEvent_t *event)
 
hipError_t hipEventRecord (hipEvent_t event, hipStream_t stream)
 Record an event in the specified stream. More...
 
hipError_t hipEventDestroy (hipEvent_t event)
 Destroy the specified event. More...
 
hipError_t hipEventSynchronize (hipEvent_t event)
 Wait for an event to complete. More...
 
hipError_t hipEventElapsedTime (float *ms, hipEvent_t start, hipEvent_t stop)
 Return the elapsed time between two events. More...
 
hipError_t hipEventQuery (hipEvent_t event)
 Query event status. More...
 
hipError_t hipPointerGetAttributes (hipPointerAttribute_t *attributes, void *ptr)
 Return attributes for the specified pointer. More...
 
hipError_t hipMalloc (void **ptr, size_t size)
 Allocate memory on the default accelerator. More...
 
hipError_t hipMallocHost (void **ptr, size_t size) __attribute__((deprecated("use hipHostMalloc instead")))
 Allocate pinned host memory [Deprecated]. More...
 
hipError_t hipHostMalloc (void **ptr, size_t size, unsigned int flags)
 Allocate device accessible page locked host memory. More...
 
hipError_t hipHostAlloc (void **ptr, size_t size, unsigned int flags) __attribute__((deprecated("use hipHostMalloc instead")))
 Allocate device accessible page locked host memory [Deprecated]. More...
 
hipError_t hipHostGetDevicePointer (void **devPtr, void *hstPtr, unsigned int flags)
 Get Device pointer from Host Pointer allocated through hipHostMalloc. More...
 
hipError_t hipHostGetFlags (unsigned int *flagsPtr, void *hostPtr)
 Return flags associated with host pointer. More...
 
hipError_t hipHostRegister (void *hostPtr, size_t sizeBytes, unsigned int flags)
 Register host memory so it can be accessed from the current device. More...
 
hipError_t hipHostUnregister (void *hostPtr)
 Un-register host pointer. More...
 
hipError_t hipMallocPitch (void **ptr, size_t *pitch, size_t width, size_t height)
 
hipError_t hipFree (void *ptr)
 Free memory allocated by the hcc hip memory allocation API. This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned. More...
 
hipError_t hipFreeHost (void *ptr) __attribute__((deprecated("use hipHostFree instead")))
 Free memory allocated by the hcc hip host memory allocation API. [Deprecated]. More...
 
hipError_t hipHostFree (void *ptr)
 Free memory allocated by the hcc hip host memory allocation API This API performs an implicit hipDeviceSynchronize() call. If pointer is NULL, the hip runtime is initialized and hipSuccess is returned. More...
 
hipError_t hipMemcpy (void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind)
 Copy data from src to dst. More...
 
hipError_t hipMemcpyHtoD (hipDeviceptr_t dst, void *src, size_t sizeBytes)
 Copy data from Host to Device. More...
 
hipError_t hipMemcpyDtoH (void *dst, hipDeviceptr_t src, size_t sizeBytes)
 Copy data from Device to Host. More...
 
hipError_t hipMemcpyDtoD (hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
 Copy data from Device to Device. More...
 
hipError_t hipMemcpyHtoDAsync (hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream)
 Copy data from Host to Device asynchronously. More...
 
hipError_t hipMemcpyDtoHAsync (void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
 Copy data from Device to Host asynchronously. More...
 
hipError_t hipMemcpyDtoDAsync (hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
 Copy data from Device to Device asynchronously. More...
 
hipError_t hipMemcpyToSymbol (const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
 Copies sizeBytes bytes from the memory area pointed to by src to the memory area pointed to by offset bytes from the start of symbol symbol. More...
 
hipError_t hipMemcpyToSymbolAsync (const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
 Copies sizeBytes bytes from the memory area pointed to by src to the memory area pointed to by offset bytes from the start of symbol symbol. More...
 
hipError_t hipMemcpyAsync (void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream)
 Copy data from src to dst asynchronously. More...
 
hipError_t hipMemset (void *dst, int value, size_t sizeBytes)
 Copy data from src to dst asynchronously. More...
 
hipError_t hipMemsetAsync (void *dst, int value, size_t sizeBytes, hipStream_t stream)
 Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value value. More...
 
hipError_t hipMemGetInfo (size_t *free, size_t *total)
 Query memory info. Return snapshot of free memory, and total allocatable memory on the device. More...
 
hipError_t hipDeviceCanAccessPeer (int *canAccessPeer, int deviceId, int peerDeviceId)
 Determine if a device can access a peer's memory. More...
 
hipError_t hipDeviceEnablePeerAccess (int peerDeviceId, unsigned int flags)
 Enable direct access from current device's virtual address space to memory allocations physically located on a peer device. More...
 
hipError_t hipDeviceDisablePeerAccess (int peerDeviceId)
 Disable direct access from current device's virtual address space to memory allocations physically located on a peer device. More...
 
hipError_t hipMemGetAddressRange (hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr)
 Get information on memory allocations. More...
 
hipError_t hipMemcpyPeer (void *dst, int dstDeviceId, const void *src, int srcDeviceId, size_t sizeBytes)
 Copies memory from one device to memory on another device. More...
 
hipError_t hipMemcpyPeerAsync (void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream)
 Copies memory from one device to memory on another device. More...
 
hipError_t hipInit (unsigned int flags)
 Explicitly initializes the HIP runtime. More...
 
hipError_t hipCtxCreate (hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
 Create a context and set it as current/ default context. More...
 
hipError_t hipCtxDestroy (hipCtx_t ctx)
 Destroy a HIP context. More...
 
hipError_t hipCtxPopCurrent (hipCtx_t *ctx)
 Pop the current/default context and return the popped context. More...
 
hipError_t hipCtxPushCurrent (hipCtx_t ctx)
 Push the context to be set as current/ default context. More...
 
hipError_t hipCtxSetCurrent (hipCtx_t ctx)
 Set the passed context as current/default. More...
 
hipError_t hipCtxGetCurrent (hipCtx_t *ctx)
 Get the handle of the current/ default context. More...
 
hipError_t hipCtxGetDevice (hipDevice_t *device)
 Get the handle of the device associated with current/default context. More...
 
hipError_t hipCtxGetApiVersion (hipCtx_t ctx, int *apiVersion)
 Returns the approximate HIP api version. More...
 
hipError_t hipCtxGetCacheConfig (hipFuncCache_t *cacheConfig)
 Set Cache configuration for a specific function. More...
 
hipError_t hipCtxSetCacheConfig (hipFuncCache_t cacheConfig)
 Set L1/Shared cache partition. More...
 
hipError_t hipCtxSetSharedMemConfig (hipSharedMemConfig config)
 Set Shared memory bank configuration. More...
 
hipError_t hipCtxGetSharedMemConfig (hipSharedMemConfig *pConfig)
 Get Shared memory bank configuration. More...
 
hipError_t hipCtxSynchronize (void)
 Blocks until the default context has completed all preceding requested tasks. More...
 
hipError_t hipCtxGetFlags (unsigned int *flags)
 Return flags used for creating default context. More...
 
hipError_t hipCtxEnablePeerAccess (hipCtx_t peerCtx, unsigned int flags)
 Enables direct access to memory allocations in a peer context. More...
 
hipError_t hipCtxDisablePeerAccess (hipCtx_t peerCtx)
 Disable direct access from current context's virtual address space to memory allocations physically located on a peer context.Disables direct access to memory allocations in a peer context and unregisters any registered allocations. More...
 
hipError_t hipDeviceGet (hipDevice_t *device, int ordinal)
 Returns a handle to a compute device. More...
 
hipError_t hipDeviceComputeCapability (int *major, int *minor, hipDevice_t device)
 Returns the compute capability of the device. More...
 
hipError_t hipDeviceGetName (char *name, int len, hipDevice_t device)
 Returns an identifer string for the device. More...
 
hipError_t hipDeviceGetPCIBusId (char *pciBusId, int len, int device)
 Returns a PCI Bus Id string for the device, overloaded to take int device ID. More...
 
hipError_t hipDeviceGetByPCIBusId (int *device, const int *pciBusId)
 Returns a handle to a compute device. More...
 
hipError_t hipDeviceTotalMem (size_t *bytes, hipDevice_t device)
 Returns the total amount of memory on the device. More...
 
hipError_t hipDriverGetVersion (int *driverVersion)
 Returns the approximate HIP driver version. More...
 
hipError_t hipRuntimeGetVersion (int *runtimeVersion)
 Returns the approximate HIP Runtime version. More...
 
hipError_t hipModuleLoad (hipModule_t *module, const char *fname)
 Loads code object from file into a hipModule_t. More...
 
hipError_t hipModuleUnload (hipModule_t module)
 Frees the module. More...
 
hipError_t hipModuleGetFunction (hipFunction_t *function, hipModule_t module, const char *kname)
 Function with kname will be extracted if present in module. More...
 
hipError_t hipModuleGetGlobal (hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name)
 returns device memory pointer and size of the kernel present in the module with symbol name More...
 
hipError_t hipModuleLoadData (hipModule_t *module, const void *image)
 builds module from code object which resides in host memory. Image is pointer to that location. More...
 
hipError_t hipModuleLaunchKernel (hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void **kernelParams, void **extra)
 launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra More...
 
hipError_t hipProfilerStart ()
 Start recording of profiling information When using this API, start the profiler with profiling disabled. (–startdisabled) More...
 
hipError_t hipProfilerStop ()
 Stop recording of profiling information. When using this API, start the profiler with profiling disabled. (–startdisabled) More...
 
hipError_t hipIpcGetMemHandle (hipIpcMemHandle_t *handle, void *devPtr)
 Gets an interprocess memory handle for an existing device memory allocation. More...
 
hipError_t hipIpcOpenMemHandle (void **devPtr, hipIpcMemHandle_t handle, unsigned int flags)
 Opens an interprocess memory handle exported from another process and returns a device pointer usable in the local process. More...
 
hipError_t hipIpcCloseMemHandle (void *devPtr)
 Close memory mapped with hipIpcOpenMemHandle. More...
 
+

Detailed Description

+

Contains C function APIs for HIP runtime. This file does not use any HCC builtin or special language extensions (-hc mode) ; those functions in hip_runtime.h.

+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__runtime__api_8h_source.html b/docs/RuntimeAPI/html/hcc__detail_2hip__runtime__api_8h_source.html new file mode 100644 index 0000000000..16efd64a38 --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__runtime__api_8h_source.html @@ -0,0 +1,718 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_runtime_api.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_runtime_api.h
+
+
+Go to the documentation of this file.
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 //#pragma once
+
24 #ifndef HIP_RUNTIME_API_H
+
25 #define HIP_RUNTIME_API_H
+
26 
+
31 #include <stdint.h>
+
32 #include <stddef.h>
+
33 
+ +
35 #include <hip/hip_runtime_api.h>
+
36 //#include "hip/hip_hcc.h"
+
37 
+
38 #if defined (__HCC__) && (__hcc_workweek__ < 16155)
+
39 #error("This version of HIP requires a newer version of HCC.");
+
40 #endif
+
41 
+
42 #define HIP_LAUNCH_PARAM_BUFFER_POINTER ((void*) 0x01)
+
43 #define HIP_LAUNCH_PARAM_BUFFER_SIZE ((void*) 0x02)
+
44 #define HIP_LAUNCH_PARAM_END ((void*) 0x03)
+
45 
+
46 // Structure definitions:
+
47 #ifdef __cplusplus
+
48 extern "C" {
+
49 #endif
+
50 
+
51 //---
+
52 //API-visible structures
+
53 typedef struct ihipCtx_t *hipCtx_t;
+
54 
+
55 // Note many APIs also use integer deviceIds as an alternative to the device pointer:
+
56 typedef struct ihipDevice_t *hipDevice_t;
+
57 
+
58 typedef struct ihipStream_t *hipStream_t;
+
59 
+
60 //TODO: IPC implementation
+
61 
+
62 #define hipIpcMemLazyEnablePeerAccess 0
+
63 
+ +
65 
+
66 //TODO: IPC event handle currently unsupported
+
67 struct ihipIpcEventHandle_t;
+
68 typedef struct ihipIpcEventHandle_t *hipIpcEventHandle_t;
+
69 
+
70 
+
71 //END TODO
+
72 
+
73 typedef struct ihipModule_t *hipModule_t;
+
74 
+
75 typedef struct ihipFunction_t *hipFunction_t;
+
76 
+
77 typedef void* hipDeviceptr_t;
+
78 
+
79 typedef struct ihipEvent_t *hipEvent_t;
+
80 
+
81 enum hipLimit_t
+
82 {
+
83  hipLimitMallocHeapSize = 0x02,
+
84 };
+
85 
+
90 #define hipStreamDefault 0x00
+
92 #define hipStreamNonBlocking 0x01
+
93 
+
94 
+
96 #define hipEventDefault 0x0
+
97 #define hipEventBlockingSync 0x1
+
98 #define hipEventDisableTiming 0x2
+
99 #define hipEventInterprocess 0x4
+
100 
+
101 
+
103 #define hipHostMallocDefault 0x0
+
104 #define hipHostMallocPortable 0x1
+
105 #define hipHostMallocMapped 0x2
+
106 #define hipHostMallocWriteCombined 0x4
+
107 
+
109 #define hipHostRegisterDefault 0x0
+
110 #define hipHostRegisterPortable 0x1
+
111 #define hipHostRegisterMapped 0x2
+
112 #define hipHostRegisterIoMemory 0x4
+
113 
+
114 
+
115 #define hipDeviceScheduleAuto 0x0
+
116 #define hipDeviceScheduleSpin 0x1
+
117 #define hipDeviceScheduleYield 0x2
+
118 #define hipDeviceScheduleBlockingSync 0x4
+
119 #define hipDeviceScheduleMask 0x7
+
120 
+
121 #define hipDeviceMapHost 0x8
+
122 #define hipDeviceLmemResizeToMax 0x16
+
123 
+
124 
+
128 typedef enum hipFuncCache_t {
+ + + + + +
134 
+
135 
+
139 typedef enum hipSharedMemConfig {
+ + + + +
144 
+
145 
+
146 
+
151 typedef struct dim3 {
+
152  uint32_t x;
+
153  uint32_t y;
+
154  uint32_t z;
+
155 #ifdef __cplusplus
+
156  dim3(uint32_t _x=1, uint32_t _y=1, uint32_t _z=1) : x(_x), y(_y), z(_z) {};
+
157 #endif
+
158 } dim3;
+
159 
+
160 
+
165 typedef enum hipMemcpyKind {
+ + + + + +
171 } hipMemcpyKind;
+
172 
+
173 
+
174 
+
175 
+
176 // Doxygen end group GlobalDefs
+
180 //-------------------------------------------------------------------------------------------------
+
181 
+
182 
+
183 // The handle allows the async commands to use the stream even if the parent hipStream_t goes out-of-scope.
+
184 //typedef class ihipStream_t * hipStream_t;
+
185 
+
186 
+
187 /*
+
188  * Opaque structure allows the true event (pointed at by the handle) to remain "live" even if the surrounding hipEvent_t goes out-of-scope.
+
189  * This is handy for cases where the hipEvent_t goes out-of-scope but the true event is being written by some async queue or device */
+
190 //typedef struct hipEvent_t {
+
191 // struct ihipEvent_t *_handle;
+
192 //} hipEvent_t;
+
193 
+
194 
+
195 
+
196 
+
197 
+
198 
+
199 
+ +
227 
+
228 
+
229 
+ +
241 
+
242 
+
269 hipError_t hipSetDevice(int deviceId);
+
270 
+
271 
+
285 hipError_t hipGetDevice(int *deviceId);
+
286 
+
287 
+
299 hipError_t hipGetDeviceCount(int *count);
+
300 
+
310 hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int deviceId);
+
311 
+ +
326 
+
327 
+ +
338 
+
339 
+ +
350 
+
361 hipError_t hipDeviceGetLimit(size_t *pValue, hipLimit_t limit);
+
362 
+
363 
+ +
374 
+ +
386 
+
387 
+ +
399 
+
419 hipError_t hipSetDeviceFlags ( unsigned flags);
+
420 
+
429 hipError_t hipChooseDevice(int *device, const hipDeviceProp_t* prop);
+
430 
+
431 // end doxygen Device
+ +
454 
+
455 
+ +
467 
+
468 
+
469 
+
478 const char *hipGetErrorName(hipError_t hip_error);
+
479 
+
480 
+
491 const char *hipGetErrorString(hipError_t hipError);
+
492 
+
493 // end doxygen Error
+
529 hipError_t hipStreamCreate(hipStream_t *stream);
+
530 
+
531 
+
548 hipError_t hipStreamCreateWithFlags(hipStream_t *stream, unsigned int flags);
+
549 
+
550 
+
566 hipError_t hipStreamDestroy(hipStream_t stream);
+
567 
+
568 
+
581 hipError_t hipStreamQuery(hipStream_t stream);
+
582 
+
583 
+
598 hipError_t hipStreamSynchronize(hipStream_t stream);
+
599 
+
600 
+
617 hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags);
+
618 
+
619 
+
620 
+
634 hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int *flags);
+
635 
+
639 typedef void(* hipStreamCallback_t)(hipStream_t stream, hipError_t status, void* userData);
+
640 
+
655 hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags);
+
656 
+
657 
+
658 // end doxygen Stream
+
689 hipError_t hipEventCreateWithFlags(hipEvent_t* event, unsigned flags);
+
690 
+
691 
+
701 hipError_t hipEventCreate(hipEvent_t* event);
+
702 
+
703 
+
728 #ifdef __cplusplus
+
729 hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream = NULL);
+
730 #else
+
731 hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream);
+
732 #endif
+
733 
+
747 hipError_t hipEventDestroy(hipEvent_t event);
+
748 
+
749 
+
764 hipError_t hipEventSynchronize(hipEvent_t event);
+
765 
+
766 
+
793 hipError_t hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop);
+
794 
+
795 
+
808 hipError_t hipEventQuery(hipEvent_t event) ;
+
809 
+
810 
+
811 // end doxygen Events
+ +
844 
+
855 hipError_t hipMalloc(void** ptr, size_t size) ;
+
856 
+
867 hipError_t hipMallocHost(void** ptr, size_t size) __attribute__((deprecated("use hipHostMalloc instead"))) ;
+
868 
+
880 hipError_t hipHostMalloc(void** ptr, size_t size, unsigned int flags) ;
+
881 
+
893 hipError_t hipHostAlloc(void** ptr, size_t size, unsigned int flags) __attribute__((deprecated("use hipHostMalloc instead"))) ;
+
894 
+
906 hipError_t hipHostGetDevicePointer(void** devPtr, void* hstPtr, unsigned int flags) ;
+
907 
+
917 hipError_t hipHostGetFlags(unsigned int* flagsPtr, void* hostPtr) ;
+
918 
+
951 hipError_t hipHostRegister(void* hostPtr, size_t sizeBytes, unsigned int flags) ;
+
952 
+
961 hipError_t hipHostUnregister(void* hostPtr) ;
+
962 
+
978 hipError_t hipMallocPitch(void** ptr, size_t* pitch, size_t width, size_t height);
+
979 
+
991 hipError_t hipFree(void* ptr);
+
992 
+
1002 hipError_t hipFreeHost(void* ptr) __attribute__((deprecated("use hipHostFree instead")));
+
1003 
+
1015 hipError_t hipHostFree(void* ptr);
+
1016 
+
1038 hipError_t hipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind);
+
1039 
+
1051 hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, void* src, size_t sizeBytes);
+
1052 
+
1064 hipError_t hipMemcpyDtoH(void* dst, hipDeviceptr_t src, size_t sizeBytes);
+
1065 
+
1077 hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes);
+
1078 
+
1090 hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, void* src, size_t sizeBytes, hipStream_t stream);
+
1091 
+
1103 hipError_t hipMemcpyDtoHAsync(void* dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream);
+
1104 
+
1116 hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream);
+
1117 
+
1118 
+
1135 hipError_t hipMemcpyToSymbol(const char* symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind);
+
1136 
+
1137 
+
1155 hipError_t hipMemcpyToSymbolAsync(const char* symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream);
+
1156 
+
1157 
+
1158 
+
1181 #if __cplusplus
+
1182 hipError_t hipMemcpyAsync(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream=0);
+
1183 #else
+
1184 hipError_t hipMemcpyAsync(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream);
+
1185 #endif
+
1186 
+
1199 hipError_t hipMemset(void* dst, int value, size_t sizeBytes );
+
1200 
+
1201 
+
1215 #if __cplusplus
+
1216 hipError_t hipMemsetAsync(void* dst, int value, size_t sizeBytes, hipStream_t stream = 0 );
+
1217 #else
+
1218 hipError_t hipMemsetAsync(void* dst, int value, size_t sizeBytes, hipStream_t stream);
+
1219 #endif
+
1220 
+
1229 hipError_t hipMemGetInfo (size_t * free, size_t * total) ;
+
1230 
+
1231 // doxygen end Memory
+
1264 hipError_t hipDeviceCanAccessPeer (int* canAccessPeer, int deviceId, int peerDeviceId);
+
1265 
+
1266 
+
1282 hipError_t hipDeviceEnablePeerAccess (int peerDeviceId, unsigned int flags);
+
1283 
+
1284 
+
1295 hipError_t hipDeviceDisablePeerAccess (int peerDeviceId);
+
1296 
+
1308 hipError_t hipMemGetAddressRange ( hipDeviceptr_t* pbase, size_t* psize, hipDeviceptr_t dptr );
+
1309 
+
1310 #ifndef USE_PEER_NON_UNIFIED
+
1311 #define USE_PEER_NON_UNIFIED 1
+
1312 #endif
+
1313 
+
1314 #if USE_PEER_NON_UNIFIED==1
+
1315 
+
1327 hipError_t hipMemcpyPeer (void* dst, int dstDeviceId, const void* src, int srcDeviceId, size_t sizeBytes);
+
1328 
+
1341 #if __cplusplus
+
1342 hipError_t hipMemcpyPeerAsync ( void* dst, int dstDeviceId, const void* src, int srcDevice, size_t sizeBytes, hipStream_t stream=0 );
+
1343 #else
+
1344 hipError_t hipMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t sizeBytes, hipStream_t stream);
+
1345 #endif
+
1346 #endif
+
1347 
+
1348 
+
1349 // doxygen end PeerToPeer
+
1368 // TODO-ctx - more description on error codes.
+
1369 hipError_t hipInit(unsigned int flags) ;
+
1370 
+
1371 
+
1390 hipError_t hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device);
+
1391 
+
1401 hipError_t hipCtxDestroy(hipCtx_t ctx);
+
1402 
+
1412 hipError_t hipCtxPopCurrent(hipCtx_t* ctx);
+
1413 
+
1423 hipError_t hipCtxPushCurrent(hipCtx_t ctx);
+
1424 
+
1434 hipError_t hipCtxSetCurrent(hipCtx_t ctx);
+
1435 
+
1445 hipError_t hipCtxGetCurrent(hipCtx_t* ctx);
+
1446 
+
1457 hipError_t hipCtxGetDevice(hipDevice_t *device);
+
1458 
+
1475 hipError_t hipCtxGetApiVersion (hipCtx_t ctx,int *apiVersion);
+
1476 
+ +
1489 
+ +
1502 
+ +
1515 
+ +
1528 
+
1538 hipError_t hipCtxSynchronize ( void );
+
1539 
+
1549 hipError_t hipCtxGetFlags ( unsigned int* flags );
+
1550 
+
1567 hipError_t hipCtxEnablePeerAccess (hipCtx_t peerCtx, unsigned int flags);
+
1568 
+
1581 hipError_t hipCtxDisablePeerAccess (hipCtx_t peerCtx);
+
1582 
+
1583 // doxygen end Context Management
+
1595 hipError_t hipDeviceGet(hipDevice_t *device, int ordinal);
+
1596 
+
1605 hipError_t hipDeviceComputeCapability(int *major,int *minor,hipDevice_t device);
+
1606 
+
1615 hipError_t hipDeviceGetName(char *name,int len,hipDevice_t device);
+
1616 
+
1625 hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,int device);
+
1626 
+
1627 
+
1635 hipError_t hipDeviceGetByPCIBusId ( int* device,const int* pciBusId );
+
1636 
+
1637 
+
1645 hipError_t hipDeviceTotalMem (size_t *bytes,hipDevice_t device);
+
1646 
+
1662 hipError_t hipDriverGetVersion(int *driverVersion) ;
+
1663 
+
1676 hipError_t hipRuntimeGetVersion(int *runtimeVersion) ;
+
1677 
+
1688 hipError_t hipModuleLoad(hipModule_t *module, const char *fname);
+
1689 
+
1700 hipError_t hipModuleUnload(hipModule_t module);
+
1701 
+
1711 hipError_t hipModuleGetFunction(hipFunction_t *function, hipModule_t module, const char *kname);
+
1712 
+
1723 hipError_t hipModuleGetGlobal(hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name);
+
1724 
+
1725 
+
1734 hipError_t hipModuleLoadData(hipModule_t *module, const void *image);
+
1735 
+
1736 
+
1757 hipError_t hipModuleLaunchKernel(hipFunction_t f,
+
1758  unsigned int gridDimX,
+
1759  unsigned int gridDimY,
+
1760  unsigned int gridDimZ,
+
1761  unsigned int blockDimX,
+
1762  unsigned int blockDimY,
+
1763  unsigned int blockDimZ,
+
1764  unsigned int sharedMemBytes,
+
1765  hipStream_t stream,
+
1766  void **kernelParams,
+
1767  void **extra) ;
+
1768 
+
1769 // doxygen end Version Management
+
1787 // TODO - expand descriptions:
+ +
1794 
+
1795 
+ +
1802 
+
1803 
+
1808 //TODO: implement IPC apis
+
1809 
+
1835 hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t *handle, void *devPtr);
+
1836 
+
1873 hipError_t hipIpcOpenMemHandle(void **devPtr,
+
1874  hipIpcMemHandle_t handle, unsigned int flags);
+
1875 
+
1894 hipError_t hipIpcCloseMemHandle(void *devPtr);
+
1895 
+
1896 
+
1897 // hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t* handle, void* devPtr);
+
1898 // hipError_t hipIpcCloseMemHandle(void *devPtr);
+
1899 // // hipError_t hipIpcOpenEventHandle(hipEvent_t* event, hipIpcEventHandle_t handle);
+
1900 // hipError_t hipIpcOpenMemHandle(void** devPtr, hipIpcMemHandle_t handle, unsigned int flags);
+
1901 
+
1902 
+
1903 #ifdef __cplusplus
+
1904 } /* extern "c" */
+
1905 #endif
+
1906 
+
1907 #ifdef __cplusplus
+
1908 
+
1916 hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,hipDevice_t device);
+
1917 #endif
+
1918 
+
1936 // end-group HCC_Specific
+
1943 // doxygen end HIP API
+
1948 #endif
+
hipError_t hipHostFree(void *ptr)
Free memory allocated by the hcc hip host memory allocation API This API performs an implicit hipDevi...
Definition: hip_memory.cpp:967
+
prefer larger L1 cache and smaller shared memory
Definition: hip_runtime_api.h:131
+
hipError_t hipModuleGetFunction(hipFunction_t *function, hipModule_t module, const char *kname)
Function with kname will be extracted if present in module.
Definition: hip_module.cpp:234
+
hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx)
Disable direct access from current context's virtual address space to memory allocations physically l...
Definition: hip_peer.cpp:222
+
hipError_t hipDeviceGetByPCIBusId(int *device, const int *pciBusId)
Returns a handle to a compute device.
Definition: hip_device.cpp:376
+
hipError_t hipDeviceGetCacheConfig(hipFuncCache_t *cacheConfig)
Set Cache configuration for a specific function.
Definition: hip_device.cpp:88
+
hipError_t hipMemcpyAsync(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream)
Copy data from src to dst asynchronously.
Definition: hip_memory.cpp:635
+
hipError_t hipDriverGetVersion(int *driverVersion)
Returns the approximate HIP driver version.
Definition: hip_context.cpp:82
+
hipError_t hipPeekAtLastError(void)
Return last error returned by any HIP runtime API call.
Definition: hip_error.cpp:42
+
Definition: hip_hcc.h:575
+
struct dim3 dim3
+
hipError_t hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device)
Returns the compute capability of the device.
Definition: hip_device.cpp:320
+
hipError_t hipMemGetAddressRange(hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr)
Get information on memory allocations.
Definition: hip_memory.cpp:1023
+
TODO-doc.
+
hipError_t hipMallocPitch(void **ptr, size_t *pitch, size_t width, size_t height)
Definition: hip_memory.cpp:233
+
hipError_t hipFuncSetCacheConfig(hipFuncCache_t config)
Set Cache configuration for a specific function.
Definition: hip_device.cpp:115
+
Definition: hip_hcc.h:375
+
hipError_t hipMemcpyToSymbol(const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
Copies sizeBytes bytes from the memory area pointed to by src to the memory area pointed to by offset...
Definition: hip_memory.cpp:432
+
hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags)
Adds a callback to be called on the host after all currently enqueued items in the stream have comple...
Definition: hip_stream.cpp:202
+
uint32_t x
x
Definition: hip_runtime_api.h:152
+
Host-to-Device Copy.
Definition: hip_runtime_api.h:167
+
hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags)
Enable direct access from current device's virtual address space to memory allocations physically loc...
Definition: hip_peer.cpp:194
+
hipError_t hipCtxPopCurrent(hipCtx_t *ctx)
Pop the current/default context and return the popped context.
Definition: hip_context.cpp:132
+
const char * hipGetErrorString(hipError_t hipError)
Return handy text string message to explain the error which occurred.
Definition: hip_error.cpp:57
+
hipError_t hipDeviceGetSharedMemConfig(hipSharedMemConfig *pConfig)
Returns bank width of shared memory for current device.
Definition: hip_device.cpp:133
+
Definition: hip_runtime_api.h:125
+
Device-to-Host Copy.
Definition: hip_runtime_api.h:168
+
prefer equal size L1 cache and shared memory
Definition: hip_runtime_api.h:132
+
hipError_t hipHostGetDevicePointer(void **devPtr, void *hstPtr, unsigned int flags)
Get Device pointer from Host Pointer allocated through hipHostMalloc.
+
hipError_t hipEventSynchronize(hipEvent_t event)
Wait for an event to complete.
Definition: hip_event.cpp:113
+
Definition: hip_hcc.h:383
+
hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, void *src, size_t sizeBytes)
Copy data from Host to Device.
Definition: hip_memory.cpp:521
+
hipError_t hipModuleUnload(hipModule_t module)
Frees the module.
Definition: hip_module.cpp:166
+
hipError_t hipSetDeviceFlags(unsigned flags)
The current device behavior is changed according the flags passed.
+
hipError_t hipEventQuery(hipEvent_t event)
Query event status.
Definition: hip_event.cpp:179
+
hipError_t hipDeviceDisablePeerAccess(int peerDeviceId)
Disable direct access from current device's virtual address space to memory allocations physically lo...
Definition: hip_peer.cpp:186
+
hipError_t hipCtxGetSharedMemConfig(hipSharedMemConfig *pConfig)
Get Shared memory bank configuration.
Definition: hip_context.cpp:247
+
hipError_t hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
Create a context and set it as current/ default context.
Definition: hip_context.cpp:56
+
hipError_t hipCtxSetSharedMemConfig(hipSharedMemConfig config)
Set Shared memory bank configuration.
Definition: hip_context.cpp:238
+
hipError_t hipCtxSetCurrent(hipCtx_t ctx)
Set the passed context as current/default.
Definition: hip_context.cpp:179
+
hipError_t hipMallocHost(void **ptr, size_t size) __attribute__((deprecated("use hipHostMalloc instead")))
Allocate pinned host memory [Deprecated].
Definition: hip_memory.cpp:222
+
hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t *handle, void *devPtr)
Gets an interprocess memory handle for an existing device memory allocation.
Definition: hip_memory.cpp:1042
+
hipError_t hipHostMalloc(void **ptr, size_t size, unsigned int flags)
Allocate device accessible page locked host memory.
Definition: hip_memory.cpp:161
+
Definition: hip_hcc.h:675
+
hipError_t hipModuleLoadData(hipModule_t *module, const void *image)
builds module from code object which resides in host memory. Image is pointer to that location...
Definition: hip_module.cpp:416
+
hipDeviceAttribute_t
Definition: hip_runtime_api.h:222
+
hipError_t hipEventDestroy(hipEvent_t event)
Destroy the specified event.
Definition: hip_event.cpp:100
+
hipError_t hipStreamCreateWithFlags(hipStream_t *stream, unsigned int flags)
Create an asynchronous stream.
Definition: hip_stream.cpp:63
+
hipError_t hipChooseDevice(int *device, const hipDeviceProp_t *prop)
Device which matches hipDeviceProp_t is returned.
Definition: hip_device.cpp:395
+
hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig)
Set L1/Shared cache partition.
Definition: hip_context.cpp:229
+
hipError_t hipModuleLaunchKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void **kernelParams, void **extra)
launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelp...
+
Definition: hip_runtime_api.h:151
+
uint32_t y
y
Definition: hip_runtime_api.h:153
+
hipError_t hipModuleLoad(hipModule_t *module, const char *fname)
Loads code object from file into a hipModule_t.
Definition: hip_module.cpp:106
+
hipError_t hipEventCreateWithFlags(hipEvent_t *event, unsigned flags)
Create an event with the specified flags.
Definition: hip_event.cpp:54
+
hipError_t hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop)
Return the elapsed time between two events.
Definition: hip_event.cpp:137
+
hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig)
Set L1/Shared cache partition.
Definition: hip_device.cpp:79
+
hipError_t hipDeviceGetLimit(size_t *pValue, hipLimit_t limit)
Get Resource limits of current device.
Definition: hip_device.cpp:101
+
hipError_t hipDeviceCanAccessPeer(int *canAccessPeer, int deviceId, int peerDeviceId)
Determine if a device can access a peer's memory.
Definition: hip_peer.cpp:179
+
hipError_t hipGetDeviceCount(int *count)
Return number of compute-capable devices.
Definition: hip_device.cpp:73
+
hipError_t hipMemset(void *dst, int value, size_t sizeBytes)
Copy data from src to dst asynchronously.
Definition: hip_memory.cpp:854
+
hipError_t hipStreamDestroy(hipStream_t stream)
Destroys the specified stream.
Definition: hip_stream.cpp:157
+
hipError_t hipHostGetFlags(unsigned int *flagsPtr, void *hostPtr)
Return flags associated with host pointer.
Definition: hip_memory.cpp:345
+
hipError_t hipStreamSynchronize(hipStream_t stream)
Wait for all commands in stream to complete.
Definition: hip_stream.cpp:134
+
hipError_t hipIpcOpenMemHandle(void **devPtr, hipIpcMemHandle_t handle, unsigned int flags)
Opens an interprocess memory handle exported from another process and returns a device pointer usable...
Definition: hip_memory.cpp:1068
+
hipError_t hipCtxGetCacheConfig(hipFuncCache_t *cacheConfig)
Set Cache configuration for a specific function.
Definition: hip_context.cpp:220
+
hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
Copy data from Device to Device.
Definition: hip_memory.cpp:563
+
Shared mem is banked at 4-bytes intervals and performs best when adjacent threads access data 4 bytes...
Definition: hip_runtime_api.h:141
+
hipError_t
Definition: hip_runtime_api.h:152
+
no preference for shared memory or L1 (default)
Definition: hip_runtime_api.h:129
+
hipMemcpyKind
Definition: hip_runtime_api.h:165
+
hipError_t hipCtxSynchronize(void)
Blocks until the default context has completed all preceding requested tasks.
Definition: hip_context.cpp:256
+
hipError_t hipCtxGetCurrent(hipCtx_t *ctx)
Get the handle of the current/ default context.
Definition: hip_context.cpp:166
+
hipError_t hipMemcpyDtoHAsync(void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
Copy data from Device to Host asynchronously.
Definition: hip_memory.cpp:658
+
hipError_t hipDeviceSynchronize(void)
Waits on all active streams on current device.
Definition: hip_device.cpp:153
+
hipError_t hipCtxPushCurrent(hipCtx_t ctx)
Push the context to be set as current/ default context.
Definition: hip_context.cpp:152
+
hipError_t hipMemcpyDtoH(void *dst, hipDeviceptr_t src, size_t sizeBytes)
Copy data from Device to Host.
Definition: hip_memory.cpp:542
+
Definition: hip_hcc.h:404
+
hipError_t hipDeviceGetName(char *name, int len, hipDevice_t device)
Returns an identifer string for the device.
Definition: hip_device.cpp:330
+
hipError_t hipGetDeviceProperties(hipDeviceProp_t *prop, int deviceId)
Returns device properties.
Definition: hip_device.cpp:275
+
hipError_t hipHostRegister(void *hostPtr, size_t sizeBytes, unsigned int flags)
Register host memory so it can be accessed from the current device.
Definition: hip_memory.cpp:369
+
hipError_t hipMalloc(void **ptr, size_t size)
Allocate memory on the default accelerator.
Definition: hip_memory.cpp:105
+
const char * hipGetErrorName(hipError_t hip_error)
Return name of the specified error code in text form.
Definition: hip_error.cpp:50
+
hipFuncCache_t
Definition: hip_runtime_api.h:128
+
hipError_t hipGetLastError(void)
Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess...
Definition: hip_error.cpp:32
+
hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags)
Make the specified compute stream wait for an event.
Definition: hip_stream.cpp:80
+
hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int *flags)
Return flags associated with this stream.
Definition: hip_stream.cpp:186
+
hipError_t hipHostAlloc(void **ptr, size_t size, unsigned int flags) __attribute__((deprecated("use hipHostMalloc instead")))
Allocate device accessible page locked host memory [Deprecated].
Definition: hip_memory.cpp:227
+
hipError_t hipMemGetInfo(size_t *free, size_t *total)
Query memory info. Return snapshot of free memory, and total allocatable memory on the device...
Definition: hip_memory.cpp:906
+
hipError_t hipCtxGetDevice(hipDevice_t *device)
Get the handle of the device associated with current/default context.
Definition: hip_context.cpp:193
+
hipError_t hipFree(void *ptr)
Free memory allocated by the hcc hip memory allocation API. This API performs an implicit hipDeviceSy...
Definition: hip_memory.cpp:940
+
uint32_t z
z
Definition: hip_runtime_api.h:154
+
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int *apiVersion)
Returns the approximate HIP api version.
Definition: hip_context.cpp:209
+
hipError_t hipDeviceReset(void)
The state of current device is discarded and updated to a fresh state.
Definition: hip_device.cpp:159
+
hipError_t hipInit(unsigned int flags)
Explicitly initializes the HIP runtime.
Definition: hip_context.cpp:42
+
hipError_t hipRuntimeGetVersion(int *runtimeVersion)
Returns the approximate HIP Runtime version.
Definition: hip_context.cpp:96
+
hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
Copy data from Device to Device asynchronously.
Definition: hip_memory.cpp:651
+
Definition: hip_runtime_api.h:82
+
hipError_t hipSetDevice(int deviceId)
Set default device to be used for subsequent hip API calls from this thread.
Definition: hip_device.cpp:142
+
hipError_t hipDeviceGet(hipDevice_t *device, int ordinal)
Returns a handle to a compute device.
Definition: hip_context.cpp:68
+
hipError_t hipDeviceTotalMem(size_t *bytes, hipDevice_t device)
Returns the total amount of memory on the device.
Definition: hip_device.cpp:368
+
hipError_t hipMemsetAsync(void *dst, int value, size_t sizeBytes, hipStream_t stream)
Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value val...
Definition: hip_memory.cpp:805
+
The compiler selects a device-specific value for the banking.
Definition: hip_runtime_api.h:140
+
hipError_t hipCtxGetFlags(unsigned int *flags)
Return flags used for creating default context.
Definition: hip_context.cpp:262
+
Device-to-Device Copy.
Definition: hip_runtime_api.h:169
+
hipError_t hipCtxDestroy(hipCtx_t ctx)
Destroy a HIP context.
Definition: hip_context.cpp:110
+
Definition: hip_hcc.h:558
+
hipError_t hipMemcpyPeerAsync(void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream)
Copies memory from one device to memory on another device.
Definition: hip_peer.cpp:209
+
Runtime will automatically determine copy-kind based on virtual addresses.
Definition: hip_runtime_api.h:170
+
hipSharedMemConfig
Definition: hip_runtime_api.h:139
+
hipError_t hipDeviceGetAttribute(int *pi, hipDeviceAttribute_t attr, int deviceId)
Query for a specific device attribute.
Definition: hip_device.cpp:249
+
hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream)
Copy data from Host to Device asynchronously.
Definition: hip_memory.cpp:644
+
hipError_t hipHostUnregister(void *hostPtr)
Un-register host pointer.
Definition: hip_memory.cpp:414
+
Definition: hip_hcc.h:463
+
hipError_t hipMemcpyPeer(void *dst, int dstDeviceId, const void *src, int srcDeviceId, size_t sizeBytes)
Copies memory from one device to memory on another device.
Definition: hip_peer.cpp:202
+
hipError_t hipStreamCreate(hipStream_t *stream)
Create an asynchronous stream.
Definition: hip_stream.cpp:72
+
hipError_t hipMemcpy(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind)
Copy data from src to dst.
Definition: hip_memory.cpp:500
+
hipError_t hipEventCreate(hipEvent_t *event)
Definition: hip_event.cpp:61
+
hipError_t hipFreeHost(void *ptr) __attribute__((deprecated("use hipHostFree instead")))
Free memory allocated by the hcc hip host memory allocation API. [Deprecated].
Definition: hip_memory.cpp:994
+
void(* hipStreamCallback_t)(hipStream_t stream, hipError_t status, void *userData)
Definition: hip_runtime_api.h:639
+
hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags)
Enables direct access to memory allocations in a peer context.
Definition: hip_peer.cpp:215
+
hipError_t hipDeviceSetSharedMemConfig(hipSharedMemConfig config)
The bank width of shared memory on current device is set.
Definition: hip_device.cpp:124
+
hipError_t hipMemcpyToSymbolAsync(const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
Copies sizeBytes bytes from the memory area pointed to by src to the memory area pointed to by offset...
Definition: hip_memory.cpp:460
+
hipError_t hipGetDevice(int *deviceId)
Return the default device id for the calling host thread.
Definition: hip_device.cpp:32
+
hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream)
Record an event in the specified stream.
Definition: hip_event.cpp:68
+
hipError_t hipModuleGetGlobal(hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name)
returns device memory pointer and size of the kernel present in the module with symbol name ...
Definition: hip_module.cpp:395
+
Host-to-Host Copy.
Definition: hip_runtime_api.h:166
+
hipError_t hipDeviceGetPCIBusId(char *pciBusId, int len, int device)
Returns a PCI Bus Id string for the device, overloaded to take int device ID.
Definition: hip_device.cpp:356
+
prefer larger shared memory and smaller L1 cache
Definition: hip_runtime_api.h:130
+
hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, void *ptr)
Return attributes for the specified pointer.
Definition: hip_memory.cpp:38
+
hipError_t hipStreamQuery(hipStream_t stream)
Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not.
Definition: hip_stream.cpp:113
+
Shared mem is banked at 8-byte intervals and performs best when adjacent threads access data 4 bytes ...
Definition: hip_runtime_api.h:142
+
hipError_t hipIpcCloseMemHandle(void *devPtr)
Close memory mapped with hipIpcOpenMemHandle.
Definition: hip_memory.cpp:1087
+
hipError_t hipProfilerStop()
Stop recording of profiling information. When using this API, start the profiler with profiling disab...
Definition: hip_hcc.cpp:1942
+
hipError_t hipProfilerStart()
Start recording of profiling information When using this API, start the profiler with profiling disab...
Definition: hip_hcc.cpp:1931
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__texture_8h.html b/docs/RuntimeAPI/html/hcc__detail_2hip__texture_8h.html new file mode 100644 index 0000000000..5aa672dda3 --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__texture_8h.html @@ -0,0 +1,560 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_texture.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
hip_texture.h File Reference
+
+
+ +

HIP C++ Texture API for hcc compiler. +More...

+
#include <limits.h>
+
+

Go to the source code of this file.

+ + + + + + + + +

+Classes

struct  hipChannelFormatDesc
 
struct  textureReference
 
struct  hipArray
 
+ + + + + + + +

+Macros

+#define hipTextureType1D   1
 
+#define tex1Dfetch(_tex, _addr)   (_tex._dataPtr[_addr])
 
+#define tex2D(_tex, _dx, _dy)   _tex._dataPtr[(unsigned int)_dx + (unsigned int)_dy*(_tex.width)]
 
+ + + + + + + +

+Typedefs

+typedef struct hipChannelFormatDesc hipChannelFormatDesc
 
+typedef enum hipTextureReadMode hipTextureReadMode
 
+typedef enum hipTextureFilterMode hipTextureFilterMode
 
+ + + + + + + +

+Enumerations

enum  hipChannelFormatKind { hipChannelFormatKindSigned = 0, +hipChannelFormatKindUnsigned, +hipChannelFormatKindFloat, +hipChannelFormatKindNone + }
 
enum  hipTextureReadMode { hipReadModeElementType + }
 
enum  hipTextureFilterMode { hipFilterModePoint + }
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

hipError_t hipMallocArray (hipArray **array, const hipChannelFormatDesc *desc, size_t width, size_t height=0, unsigned int flags=0)
 Allocate an array on the device. More...
 
hipError_t hipFreeArray (hipArray *array)
 Frees an array on the device. More...
 
hipError_t hipMemcpy2D (void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
 Copies data between host and device. More...
 
hipError_t hipMemcpy2DToArray (hipArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
 Copies data between host and device. More...
 
hipError_t hipMemcpyToArray (hipArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t count, hipMemcpyKind kind)
 Copies data between host and device. More...
 
hipChannelFormatDesc hipCreateChannelDesc (int x, int y, int z, int w, hipChannelFormatKind f)
 Returns a channel descriptor using the specified format. More...
 
+template<typename T >
hipChannelFormatDesc hipCreateChannelDesc ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< int > ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< unsigned int > ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< long > ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< unsigned long > ()
 
+template<>
hipChannelFormatDesc hipCreateChannelDesc< float > ()
 
+template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTexture (size_t *offset, struct texture< T, dim, readMode > &tex, const void *devPtr, const struct hipChannelFormatDesc *desc, size_t size=UINT_MAX)
 
+template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTexture (size_t *offset, struct texture< T, dim, readMode > &tex, const void *devPtr, size_t size=UINT_MAX)
 
+template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTextureToArray (struct texture< T, dim, readMode > &tex, hipArray *array)
 
+template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipUnbindTexture (struct texture< T, dim, readMode > &tex)
 
+

Detailed Description

+

HIP C++ Texture API for hcc compiler.

+

Enumeration Type Documentation

+ +
+
+ + + + +
enum hipTextureFilterMode
+
+ + +
Enumerator
hipFilterModePoint  +

Point filter mode.

+
+ +
+
+ +
+
+ + + + +
enum hipTextureReadMode
+
+ + +
Enumerator
hipReadModeElementType  +

Read texture as specified element type

+
+ +
+
+

Function Documentation

+ +
+
+ + + + + + + + +
hipError_t hipFreeArray (hipArrayarray)
+
+ +

Frees an array on the device.

+
Parameters
+ + +
[in]arrayPointer to array to free
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, hipErrorInitializationError
+
See Also
hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipHostMalloc, hipHostFree
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMallocArray (hipArray ** array,
const hipChannelFormatDescdesc,
size_t width,
size_t height = 0,
unsigned int flags = 0 
)
+
+ +

Allocate an array on the device.

+
Parameters
+ + + + + + +
[out]arrayPointer to allocated array in device memory
[in]descRequested channel format
[in]widthRequested array allocation width
[in]heightRequested array allocation height
[in]flagsRequested properties of allocated array
+
+
+
Returns
hipSuccess, hipErrorMemoryAllocation
+
See Also
hipMalloc, hipMallocPitch, hipFree, hipFreeArray, hipHostMalloc, hipHostFree
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpy2D (void * dst,
size_t dpitch,
const void * src,
size_t spitch,
size_t width,
size_t height,
hipMemcpyKind kind 
)
+
+ +

Copies data between host and device.

+
Parameters
+ + + + + + + + +
[in]dstDestination memory address
[in]dpitchPitch of destination memory
[in]srcSource memory address
[in]spitchPitch of source memory
[in]widthWidth of matrix transfer (columns in bytes)
[in]heightHeight of matrix transfer (rows)
[in]kindType of transfer
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorInvalidPitchValue, hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection
+
See Also
hipMemcpy, hipMemcpyToArray, hipMemcpy2DToArray, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpy2DToArray (hipArraydst,
size_t wOffset,
size_t hOffset,
const void * src,
size_t spitch,
size_t width,
size_t height,
hipMemcpyKind kind 
)
+
+ +

Copies data between host and device.

+
Parameters
+ + + + + + + + +
[in]dstDestination memory address
[in]dpitchPitch of destination memory
[in]srcSource memory address
[in]spitchPitch of source memory
[in]widthWidth of matrix transfer (columns in bytes)
[in]heightHeight of matrix transfer (rows)
[in]kindType of transfer
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorInvalidPitchValue, hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection
+
See Also
hipMemcpy, hipMemcpyToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
hipError_t hipMemcpyToArray (hipArraydst,
size_t wOffset,
size_t hOffset,
const void * src,
size_t count,
hipMemcpyKind kind 
)
+
+ +

Copies data between host and device.

+
Parameters
+ + + + + + + + +
[in]dstDestination memory address
[in]dpitchPitch of destination memory
[in]srcSource memory address
[in]spitchPitch of source memory
[in]widthWidth of matrix transfer (columns in bytes)
[in]heightHeight of matrix transfer (rows)
[in]kindType of transfer
+
+
+
Returns
hipSuccess, hipErrorInvalidValue, #hipErrorInvalidPitchValue, hipErrorInvalidDevicePointer, hipErrorInvalidMemcpyDirection
+
See Also
hipMemcpy, hipMemcpy2DToArray, hipMemcpy2D, hipMemcpyFromArray, hipMemcpyToSymbol, hipMemcpyAsync
+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__texture_8h_source.html b/docs/RuntimeAPI/html/hcc__detail_2hip__texture_8h_source.html new file mode 100644 index 0000000000..17dbbe2e7e --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__texture_8h_source.html @@ -0,0 +1,333 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_texture.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_texture.h
+
+
+Go to the documentation of this file.
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 //#pragma once
+
24 
+
25 #ifndef HIP_HCC_DETAIL_TEXTURE_H
+
26 #define HIP_HCC_DETAIL_TEXTURE_H
+
27 
+
33 #include <limits.h>
+
34 
+
35 //#include <hip/hcc_detail/hip_runtime.h>
+
36 
+
37 //----
+
38 //Texture - TODO - likely need to move this to a separate file only included with kernel compilation.
+
39 #define hipTextureType1D 1
+
40 
+
41 typedef enum {
+
42  hipChannelFormatKindSigned = 0,
+
43  hipChannelFormatKindUnsigned,
+
44  hipChannelFormatKindFloat,
+
45  hipChannelFormatKindNone
+
46 
+
47 } hipChannelFormatKind;
+
48 
+
49 typedef struct hipChannelFormatDesc {
+
50  int x;
+
51  int y;
+
52  int z;
+
53  int w;
+
54  hipChannelFormatKind f;
+ +
56 
+
57 typedef enum hipTextureReadMode
+
58 {
+ + +
62 
+ +
64 {
+ + +
68 
+ +
70  hipTextureFilterMode filterMode;
+
71  bool normalized;
+
72  hipChannelFormatDesc channelDesc;
+
73 };
+
74 #if __cplusplus
+
75 template <class T, int texType=hipTextureType1D, enum hipTextureReadMode=hipReadModeElementType>
+
76 struct texture : public textureReference {
+
77 
+
78  const T * _dataPtr; // pointer to underlying data.
+
79 
+
80  //texture() : filterMode(hipFilterModePoint), normalized(false), _dataPtr(NULL) {};
+
81  unsigned int width;
+
82  unsigned int height;
+
83 
+
84 };
+
85 #endif
+
86 
+
87 typedef struct {
+
88  unsigned int width;
+
89  unsigned int height;
+
90  hipChannelFormatKind f;
+
91  void* data; //FIXME: generalize this
+
92 } hipArray;
+
93 
+
94 
+
95 #define tex1Dfetch(_tex, _addr) (_tex._dataPtr[_addr])
+
96 
+
97 #define tex2D(_tex, _dx, _dy) \
+
98  _tex._dataPtr[(unsigned int)_dx + (unsigned int)_dy*(_tex.width)]
+
99 
+ +
113  size_t width, size_t height = 0, unsigned int flags = 0);
+
114 
+ +
124 
+
139 hipError_t hipMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind);
+
140 
+
155 hipError_t hipMemcpy2DToArray(hipArray* dst, size_t wOffset, size_t hOffset, const void* src,
+
156  size_t spitch, size_t width, size_t height, hipMemcpyKind kind);
+
157 
+
172 hipError_t hipMemcpyToArray(hipArray* dst, size_t wOffset, size_t hOffset,
+
173  const void* src, size_t count, hipMemcpyKind kind);
+
174 
+
175 
+
183 // These are C++ APIs - maybe belong in separate file.
+
207 // C API:
+
208 #if 0
+
209 hipChannelFormatDesc hipBindTexture(size_t *offset, struct textureReference *tex, const void *devPtr, const struct hipChannelFormatDesc *desc, size_t size=UINT_MAX)
+
210 {
+
211  tex->_dataPtr = devPtr;
+
212 }
+
213 #endif
+
214 
+
226 hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w, hipChannelFormatKind f);
+
227 
+
228 // descriptors
+
229 template <typename T> inline hipChannelFormatDesc hipCreateChannelDesc() {
+
230  return hipCreateChannelDesc(0, 0, 0, 0, hipChannelFormatKindNone);
+
231 }
+
232 template <> inline hipChannelFormatDesc hipCreateChannelDesc<int>() {
+
233  int e = (int)sizeof(int) * 8;
+
234  return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
+
235 }
+
236 template <> inline hipChannelFormatDesc hipCreateChannelDesc<unsigned int>() {
+
237  int e = (int)sizeof(unsigned int) * 8;
+
238  return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
+
239 }
+
240 template <> inline hipChannelFormatDesc hipCreateChannelDesc<long>() {
+
241  int e = (int)sizeof(long) * 8;
+
242  return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
+
243 }
+
244 template <> inline hipChannelFormatDesc hipCreateChannelDesc<unsigned long>() {
+
245  int e = (int)sizeof(unsigned long) * 8;
+
246  return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
+
247 }
+
248 template <> inline hipChannelFormatDesc hipCreateChannelDesc<float>() {
+
249  int e = (int)sizeof(float) * 8;
+
250  return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindFloat);
+
251 }
+
252 
+
253 /*
+
254  * @brief hipBindTexture Binds size bytes of the memory area pointed to by @p devPtr to the texture reference tex.
+
255  *
+
256  * @p desc describes how the memory is interpreted when fetching values from the texture. The @p offset parameter is an optional byte offset as with the low-level
+
257  * hipBindTexture() function. Any memory previously bound to tex is unbound.
+
258  *
+
259  * @param[in] offset - Offset in bytes
+
260  * @param[out] tex - texture to bind
+
261  * @param[in] devPtr - Memory area on device
+
262  * @param[in] desc - Channel format
+
263  * @param[in] size - Size of the memory area pointed to by devPtr
+
264  * @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknown
+
265  **/
+
266 template <class T, int dim, enum hipTextureReadMode readMode>
+
267 hipError_t hipBindTexture(size_t *offset,
+
268  struct texture<T, dim, readMode> &tex,
+
269  const void *devPtr,
+
270  const struct hipChannelFormatDesc *desc,
+
271  size_t size=UINT_MAX)
+
272 {
+
273  tex._dataPtr = static_cast<const T*>(devPtr);
+
274 
+
275  return hipSuccess;
+
276 }
+
277 
+
278 /*
+
279  * @brief hipBindTexture Binds size bytes of the memory area pointed to by @p devPtr to the texture reference tex.
+
280  *
+
281  * @p desc describes how the memory is interpreted when fetching values from the texture. The @p offset parameter is an optional byte offset as with the low-level
+
282  * hipBindTexture() function. Any memory previously bound to tex is unbound.
+
283  *
+
284  * @param[in] offset - Offset in bytes
+
285  * @param[in] tex - texture to bind
+
286  * @param[in] devPtr - Memory area on device
+
287  * @param[in] size - Size of the memory area pointed to by devPtr
+
288  * @return #hipSuccess, #hipErrorInvalidValue, #hipErrorMemoryFree, #hipErrorUnknown
+
289  **/
+
290 template <class T, int dim, enum hipTextureReadMode readMode>
+
291 hipError_t hipBindTexture(size_t *offset,
+
292  struct texture<T, dim, readMode> &tex,
+
293  const void *devPtr,
+
294  size_t size=UINT_MAX)
+
295 {
+
296  return hipBindTexture(offset, tex, devPtr, &tex.channelDesc, size);
+
297 }
+
298 
+
299 template <class T, int dim, enum hipTextureReadMode readMode>
+
300 hipError_t hipBindTextureToArray(struct texture<T, dim, readMode> &tex, hipArray* array) {
+
301  tex.width = array->width;
+
302  tex.height = array->height;
+
303  tex._dataPtr = static_cast<const T*>(array->data);
+
304  return hipSuccess;
+
305 }
+
306 
+
307 /*
+
308  * @brief Unbinds the textuer bound to @p tex
+
309  *
+
310  * @param[in] tex - texture to unbind
+
311  *
+
312  * @return #hipSuccess
+
313  **/
+
314 template <class T, int dim, enum hipTextureReadMode readMode>
+
315 hipError_t hipUnbindTexture(struct texture<T, dim, readMode> &tex)
+
316 {
+
317  tex._dataPtr = NULL;
+
318 
+
319  return hipSuccess;
+
320 }
+
321 
+
322 
+
323 
+
324 // doxygen end Texture
+
330 // End doxygen API:
+
335 #endif
+
336 
+
hipError_t hipFreeArray(hipArray *array)
Frees an array on the device.
Definition: hip_memory.cpp:999
+
hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w, hipChannelFormatKind f)
Returns a channel descriptor using the specified format.
Definition: hip_memory.cpp:276
+
Successful completion.
Definition: hip_runtime_api.h:153
+
hipError_t hipMemcpy2DToArray(hipArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
Copies data between host and device.
Definition: hip_memory.cpp:692
+
hipTextureFilterMode
Definition: hip_texture.h:63
+
Definition: hip_texture.h:59
+
Definition: hip_texture.h:69
+
Definition: hip_texture.h:87
+
hipError_t
Definition: hip_runtime_api.h:152
+
hipError_t hipMemcpyToArray(hipArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t count, hipMemcpyKind kind)
Copies data between host and device.
Definition: hip_memory.cpp:745
+
hipMemcpyKind
Definition: hip_runtime_api.h:165
+
Definition: hip_texture.h:65
+
Definition: hip_texture.h:49
+
hipTextureReadMode
Definition: hip_texture.h:57
+
hipError_t hipMemcpy2D(void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
Copies data between host and device.
Definition: hip_memory.cpp:666
+
hipError_t hipMallocArray(hipArray **array, const hipChannelFormatDesc *desc, size_t width, size_t height=0, unsigned int flags=0)
Allocate an array on the device.
Definition: hip_memory.cpp:284
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__vector__types_8h.html b/docs/RuntimeAPI/html/hcc__detail_2hip__vector__types_8h.html new file mode 100644 index 0000000000..80b9f0458f --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__vector__types_8h.html @@ -0,0 +1,431 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_vector_types.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
hip_vector_types.h File Reference
+
+
+ +

Defines the different newt vector types for HIP runtime. +More...

+ +

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Classes

struct  char3
 
struct  uchar3
 
struct  char4
 
struct  uchar4
 
struct  short3
 
struct  ushort3
 
struct  int3
 
struct  uint3
 
struct  long3
 
struct  ulong3
 
struct  float1
 
struct  float3
 
struct  longlong3
 
struct  ulonglong3
 
struct  double1
 
struct  double3
 
+ + + + + +

+Macros

#define __hip_align(name, val, data)
 
+#define __HIP_DEVICE__   __device__ __host__
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

+struct __hip_align (char1, 1, signed char x;)
 
+struct __hip_align (uchar1, 1, unsigned char x;)
 
+struct __hip_align (char2, 2, signed char x;signed char y;)
 
+struct __hip_align (uchar2, 2, unsigned char x;unsigned char y;)
 
+struct __hip_align (short1, 2, signed short x;)
 
+struct __hip_align (ushort1, 2, unsigned short x;)
 
+struct __hip_align (short2, 4, signed short x;signed short y;)
 
+struct __hip_align (ushort2, 4, unsigned short x;unsigned short y;)
 
+struct __hip_align (short4, 8, signed short x;signed short y;signed short z;signed short w;)
 
+struct __hip_align (ushort4, 8, unsigned short x;unsigned short y;unsigned short z;unsigned short w;)
 
+struct __hip_align (int1, 4, signed int x;)
 
+struct __hip_align (uint1, 4, unsigned int x;)
 
+struct __hip_align (int2, 8, signed int x;signed int y;)
 
+struct __hip_align (uint2, 8, unsigned int x;unsigned int y;)
 
+struct __hip_align (int4, 16, signed int x;signed int y;signed int z;signed int w;)
 
+struct __hip_align (uint4, 16, unsigned int x;unsigned int y;unsigned int z;unsigned int w;)
 
+struct __hip_align (long1, 8, long int x;)
 
+struct __hip_align (ulong1, 8, unsigned long x;)
 
+struct __hip_align (long2, 16, long int x;long int y;)
 
+struct __hip_align (ulong2, 16, unsigned long x;unsigned long y;)
 
+struct __hip_align (long4, 32, long int x;long int y;long int z;long int w;)
 
+struct __hip_align (ulong4, 32, unsigned long x;unsigned long y;unsigned long z;unsigned long w;)
 
+struct __hip_align (float2, 8, float x;float y;)
 
+struct __hip_align (float4, 16, float x;float y;float z;float w;)
 
+struct __hip_align (longlong1, 16, long long int x;)
 
+struct __hip_align (ulonglong1, 16, unsigned long long int x;)
 
+struct __attribute__ ((aligned(32))) longlong2
 
+struct __attribute__ ((aligned(64))) longlong4
 
+struct __attribute__ ((aligned(16))) double2
 
+__HIP_DEVICE__ char1 make_char1 (signed char)
 
+__HIP_DEVICE__ char2 make_char2 (signed char, signed char)
 
+__HIP_DEVICE__ char3 make_char3 (signed char, signed char, signed char)
 
+__HIP_DEVICE__ char4 make_char4 (signed char, signed char, signed char, signed char)
 
+__HIP_DEVICE__ short1 make_short1 (short)
 
+__HIP_DEVICE__ short2 make_short2 (short, short)
 
+__HIP_DEVICE__ short3 make_short3 (short, short, short)
 
+__HIP_DEVICE__ short4 make_short4 (short, short, short, short)
 
+__HIP_DEVICE__ int1 make_int1 (int)
 
+__HIP_DEVICE__ int2 make_int2 (int, int)
 
+__HIP_DEVICE__ int3 make_int3 (int, int, int)
 
+__HIP_DEVICE__ int4 make_int4 (int, int, int, int)
 
+__HIP_DEVICE__ long1 make_long1 (long)
 
+__HIP_DEVICE__ long2 make_long2 (long, long)
 
+__HIP_DEVICE__ long3 make_long3 (long, long, long)
 
+__HIP_DEVICE__ long4 make_long4 (long, long, long, long)
 
+__HIP_DEVICE__ longlong1 make_longlong1 (long long)
 
+__HIP_DEVICE__ longlong2 make_longlong2 (long long, long long)
 
+__HIP_DEVICE__ longlong3 make_longlong3 (long long, long long, long long)
 
+__HIP_DEVICE__ longlong4 make_longlong4 (long long, long long, long long, long long)
 
+__HIP_DEVICE__ uchar1 make_uchar1 (unsigned char)
 
+__HIP_DEVICE__ uchar2 make_uchar2 (unsigned char, unsigned char)
 
+__HIP_DEVICE__ uchar3 make_uchar3 (unsigned char, unsigned char, unsigned char)
 
+__HIP_DEVICE__ uchar4 make_uchar4 (unsigned char, unsigned char, unsigned char, unsigned char)
 
+__HIP_DEVICE__ ushort1 make_ushort1 (unsigned short)
 
+__HIP_DEVICE__ ushort2 make_ushort2 (unsigned short, unsigned short)
 
+__HIP_DEVICE__ ushort3 make_ushort3 (unsigned short, unsigned short, unsigned short)
 
+__HIP_DEVICE__ ushort4 make_ushort4 (unsigned short, unsigned short, unsigned short, unsigned short)
 
+__HIP_DEVICE__ uint1 make_uint1 (unsigned int)
 
+__HIP_DEVICE__ uint2 make_uint2 (unsigned int, unsigned int)
 
+__HIP_DEVICE__ uint3 make_uint3 (unsigned int, unsigned int, unsigned int)
 
+__HIP_DEVICE__ uint4 make_uint4 (unsigned int, unsigned int, unsigned int, unsigned int)
 
+__HIP_DEVICE__ ulong1 make_ulong1 (unsigned long)
 
+__HIP_DEVICE__ ulong2 make_ulong2 (unsigned long, unsigned long)
 
+__HIP_DEVICE__ ulong3 make_ulong3 (unsigned long, unsigned long, unsigned long)
 
+__HIP_DEVICE__ ulong4 make_ulong4 (unsigned long, unsigned long, unsigned long, unsigned long)
 
+__HIP_DEVICE__ ulonglong1 make_ulonglong1 (unsigned long long)
 
+__HIP_DEVICE__ ulonglong2 make_ulonglong2 (unsigned long long, unsigned long long)
 
+__HIP_DEVICE__ ulonglong3 make_ulonglong3 (unsigned long long, unsigned long long, unsigned long long)
 
+__HIP_DEVICE__ ulonglong4 make_ulonglong4 (unsigned long long, unsigned long long, unsigned long long, unsigned long long)
 
+__HIP_DEVICE__ float1 make_float1 (float)
 
+__HIP_DEVICE__ float2 make_float2 (float, float)
 
+__HIP_DEVICE__ float3 make_float3 (float, float, float)
 
+__HIP_DEVICE__ float4 make_float4 (float, float, float, float)
 
+__HIP_DEVICE__ double1 make_double1 (double)
 
+__HIP_DEVICE__ double2 make_double2 (double, double)
 
+__HIP_DEVICE__ double3 make_double3 (double, double, double)
 
+__HIP_DEVICE__ double4 make_double4 (double, double, double, double)
 
+__HIP_DEVICE__ double __longlong_as_double (long long int x)
 
+__HIP_DEVICE__ long long int __double_as_longlong (double x)
 
+

Detailed Description

+

Defines the different newt vector types for HIP runtime.

+

Macro Definition Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
#define __hip_align( name,
 val,
 data 
)
+
+Value:
__attribute__((aligned(val))) name \
+
{ data }
+
+
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/hcc__detail_2hip__vector__types_8h_source.html b/docs/RuntimeAPI/html/hcc__detail_2hip__vector__types_8h_source.html new file mode 100644 index 0000000000..94a8896392 --- /dev/null +++ b/docs/RuntimeAPI/html/hcc__detail_2hip__vector__types_8h_source.html @@ -0,0 +1,547 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_vector_types.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_vector_types.h
+
+
+Go to the documentation of this file.
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
28 #ifndef HIP_VECTOR_TYPES_H
+
29 #define HIP_VECTOR_TYPES_H
+
30 
+
31 #if defined (__HCC__) && (__hcc_workweek__ < 16032)
+
32 #error("This version of HIP requires a newer version of HCC.");
+
33 #endif
+
34 
+
35 #if 0
+
36 #include <hc_short_vector.hpp>
+
37 
+
38 using namespace hc::short_vector;
+
39 
+
40 
+
41 //-- Signed
+
42 // Define char vector types
+
43 typedef hc::short_vector::char1 char1;
+
44 typedef hc::short_vector::char2 char2;
+
45 typedef hc::short_vector::char3 char3;
+
46 typedef hc::short_vector::char4 char4;
+
47 
+
48 // Define short vector types
+
49 typedef hc::short_vector::short1 short1;
+
50 typedef hc::short_vector::short2 short2;
+
51 typedef hc::short_vector::short3 short3;
+
52 typedef hc::short_vector::short4 short4;
+
53 
+
54 // Define int vector types
+
55 typedef hc::short_vector::int1 int1;
+
56 typedef hc::short_vector::int2 int2;
+
57 typedef hc::short_vector::int3 int3;
+
58 typedef hc::short_vector::int4 int4;
+
59 
+
60 // Define long vector types
+
61 typedef hc::short_vector::long1 long1;
+
62 typedef hc::short_vector::long2 long2;
+
63 typedef hc::short_vector::long3 long3;
+
64 typedef hc::short_vector::long4 long4;
+
65 
+
66 // Define longlong vector types
+
67 typedef hc::short_vector::longlong1 longlong1;
+
68 typedef hc::short_vector::longlong2 longlong2;
+
69 typedef hc::short_vector::longlong3 longlong3;
+
70 typedef hc::short_vector::longlong4 longlong4;
+
71 
+
72 
+
73 //-- Unsigned
+
74 // Define uchar vector types
+
75 typedef hc::short_vector::uchar1 uchar1;
+
76 typedef hc::short_vector::uchar2 uchar2;
+
77 typedef hc::short_vector::uchar3 uchar3;
+
78 typedef hc::short_vector::uchar4 uchar4;
+
79 
+
80 // Define ushort vector types
+
81 typedef hc::short_vector::ushort1 ushort1;
+
82 typedef hc::short_vector::ushort2 ushort2;
+
83 typedef hc::short_vector::ushort3 ushort3;
+
84 typedef hc::short_vector::ushort4 ushort4;
+
85 
+
86 // Define uint vector types
+
87 typedef hc::short_vector::uint1 uint1;
+
88 typedef hc::short_vector::uint2 uint2;
+
89 typedef hc::short_vector::uint3 uint3;
+
90 typedef hc::short_vector::uint4 uint4;
+
91 
+
92 // Define ulong vector types
+
93 typedef hc::short_vector::ulong1 ulong1;
+
94 typedef hc::short_vector::ulong2 ulong2;
+
95 typedef hc::short_vector::ulong3 ulong3;
+
96 typedef hc::short_vector::ulong4 ulong4;
+
97 
+
98 // Define ulonglong vector types
+
99 typedef hc::short_vector::ulonglong1 ulonglong1;
+
100 typedef hc::short_vector::ulonglong2 ulonglong2;
+
101 typedef hc::short_vector::ulonglong3 ulonglong3;
+
102 typedef hc::short_vector::ulonglong4 ulonglong4;
+
103 
+
104 
+
105 //-- Floating point
+
106 // Define float vector types
+
107 typedef hc::short_vector::float1 float1;
+
108 typedef hc::short_vector::float2 float2;
+
109 typedef hc::short_vector::float3 float3;
+
110 typedef hc::short_vector::float4 float4;
+
111 
+
112 // Define double vector types
+
113 typedef hc::short_vector::double1 double1;
+
114 typedef hc::short_vector::double2 double2;
+
115 typedef hc::short_vector::double3 double3;
+
116 typedef hc::short_vector::double4 double4;
+
117 
+
118 #else
+
119 
+
120 #define __hip_align(name, val, data) \
+
121  __attribute__((aligned(val))) name \
+
122  { data }
+
123 
+
124 struct __hip_align(char1, 1, signed char x;);
+
125 struct __hip_align(uchar1, 1, unsigned char x;);
+
126 
+
127 struct __hip_align(char2, 2, signed char x; signed char y;);
+
128 struct __hip_align(uchar2, 2, unsigned char x; unsigned char y;);
+
129 
+
130 struct char3
+
131 {
+
132  signed char x, y, z;
+
133 };
+
134 
+
135 struct uchar3
+
136 {
+
137  unsigned char x, y, z;
+
138 };
+
139 
+
140 struct char4
+
141 {
+
142  union {
+
143  signed char x, y, z, w;
+
144  unsigned int val;
+
145  };
+
146 };
+
147 
+
148 struct uchar4
+
149 {
+
150  union {
+
151  unsigned char x, y, z, w;
+
152  unsigned int val;
+
153  };
+
154 };
+
155 
+
156 //struct __hip_align(char4, 4, signed char x; signed char y; signed char z; signed char w;);
+
157 //struct __hip_align(uchar4, 4, unsigned char x; unsigned char y; unsigned char z; unsigned char w;);
+
158 
+
159 struct __hip_align(short1, 2, signed short x;);
+
160 struct __hip_align(ushort1, 2, unsigned short x;);
+
161 
+
162 struct __hip_align(short2, 4, signed short x; signed short y;);
+
163 struct __hip_align(ushort2, 4, unsigned short x; unsigned short y;);
+
164 
+
165 struct short3
+
166 {
+
167  signed short x, y, z;
+
168 };
+
169 
+
170 struct ushort3
+
171 {
+
172  unsigned short x, y, z;
+
173 };
+
174 
+
175 struct __hip_align(short4, 8, signed short x; signed short y; signed short z; signed short w;);
+
176 struct __hip_align(ushort4, 8, unsigned short x; unsigned short y; unsigned short z; unsigned short w;);
+
177 
+
178 struct __hip_align(int1, 4, signed int x;);
+
179 struct __hip_align(uint1, 4, unsigned int x;);
+
180 
+
181 struct __hip_align(int2, 8, signed int x; signed int y;);
+
182 struct __hip_align(uint2, 8, unsigned int x; unsigned int y;);
+
183 
+
184 struct int3{
+
185  signed int x, y, z;
+
186 };
+
187 struct uint3{
+
188  unsigned int x, y, z;
+
189 };
+
190 
+
191 struct __hip_align(int4, 16, signed int x; signed int y; signed int z; signed int w;);
+
192 struct __hip_align(uint4, 16, unsigned int x; unsigned int y; unsigned int z; unsigned int w;);
+
193 
+
194 struct __hip_align(long1, 8, long int x;);
+
195 struct __hip_align(ulong1, 8, unsigned long x;);
+
196 
+
197 struct __hip_align(long2, 16, long int x; long int y;);
+
198 struct __hip_align(ulong2, 16, unsigned long x; unsigned long y;);
+
199 
+
200 struct long3{
+
201  long int x, y, z;
+
202 };
+
203 struct ulong3{
+
204  unsigned long x, y, z;
+
205 };
+
206 
+
207 struct __hip_align(long4, 32, long int x; long int y; long int z; long int w;);
+
208 struct __hip_align(ulong4, 32, unsigned long x; unsigned long y; unsigned long z; unsigned long w;);
+
209 
+
210 struct float1
+
211 {
+
212  float x;
+
213 };
+
214 
+
215 struct __hip_align(float2, 8, float x; float y;);
+
216 
+
217 struct float3
+
218 {
+
219  float x, y, z;
+
220 };
+
221 
+
222 struct __hip_align(float4, 16, float x; float y; float z; float w;);
+
223 
+
224 struct __hip_align(longlong1, 16, long long int x;);
+
225 struct __hip_align(ulonglong1, 16, unsigned long long int x;);
+
226 
+
227 struct __attribute__((aligned(32))) longlong2
+
228 {
+
229  long long int x, y;
+
230 };
+
231 
+
232 struct __attribute__((aligned(32))) ulonglong2
+
233 {
+
234  unsigned long long int x, y;
+
235 };
+
236 
+
237 struct longlong3
+
238 {
+
239  long long int x, y, z;
+
240 };
+
241 
+ +
243 {
+
244  unsigned long long int x, y, z;
+
245 };
+
246 
+
247 struct __attribute__((aligned(64))) longlong4
+
248 {
+
249  long long int x, y, z, w;
+
250 };
+
251 
+
252 struct __attribute__((aligned(64))) ulonglong4
+
253 {
+
254  unsigned long long int x, y, z, w;
+
255 };
+
256 
+
257 struct double1
+
258 {
+
259  double x;
+
260 };
+
261 
+
262 struct __attribute__((aligned(16))) double2
+
263 {
+
264  double x, y;
+
265 };
+
266 
+
267 struct double3
+
268 {
+
269  double x, y, z;
+
270 };
+
271 
+
272 struct __attribute__((aligned(32))) double4
+
273 {
+
274  double x, y, z, w;
+
275 };
+
276 
+
277 #endif
+
278 
+
279 #if __HCC__
+ +
281 #define __HIP_DEVICE__ __device__ __host__
+
282 #else
+
283 #define __HIP_DEVICE__
+
284 #endif
+
285 
+
286 __HIP_DEVICE__ char1 make_char1(signed char );
+
287 __HIP_DEVICE__ char2 make_char2(signed char, signed char );
+
288 __HIP_DEVICE__ char3 make_char3(signed char, signed char, signed char );
+
289 __HIP_DEVICE__ char4 make_char4(signed char, signed char, signed char, signed char );
+
290 
+
291 __HIP_DEVICE__ short1 make_short1(short );
+
292 __HIP_DEVICE__ short2 make_short2(short, short );
+
293 __HIP_DEVICE__ short3 make_short3(short, short, short );
+
294 __HIP_DEVICE__ short4 make_short4(short, short, short, short );
+
295 
+
296 __HIP_DEVICE__ int1 make_int1(int );
+
297 __HIP_DEVICE__ int2 make_int2(int, int );
+
298 __HIP_DEVICE__ int3 make_int3(int, int, int );
+
299 __HIP_DEVICE__ int4 make_int4(int, int, int, int );
+
300 
+
301 __HIP_DEVICE__ long1 make_long1(long );
+
302 __HIP_DEVICE__ long2 make_long2(long, long );
+
303 __HIP_DEVICE__ long3 make_long3(long, long, long );
+
304 __HIP_DEVICE__ long4 make_long4(long, long, long, long );
+
305 
+
306 __HIP_DEVICE__ longlong1 make_longlong1(long long );
+
307 __HIP_DEVICE__ longlong2 make_longlong2(long long, long long );
+
308 __HIP_DEVICE__ longlong3 make_longlong3(long long, long long, long long );
+
309 __HIP_DEVICE__ longlong4 make_longlong4(long long, long long, long long, long long );
+
310 
+
311 __HIP_DEVICE__ uchar1 make_uchar1(unsigned char );
+
312 __HIP_DEVICE__ uchar2 make_uchar2(unsigned char, unsigned char );
+
313 __HIP_DEVICE__ uchar3 make_uchar3(unsigned char, unsigned char, unsigned char );
+
314 __HIP_DEVICE__ uchar4 make_uchar4(unsigned char, unsigned char, unsigned char, unsigned char );
+
315 
+
316 __HIP_DEVICE__ ushort1 make_ushort1(unsigned short );
+
317 __HIP_DEVICE__ ushort2 make_ushort2(unsigned short, unsigned short );
+
318 __HIP_DEVICE__ ushort3 make_ushort3(unsigned short, unsigned short, unsigned short );
+
319 __HIP_DEVICE__ ushort4 make_ushort4(unsigned short, unsigned short, unsigned short, unsigned short );
+
320 
+
321 __HIP_DEVICE__ uint1 make_uint1(unsigned int );
+
322 __HIP_DEVICE__ uint2 make_uint2(unsigned int, unsigned int );
+
323 __HIP_DEVICE__ uint3 make_uint3(unsigned int, unsigned int, unsigned int );
+
324 __HIP_DEVICE__ uint4 make_uint4(unsigned int, unsigned int, unsigned int, unsigned int );
+
325 
+
326 __HIP_DEVICE__ ulong1 make_ulong1(unsigned long );
+
327 __HIP_DEVICE__ ulong2 make_ulong2(unsigned long, unsigned long );
+
328 __HIP_DEVICE__ ulong3 make_ulong3(unsigned long, unsigned long, unsigned long );
+
329 __HIP_DEVICE__ ulong4 make_ulong4(unsigned long, unsigned long, unsigned long, unsigned long );
+
330 
+
331 __HIP_DEVICE__ ulonglong1 make_ulonglong1(unsigned long long );
+
332 __HIP_DEVICE__ ulonglong2 make_ulonglong2(unsigned long long, unsigned long long);
+
333 __HIP_DEVICE__ ulonglong3 make_ulonglong3(unsigned long long, unsigned long long, unsigned long long);
+
334 __HIP_DEVICE__ ulonglong4 make_ulonglong4(unsigned long long, unsigned long long, unsigned long long, unsigned long long );
+
335 
+
336 __HIP_DEVICE__ float1 make_float1(float );
+
337 __HIP_DEVICE__ float2 make_float2(float, float );
+
338 __HIP_DEVICE__ float3 make_float3(float, float, float );
+
339 __HIP_DEVICE__ float4 make_float4(float, float, float, float );
+
340 
+
341 __HIP_DEVICE__ double1 make_double1(double );
+
342 __HIP_DEVICE__ double2 make_double2(double, double );
+
343 __HIP_DEVICE__ double3 make_double3(double, double, double );
+
344 __HIP_DEVICE__ double4 make_double4(double, double, double, double );
+
345 
+
346 extern __HIP_DEVICE__ double __longlong_as_double(long long int x);
+
347 extern __HIP_DEVICE__ long long int __double_as_longlong(double x);
+
348 
+
349 
+
350 /*
+
352 // Inline functions for creating vector types from basic types
+
353 #define ONE_COMPONENT_ACCESS(T, VT) inline VT make_ ##VT [[hc]] [[cpu]] (T x) { VT t; t.x = x; return t; };
+
354 #define TWO_COMPONENT_ACCESS(T, VT) inline VT make_ ##VT [[hc]] [[cpu]] (T x, T y) { VT t; t.x=x; t.y=y; return t; };
+
355 #define THREE_COMPONENT_ACCESS(T, VT) inline VT make_ ##VT [[hc]] [[cpu]] (T x, T y, T z) { VT t; t.x=x; t.y=y; t.z=z; return t; };
+
356 #define FOUR_COMPONENT_ACCESS(T, VT) inline VT make_ ##VT [[hc]] [[cpu]] (T x, T y, T z, T w) { VT t; t.x=x; t.y=y; t.z=z; t.w=w; return t; };
+
357 
+
358 
+
359 //signed:
+
360 ONE_COMPONENT_ACCESS (signed char, char1);
+
361 TWO_COMPONENT_ACCESS (signed char, char2);
+
362 THREE_COMPONENT_ACCESS(signed char, char3);
+
363 FOUR_COMPONENT_ACCESS (signed char, char4);
+
364 
+
365 ONE_COMPONENT_ACCESS (short, short1);
+
366 TWO_COMPONENT_ACCESS (short, short2);
+
367 THREE_COMPONENT_ACCESS(short, short3);
+
368 FOUR_COMPONENT_ACCESS (short, short4);
+
369 
+
370 ONE_COMPONENT_ACCESS (int, int1);
+
371 TWO_COMPONENT_ACCESS (int, int2);
+
372 THREE_COMPONENT_ACCESS(int, int3);
+
373 FOUR_COMPONENT_ACCESS (int, int4);
+
374 
+
375 ONE_COMPONENT_ACCESS (long int, long1);
+
376 TWO_COMPONENT_ACCESS (long int, long2);
+
377 THREE_COMPONENT_ACCESS(long int, long3);
+
378 FOUR_COMPONENT_ACCESS (long int, long4);
+
379 
+
380 ONE_COMPONENT_ACCESS (long long int, ulong1);
+
381 TWO_COMPONENT_ACCESS (long long int, ulong2);
+
382 THREE_COMPONENT_ACCESS(long long int, ulong3);
+
383 FOUR_COMPONENT_ACCESS (long long int, ulong4);
+
384 
+
385 ONE_COMPONENT_ACCESS (long long int, longlong1);
+
386 TWO_COMPONENT_ACCESS (long long int, longlong2);
+
387 THREE_COMPONENT_ACCESS(long long int, longlong3);
+
388 FOUR_COMPONENT_ACCESS (long long int, longlong4);
+
389 
+
390 
+
391 // unsigned:
+
392 ONE_COMPONENT_ACCESS (unsigned char, uchar1);
+
393 TWO_COMPONENT_ACCESS (unsigned char, uchar2);
+
394 THREE_COMPONENT_ACCESS(unsigned char, uchar3);
+
395 FOUR_COMPONENT_ACCESS (unsigned char, uchar4);
+
396 
+
397 ONE_COMPONENT_ACCESS (unsigned short, ushort1);
+
398 TWO_COMPONENT_ACCESS (unsigned short, ushort2);
+
399 THREE_COMPONENT_ACCESS(unsigned short, ushort3);
+
400 FOUR_COMPONENT_ACCESS (unsigned short, ushort4);
+
401 
+
402 ONE_COMPONENT_ACCESS (unsigned int, uint1);
+
403 TWO_COMPONENT_ACCESS (unsigned int, uint2);
+
404 THREE_COMPONENT_ACCESS(unsigned int, uint3);
+
405 FOUR_COMPONENT_ACCESS (unsigned int, uint4);
+
406 
+
407 ONE_COMPONENT_ACCESS (unsigned long int, ulong1);
+
408 TWO_COMPONENT_ACCESS (unsigned long int, ulong2);
+
409 THREE_COMPONENT_ACCESS(unsigned long int, ulong3);
+
410 FOUR_COMPONENT_ACCESS (unsigned long int, ulong4);
+
411 
+
412 ONE_COMPONENT_ACCESS (unsigned long long int, ulong1);
+
413 TWO_COMPONENT_ACCESS (unsigned long long int, ulong2);
+
414 THREE_COMPONENT_ACCESS(unsigned long long int, ulong3);
+
415 FOUR_COMPONENT_ACCESS (unsigned long long int, ulong4);
+
416 
+
417 ONE_COMPONENT_ACCESS (unsigned long long int, ulonglong1);
+
418 TWO_COMPONENT_ACCESS (unsigned long long int, ulonglong2);
+
419 THREE_COMPONENT_ACCESS(unsigned long long int, ulonglong3);
+
420 FOUR_COMPONENT_ACCESS (unsigned long long int, ulonglong4);
+
421 
+
422 
+
423 //Floating point
+
424 ONE_COMPONENT_ACCESS (float, float1);
+
425 TWO_COMPONENT_ACCESS (float, float2);
+
426 THREE_COMPONENT_ACCESS(float, float3);
+
427 FOUR_COMPONENT_ACCESS (float, float4);
+
428 
+
429 ONE_COMPONENT_ACCESS (double, double1);
+
430 TWO_COMPONENT_ACCESS (double, double2);
+
431 THREE_COMPONENT_ACCESS(double, double3);
+
432 FOUR_COMPONENT_ACCESS (double, double4);
+
433 */
+
434 
+
435 #endif
+
436 
+
Definition: hip_vector_types.h:135
+
Definition: hip_vector_types.h:187
+
Definition: hip_vector_types.h:203
+
Definition: hip_vector_types.h:257
+
TODO-doc.
+
Definition: hip_vector_types.h:217
+
Definition: hip_vector_types.h:165
+
Definition: hip_vector_types.h:237
+
Definition: hip_vector_types.h:184
+
Definition: hip_vector_types.h:242
+
Definition: hip_vector_types.h:140
+
Definition: hip_vector_types.h:200
+
Definition: hip_vector_types.h:267
+
Definition: hip_vector_types.h:170
+
Definition: hip_vector_types.h:130
+
Definition: hip_vector_types.h:148
+
Definition: hip_vector_types.h:210
+
+ + + + diff --git a/docs/RuntimeAPI/html/hierarchy.html b/docs/RuntimeAPI/html/hierarchy.html new file mode 100644 index 0000000000..7a51e86a9f --- /dev/null +++ b/docs/RuntimeAPI/html/hierarchy.html @@ -0,0 +1,150 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Class Hierarchy + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
Class Hierarchy
+
+
+
This inheritance list is sorted roughly, but not completely, alphabetically:
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__common_8h_source.html b/docs/RuntimeAPI/html/hip__common_8h_source.html new file mode 100644 index 0000000000..fbe04a41b0 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__common_8h_source.html @@ -0,0 +1,186 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hip_common.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_common.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #pragma once
+
24 
+
25 // Common code included at start of every hip file.
+
26 // Auto enable __HIP_PLATFORM_HCC__ if compiling with HCC
+
27 // Other compiler (GCC,ICC,etc) need to set one of these macros explicitly
+
28 #if defined(__HCC__)
+
29 #define __HIP_PLATFORM_HCC__
+
30 #define __HIPCC__
+
31 
+
32 #if defined(__HCC_ACCELERATOR__) && (__HCC_ACCELERATOR__ != 0)
+
33 #define __HIP_DEVICE_COMPILE__ 1
+
34 #else
+
35 #define __HIP_DEVICE_COMPILE__ 0
+
36 #endif
+
37 #endif
+
38 
+
39 // Auto enable __HIP_PLATFORM_NVCC__ if compiling with NVCC
+
40 #if defined(__NVCC__)
+
41 #define __HIP_PLATFORM_NVCC__
+
42 # ifdef __CUDACC__
+
43 # define __HIPCC__
+
44 # endif
+
45 
+
46 #if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ != 0)
+
47 #define __HIP_DEVICE_COMPILE__ 1
+
48 #else
+
49 #define __HIP_DEVICE_COMPILE__ 0
+
50 #endif
+
51 
+
52 #endif
+
53 
+
54 
+
55 
+
56 
+
57 #if __HIP_DEVICE_COMPILE__ == 0
+
58 // 32-bit Atomics
+
59 #define __HIP_ARCH_HAS_GLOBAL_INT32_ATOMICS__ (0)
+
60 #define __HIP_ARCH_HAS_GLOBAL_FLOAT_ATOMIC_EXCH__ (0)
+
61 #define __HIP_ARCH_HAS_SHARED_INT32_ATOMICS__ (0)
+
62 #define __HIP_ARCH_HAS_SHARED_FLOAT_ATOMIC_EXCH__ (0)
+
63 #define __HIP_ARCH_HAS_FLOAT_ATOMIC_ADD__ (0)
+
64 
+
65 // 64-bit Atomics
+
66 #define __HIP_ARCH_HAS_GLOBAL_INT64_ATOMICS__ (0)
+
67 #define __HIP_ARCH_HAS_SHARED_INT64_ATOMICS__ (0)
+
68 
+
69 // Doubles
+
70 #define __HIP_ARCH_HAS_DOUBLES__ (0)
+
71 
+
72 // Warp cross-lane operations
+
73 #define __HIP_ARCH_HAS_WARP_VOTE__ (0)
+
74 #define __HIP_ARCH_HAS_WARP_BALLOT__ (0)
+
75 #define __HIP_ARCH_HAS_WARP_SHUFFLE__ (0)
+
76 #define __HIP_ARCH_HAS_WARP_FUNNEL_SHIFT__ (0)
+
77 
+
78 // Sync
+
79 #define __HIP_ARCH_HAS_THREAD_FENCE_SYSTEM__ (0)
+
80 #define __HIP_ARCH_HAS_SYNC_THREAD_EXT__ (0)
+
81 
+
82 // Misc
+
83 #define __HIP_ARCH_HAS_SURFACE_FUNCS__ (0)
+
84 #define __HIP_ARCH_HAS_3DGRID__ (0)
+
85 #define __HIP_ARCH_HAS_DYNAMIC_PARALLEL__ (0)
+
86 #endif
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__complex_8h_source.html b/docs/RuntimeAPI/html/hip__complex_8h_source.html new file mode 100644 index 0000000000..94525b02a3 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__complex_8h_source.html @@ -0,0 +1,134 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hip_complex.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_complex.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #pragma once
+
24 
+
25 #include <hip/hip_common.h>
+
26 
+
27 #if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
+
28 #include <hip/hcc_detail/hip_complex.h>
+
29 #elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
+
30 #include <hip/nvcc_detail/hip_complex.h>
+
31 #else
+
32 #error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
+
33 #endif
+
34 
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__fp16_8h_source.html b/docs/RuntimeAPI/html/hip__fp16_8h_source.html new file mode 100644 index 0000000000..219cf2d03c --- /dev/null +++ b/docs/RuntimeAPI/html/hip__fp16_8h_source.html @@ -0,0 +1,133 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hip_fp16.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_fp16.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #pragma once
+
24 
+
25 #include <hip/hip_common.h>
+
26 
+
27 #if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
+
28 #include <hip/hcc_detail/hip_fp16.h>
+
29 #elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
+
30 #include "cuda_fp16.h"
+
31 #else
+
32 #error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
+
33 #endif
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__hcc_8cpp.html b/docs/RuntimeAPI/html/hip__hcc_8cpp.html new file mode 100644 index 0000000000..7a1c376dc0 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__hcc_8cpp.html @@ -0,0 +1,486 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/src/hip_hcc.cpp File Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
hip_hcc.cpp File Reference
+
+
+
#include <assert.h>
+#include <stdint.h>
+#include <iostream>
+#include <sstream>
+#include <list>
+#include <sys/types.h>
+#include <unistd.h>
+#include <deque>
+#include <vector>
+#include <algorithm>
+#include <atomic>
+#include <hc.hpp>
+#include <hc_am.hpp>
+#include "hsa/hsa_ext_amd.h"
+#include "libhsakmt/hsakmt.h"
+#include "hip/hip_runtime.h"
+#include "hip_hcc.h"
+#include "trace_helper.h"
+
+ + + + + + + + + + + + + + + + + +

+Macros

+#define USE_COPY_EXT_V2   1
 
+#define HIP_USE_PRODUCT_NAME   1
 
+#define ErrorCheck(x)   error_check(x, __LINE__, __FILE__)
 
+#define DeviceErrorCheck(x)   if (x != HSA_STATUS_SUCCESS) { return hipErrorInvalidDevice; }
 
#define READ_ENV_I(_build, _ENV_VAR, _ENV_VAR2, _description)
 
#define READ_ENV_S(_build, _ENV_VAR, _ENV_VAR2, _description)
 
#define READ_ENV_C(_build, _ENV_VAR, _ENV_VAR2, _description, _callback)
 
+#define CASE_STRING(X)   case X: return #X ;break;
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

+std::string HIP_TRACE_API_COLOR ("green")
 
+std::atomic< int > g_lastShortTid (1)
 
+void recordApiTrace (std::string *fullStr, const std::string &apiStr)
 
+ihipDevice_tihipGetDevice (int deviceIndex)
 
+ihipCtx_tihipGetPrimaryCtx (unsigned deviceIndex)
 
+void ihipSetTlsDefaultCtx (ihipCtx_t *ctx)
 
+ihipCtx_tihipGetTlsDefaultCtx ()
 
+hipError_t ihipSynchronize (void)
 
+void error_check (hsa_status_t hsa_error_code, int line_num, std::string str)
 
+hsa_status_t FindGpuDevice (hsa_agent_t agent, void *data)
 
+hsa_status_t GetDevicePool (hsa_amd_memory_pool_t pool, void *data)
 
+int checkAccess (hsa_agent_t agent, hsa_amd_memory_pool_t pool)
 
+hsa_status_t get_region_info (hsa_region_t region, void *data)
 
+void ihipReadEnv_I (int *var_ptr, const char *var_name1, const char *var_name2, const char *description)
 
+void ihipReadEnv_S (std::string *var_ptr, const char *var_name1, const char *var_name2, const char *description)
 
+void ihipReadEnv_Callback (void *var_ptr, const char *var_name1, const char *var_name2, const char *description, std::string(*setterCallback)(void *var_ptr, const char *env))
 
+void parseTrigger (std::string triggerString, std::vector< ProfTrigger > &profTriggers)
 
+std::string HIP_DB_string (unsigned db)
 
+std::string HIP_DB_callback (void *var_ptr, const char *envVarString)
 
+std::string HIP_VISIBLE_DEVICES_callback (void *var_ptr, const char *envVarString)
 
+void ihipInit ()
 
+hipStream_t ihipSyncAndResolveStream (hipStream_t stream)
 
+void ihipPrintKernelLaunch (const char *kernelName, const grid_launch_parm *lp, const hipStream_t stream)
 
+hipStream_t ihipPreLaunchKernel (hipStream_t stream, dim3 grid, dim3 block, grid_launch_parm *lp, const char *kernelNameStr)
 
+hipStream_t ihipPreLaunchKernel (hipStream_t stream, size_t grid, dim3 block, grid_launch_parm *lp, const char *kernelNameStr)
 
+hipStream_t ihipPreLaunchKernel (hipStream_t stream, dim3 grid, size_t block, grid_launch_parm *lp, const char *kernelNameStr)
 
+hipStream_t ihipPreLaunchKernel (hipStream_t stream, size_t grid, size_t block, grid_launch_parm *lp, const char *kernelNameStr)
 
+void ihipPostLaunchKernel (const char *kernelName, hipStream_t stream, grid_launch_parm &lp)
 
+const char * ihipErrorString (hipError_t hip_error)
 
+void ihipSetTs (hipEvent_t e)
 
+const char * hipMemcpyStr (unsigned memKind)
 
+const char * hcMemcpyStr (hc::hcCommandKind memKind)
 
hipError_t hipProfilerStart ()
 Start recording of profiling information When using this API, start the profiler with profiling disabled. (–startdisabled) More...
 
hipError_t hipProfilerStop ()
 Stop recording of profiling information. When using this API, start the profiler with profiling disabled. (–startdisabled) More...
 
+hipError_t hipHccGetAccelerator (int deviceId, hc::accelerator *acc)
 
+hipError_t hipHccGetAcceleratorView (hipStream_t stream, hc::accelerator_view **av)
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Variables

+const int release = 1
 
+const char * API_COLOR = KGRN
 
+const char * API_COLOR_END = KNRM
 
+int HIP_LAUNCH_BLOCKING = 0
 
+std::string HIP_LAUNCH_BLOCKING_KERNELS
 
+std::vector< std::string > g_hipLaunchBlockingKernels
 
+int HIP_API_BLOCKING = 0
 
+int HIP_PRINT_ENV = 0
 
+int HIP_TRACE_API = 0
 
+int HIP_PROFILE_API = 0
 
+std::string HIP_DB_START_API
 
+std::string HIP_DB_STOP_API
 
+int HIP_DB = 0
 
+int HIP_VISIBLE_DEVICES = 0
 
+int HIP_NUM_KERNELS_INFLIGHT = 128
 
+int HIP_WAIT_MODE = 0
 
+int HIP_FORCE_P2P_HOST = 0
 
+int HIP_DENY_PEER_ACCESS = 0
 
+int HIP_FORCE_SYNC_COPY = 0
 
+int HIP_COHERENT_HOST_ALLOC = 0
 
+std::once_flag hip_initialized
 
+ihipDevice_t ** g_deviceArray
 
+bool g_visible_device = false
 
+unsigned g_deviceCnt
 
+std::vector< int > g_hip_visible_devices
 
+hsa_agent_t g_cpu_agent
 
+unsigned g_numLogicalThreads
 
+std::vector< ProfTriggerg_dbStartTriggers
 
+std::vector< ProfTriggerg_dbStopTriggers
 
+thread_local hipError_t tls_lastHipError = hipSuccess
 
+thread_local ShortTid tls_shortTid
 
+

Detailed Description

+

Contains definitions for functions that are large enough that we don't want to inline them everywhere. This file is compiled and linked into apps running HIP / HCC path.

+

Macro Definition Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#define READ_ENV_C( _build,
 _ENV_VAR,
 _ENV_VAR2,
 _description,
 _callback 
)
+
+Value:
if (_build == release) {\
+
ihipReadEnv_Callback(&_ENV_VAR, #_ENV_VAR, #_ENV_VAR2, _description, _callback);\
+
};
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#define READ_ENV_I( _build,
 _ENV_VAR,
 _ENV_VAR2,
 _description 
)
+
+Value:
if (_build == release) {\
+
ihipReadEnv_I(&_ENV_VAR, #_ENV_VAR, #_ENV_VAR2, _description);\
+
};
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#define READ_ENV_S( _build,
 _ENV_VAR,
 _ENV_VAR2,
 _description 
)
+
+Value:
if (_build == release) {\
+
ihipReadEnv_S(&_ENV_VAR, #_ENV_VAR, #_ENV_VAR2, _description);\
+
};
+
+
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__hcc_8h_source.html b/docs/RuntimeAPI/html/hip__hcc_8h_source.html new file mode 100644 index 0000000000..47908b7e34 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__hcc_8h_source.html @@ -0,0 +1,922 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/src/hip_hcc.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_hcc.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #ifndef HIP_HCC_H
+
24 #define HIP_HCC_H
+
25 
+
26 #include <hc.hpp>
+
27 #include <hsa/hsa.h>
+
28 #include "hsa/hsa_ext_amd.h"
+
29 #include "hip_util.h"
+
30 
+
31 
+
32 #if defined(__HCC__) && (__hcc_workweek__ < 16354)
+
33 #error("This version of HIP requires a newer version of HCC.");
+
34 #endif
+
35 
+
36 #define USE_DISPATCH_HSA_KERNEL 1
+
37 //
+
38 
+
39 
+
40 //---
+
41 // Environment variables:
+
42 
+
43 // Intended to distinguish whether an environment variable should be visible only in debug mode, or in debug+release.
+
44 //static const int debug = 0;
+
45 extern const int release;
+
46 
+
47 // TODO - this blocks both kernels and memory ops. Perhaps should have separate env var for kernels?
+
48 extern int HIP_LAUNCH_BLOCKING;
+
49 extern int HIP_API_BLOCKING;
+
50 
+
51 extern int HIP_PRINT_ENV;
+
52 extern int HIP_PROFILE_API;
+
53 //extern int HIP_TRACE_API;
+
54 extern int HIP_ATP;
+
55 extern int HIP_DB;
+
56 extern int HIP_STAGING_SIZE; /* size of staging buffers, in KB */
+
57 extern int HIP_STREAM_SIGNALS; /* number of signals to allocate at stream creation */
+
58 extern int HIP_VISIBLE_DEVICES; /* Contains a comma-separated sequence of GPU identifiers */
+
59 extern int HIP_FORCE_P2P_HOST;
+
60 
+
61 extern int HIP_COHERENT_HOST_ALLOC;
+
62 
+
63 
+
64 //---
+
65 // Chicken bits for disabling functionality to work around potential issues:
+
66 extern int HIP_DISABLE_HW_KERNEL_DEP;
+
67 
+
68 
+
69 // Class to assign a short TID to each new thread, for HIP debugging purposes.
+
70 class ShortTid {
+
71 public:
+
72 
+
73  ShortTid() ;
+
74 
+
75  int tid() const { return _shortTid; };
+
76  uint64_t incApiSeqNum() { return ++_apiSeqNum; };
+
77  uint64_t apiSeqNum() const { return _apiSeqNum; };
+
78 
+
79 private:
+
80  int _shortTid;
+
81 
+
82  // monotonically increasing API sequence number for this threa.
+
83  uint64_t _apiSeqNum;
+
84 };
+
85 
+
86 struct ProfTrigger {
+
87 
+
88  static const uint64_t MAX_TRIGGER = std::numeric_limits<uint64_t>::max();
+
89 
+
90  void print (int tid) {
+
91  std::cout << "Enabling tracing for ";
+
92  for (auto iter=_profTrigger.begin(); iter != _profTrigger.end(); iter++) {
+
93  std::cout << "tid:" << tid << "." << *iter << ",";
+
94  }
+
95  std::cout << "\n";
+
96  };
+
97 
+
98  uint64_t nextTrigger() { return _profTrigger.empty() ? MAX_TRIGGER : _profTrigger.back(); };
+
99  void add(uint64_t trigger) { _profTrigger.push_back(trigger); };
+
100  void sort() { std::sort (_profTrigger.begin(), _profTrigger.end(), std::greater<int>()); };
+
101 private:
+
102  std::vector<uint64_t> _profTrigger;
+
103 };
+
104 
+
105 
+
106 
+
107 //---
+
108 //Extern tls
+
109 extern thread_local hipError_t tls_lastHipError;
+
110 extern thread_local ShortTid tls_shortTid;
+
111 
+
112 extern std::vector<ProfTrigger> g_dbStartTriggers;
+
113 extern std::vector<ProfTrigger> g_dbStopTriggers;
+
114 
+
115 //---
+
116 //Forward defs:
+
117 class ihipStream_t;
+
118 class ihipDevice_t;
+
119 class ihipCtx_t;
+
120 
+
121 // Color defs for debug messages:
+
122 #define KNRM "\x1B[0m"
+
123 #define KRED "\x1B[31m"
+
124 #define KGRN "\x1B[32m"
+
125 #define KYEL "\x1B[33m"
+
126 #define KBLU "\x1B[34m"
+
127 #define KMAG "\x1B[35m"
+
128 #define KCYN "\x1B[36m"
+
129 #define KWHT "\x1B[37m"
+
130 
+
131 extern const char *API_COLOR;
+
132 extern const char *API_COLOR_END;
+
133 
+
134 
+
135 // If set, thread-safety is enforced on all stream functions.
+
136 // Stream functions will acquire a mutex before entering critical sections.
+
137 #define STREAM_THREAD_SAFE 1
+
138 
+
139 
+
140 #define CTX_THREAD_SAFE 1
+
141 
+
142 
+
143 // Compile debug trace mode - this prints debug messages to stderr when env var HIP_DB is set.
+
144 // May be set to 0 to remove debug if checks - possible code size and performance difference?
+
145 #define COMPILE_HIP_DB 1
+
146 
+
147 
+
148 // Compile HIP tracing capability.
+
149 // 0x1 = print a string at function entry with arguments.
+
150 // 0x2 = prints a simple message with function name + return code when function exits.
+
151 // 0x3 = print both.
+
152 // Must be enabled at runtime with HIP_TRACE_API
+
153 #define COMPILE_HIP_TRACE_API 0x3
+
154 
+
155 
+
156 // Compile code that generates trace markers for CodeXL ATP at HIP function begin/end.
+
157 // ATP is standard CodeXL format that includes timestamps for kernels, HSA RT APIs, and HIP APIs.
+
158 #ifndef COMPILE_HIP_ATP_MARKER
+
159 #define COMPILE_HIP_ATP_MARKER 0
+
160 #endif
+
161 
+
162 
+
163 
+
164 
+
165 // Compile support for trace markers that are displayed on CodeXL GUI at start/stop of each function boundary.
+
166 // TODO - currently we print the trace message at the beginning. if we waited, we could also include return codes, and any values returned
+
167 // through ptr-to-args (ie the pointers allocated by hipMalloc).
+
168 #if COMPILE_HIP_ATP_MARKER
+
169 #include "CXLActivityLogger.h"
+
170 #define MARKER_BEGIN(markerName,group) amdtBeginMarker(markerName, group, nullptr);
+
171 #define MARKER_END() amdtEndMarker();
+
172 #define RESUME_PROFILING amdtResumeProfiling(AMDT_ALL_PROFILING);
+
173 #define STOP_PROFILING amdtStopProfiling(AMDT_ALL_PROFILING);
+
174 #else
+
175 // Swallow scoped markers:
+
176 #define MARKER_BEGIN(markerName,group)
+
177 #define MARKER_END()
+
178 #define RESUME_PROFILING
+
179 #define STOP_PROFILING
+
180 #endif
+
181 
+
182 
+
183 extern void recordApiTrace(std::string *fullStr, const std::string &apiStr);
+
184 
+
185 #if COMPILE_HIP_ATP_MARKER || (COMPILE_HIP_TRACE_API & 0x1)
+
186 #define API_TRACE(...)\
+
187 {\
+
188  if (HIP_PROFILE_API || (COMPILE_HIP_DB && HIP_TRACE_API)) {\
+
189  std::string apiStr = std::string(__func__) + " (" + ToString(__VA_ARGS__) + ')';\
+
190  std::string fullStr;\
+
191  recordApiTrace(&fullStr, apiStr);\
+
192  if (HIP_PROFILE_API == 0x1) {MARKER_BEGIN(__func__, "HIP") }\
+
193  else if (HIP_PROFILE_API == 0x2) {MARKER_BEGIN(fullStr.c_str(), "HIP"); }\
+
194  }\
+
195 }
+
196 #else
+
197 // Swallow API_TRACE
+
198 #define API_TRACE(...)
+
199 #endif
+
200 
+
201 
+
202 // Just initialize the HIP runtime, but don't log any trace information.
+
203 #define HIP_INIT()\
+
204  std::call_once(hip_initialized, ihipInit);\
+
205  ihipCtxStackUpdate();
+
206 
+
207 
+
208 // This macro should be called at the beginning of every HIP API.
+
209 // It initialies the hip runtime (exactly once), and
+
210 // generate trace string that can be output to stderr or to ATP file.
+
211 #define HIP_INIT_API(...) \
+
212  HIP_INIT()\
+
213  API_TRACE(__VA_ARGS__);
+
214 
+
215 #define ihipLogStatus(hipStatus) \
+
216  ({\
+
217  hipError_t localHipStatus = hipStatus; /*local copy so hipStatus only evaluated once*/ \
+
218  tls_lastHipError = localHipStatus;\
+
219  \
+
220  if ((COMPILE_HIP_TRACE_API & 0x2) && HIP_TRACE_API) {\
+
221  fprintf(stderr, " %ship-api tid:%d.%lu %-30s ret=%2d (%s)>>%s\n", (localHipStatus == 0) ? API_COLOR:KRED, tls_shortTid.tid(),tls_shortTid.apiSeqNum(), __func__, localHipStatus, ihipErrorString(localHipStatus), API_COLOR_END);\
+
222  }\
+
223  if (HIP_PROFILE_API) { MARKER_END(); }\
+
224  localHipStatus;\
+
225  })
+
226 
+
227 
+
228 
+
229 
+
230 //---
+
231 //HIP_DB Debug flags:
+
232 #define DB_API 0 /* 0x01 - shortcut to enable HIP_TRACE_API on single switch */
+
233 #define DB_SYNC 1 /* 0x02 - trace synchronization pieces */
+
234 #define DB_MEM 2 /* 0x04 - trace memory allocation / deallocation */
+
235 #define DB_COPY 3 /* 0x08 - trace memory copy and peer commands. . */
+
236 #define DB_SIGNAL 4 /* 0x10 - trace signal pool commands */
+
237 #define DB_MAX_FLAG 5
+
238 // When adding a new debug flag, also add to the char name table below.
+
239 //
+
240 
+
241 struct DbName {
+
242  const char *_color;
+
243  const char *_shortName;
+
244 };
+
245 
+
246 static const DbName dbName [] =
+
247 {
+
248  {KGRN, "api"}, // not used,
+
249  {KYEL, "sync"},
+
250  {KCYN, "mem"},
+
251  {KMAG, "copy"},
+
252  {KRED, "signal"},
+
253 };
+
254 
+
255 
+
256 
+
257 #if COMPILE_HIP_DB
+
258 #define tprintf(trace_level, ...) {\
+
259  if (HIP_DB & (1<<(trace_level))) {\
+
260  char msgStr[1000];\
+
261  snprintf(msgStr, 2000, __VA_ARGS__);\
+
262  fprintf (stderr, " %ship-%s tid:%d:%s%s", dbName[trace_level]._color, dbName[trace_level]._shortName, tls_shortTid.tid(), msgStr, KNRM); \
+
263  }\
+
264 }
+
265 #else
+
266 /* Compile to empty code */
+
267 #define tprintf(trace_level, ...)
+
268 #endif
+
269 
+
270 
+
271 
+
272 
+
273 
+
274 class ihipException : public std::exception
+
275 {
+
276 public:
+
277  ihipException(hipError_t e) : _code(e) {};
+
278 
+
279  hipError_t _code;
+
280 };
+
281 
+
282 
+
283 #ifdef __cplusplus
+
284 extern "C" {
+
285 #endif
+
286 
+
287 
+
288 #ifdef __cplusplus
+
289 }
+
290 #endif
+
291 
+
292 const hipStream_t hipStreamNull = 0x0;
+
293 
+
294 
+
295 // Used to remove lock, for performance or stimulating bugs.
+ +
297 {
+
298  public:
+
299  void lock() { }
+
300  bool try_lock() {return true; }
+
301  void unlock() { }
+
302 };
+
303 
+
304 
+
305 #if STREAM_THREAD_SAFE
+
306 typedef std::mutex StreamMutex;
+
307 #else
+
308 #warning "Stream thread-safe disabled"
+
309 typedef FakeMutex StreamMutex;
+
310 #endif
+
311 
+
312 // Pair Device and Ctx together, these could also be toggled separately if desired.
+
313 #if CTX_THREAD_SAFE
+
314 typedef std::mutex CtxMutex;
+
315 #else
+
316 typedef FakeMutex CtxMutex;
+
317 #warning "Device thread-safe disabled"
+
318 #endif
+
319 
+
320 //
+
321 //---
+
322 // Protects access to the member _data with a lock acquired on contruction/destruction.
+
323 // T must contain a _mutex field which meets the BasicLockable requirements (lock/unlock)
+
324 template<typename T>
+ +
326 {
+
327 public:
+
328  LockedAccessor(T &criticalData, bool autoUnlock=true) :
+
329  _criticalData(&criticalData),
+
330  _autoUnlock(autoUnlock)
+
331 
+
332  {
+
333  tprintf(DB_SYNC, "lock critical data %s.%p\n", typeid(T).name(), _criticalData);
+
334  _criticalData->_mutex.lock();
+
335  };
+
336 
+
337  ~LockedAccessor()
+
338  {
+
339  if (_autoUnlock) {
+
340  tprintf(DB_SYNC, "auto-unlock critical data %s.%p\n",typeid(T).name(), _criticalData);
+
341  _criticalData->_mutex.unlock();
+
342  }
+
343  }
+
344 
+
345  void unlock()
+
346  {
+
347  tprintf(DB_SYNC, "unlock critical data %s.%p\n", typeid(T).name(), _criticalData);
+
348  _criticalData->_mutex.unlock();
+
349  }
+
350 
+
351  // Syntactic sugar so -> can be used to get the underlying type.
+
352  T *operator->() { return _criticalData; };
+
353 
+
354 private:
+
355  T *_criticalData;
+
356  bool _autoUnlock;
+
357 };
+
358 
+
359 
+
360 template <typename MUTEX_TYPE>
+
361 struct LockedBase {
+
362 
+
363  // Experts-only interface for explicit locking.
+
364  // Most uses should use the lock-accessor.
+
365  void lock() { _mutex.lock(); }
+
366  void unlock() { _mutex.unlock(); }
+
367 
+
368  MUTEX_TYPE _mutex;
+
369 };
+
370 
+
374 #define HIP_IPC_HANDLE_SIZE 64
+ +
376 {
+
377 public:
+
378  hsa_amd_ipc_memory_t ipc_handle;
+
379  char reserved[HIP_IPC_HANDLE_SIZE];
+
380  size_t psize;
+
381 };
+
382 
+ +
384 public:
+
385  ihipFunction_t(const char *name) {
+
386  size_t nameSz = strlen(name);
+
387  char *kernelName = (char*)malloc(nameSz);
+
388  strncpy(kernelName, name, nameSz);
+
389  _kernelName = kernelName;
+
390  };
+
391 
+
392  ~ihipFunction_t() {
+
393  if (_kernelName) {
+
394  free((void*)_kernelName);
+
395  _kernelName = NULL;
+
396  };
+
397  };
+
398 public:
+
399  const char *_kernelName;
+
400  hsa_executable_symbol_t _kernelSymbol;
+
401  uint64_t _kernel;
+
402 };
+
403 
+ +
405 public:
+
406  hsa_executable_t executable;
+
407  hsa_code_object_t object;
+
408  std::string fileName;
+
409  void *ptr;
+
410  size_t size;
+
411 
+
412  ihipModule_t() : executable(), object(), fileName(), ptr(nullptr), size(0), hipFunctionTable() {}
+
413  ~ihipModule_t() {
+
414  for (int i = 0; i < hipFunctionTable.size(); ++i) {
+
415  ihipFunction_t *func = hipFunctionTable[i];
+
416  delete func;
+
417  }
+
418  hipFunctionTable.clear();
+
419  }
+
420 
+
421  void registerFunction(ihipFunction_t* func) {
+
422  hipFunctionTable.push_back(func);
+
423  }
+
424 private:
+
425  std::vector<ihipFunction_t*> hipFunctionTable;
+
426 };
+
427 
+
428 template <typename MUTEX_TYPE>
+
429 class ihipStreamCriticalBase_t : public LockedBase<MUTEX_TYPE>
+
430 {
+
431 public:
+
432  ihipStreamCriticalBase_t(hc::accelerator_view av) :
+
433  _kernelCnt(0),
+
434  _av(av)
+
435  {
+
436  };
+
437 
+ +
439  }
+
440 
+ +
442 
+
443 public:
+
444  // TODO - remove _kernelCnt mechanism:
+
445  uint32_t _kernelCnt; // Count of inflight kernels in this stream. Reset at ::wait().
+
446  hc::accelerator_view _av;
+
447 };
+
448 
+
449 
+
450 // if HIP code needs to acquire locks for both ihipCtx_t and ihipStream_t, it should first acquire the lock
+
451 // for the ihipCtx_t and then for the individual streams. The locks should not be acquired in reverse order
+
452 // or deadlock may occur. In some cases, it may be possible to reduce the range where the locks must be held.
+
453 // HIP routines should avoid acquiring and releasing the same lock during the execution of a single HIP API.
+
454 
+
455 
+ + +
458 
+
459 
+
460 
+
461 //---
+
462 // Internal stream structure.
+ +
464 public:
+
465  enum ScheduleMode {Auto, Spin, Yield};
+
466  typedef uint64_t SeqNum_t ;
+
467 
+
468  ihipStream_t(ihipCtx_t *ctx, hc::accelerator_view av, unsigned int flags);
+
469  ~ihipStream_t();
+
470 
+
471  // kind is hipMemcpyKind
+
472  void locked_copySync (void* dst, const void* src, size_t sizeBytes, unsigned kind, bool resolveOn = true);
+
473 
+
474 
+
475  void locked_copyAsync(void* dst, const void* src, size_t sizeBytes, unsigned kind);
+
476 
+
477 
+
478  //---
+
479  // Member functions that begin with locked_ are thread-safe accessors - these acquire / release the critical mutex.
+
480  LockedAccessor_StreamCrit_t lockopen_preKernelCommand();
+
481  void lockclose_postKernelCommand(const char *kernelName, hc::accelerator_view *av);
+
482 
+
483 
+
484  void locked_wait(bool assertQueueEmpty=false);
+
485 
+
486  hc::accelerator_view* locked_getAv() { LockedAccessor_StreamCrit_t crit(_criticalData); return &(crit->_av); };
+
487 
+
488  void locked_waitEvent(hipEvent_t event);
+
489  void locked_recordEvent(hipEvent_t event);
+
490 
+
491 
+
492  //---
+
493 
+
494  // Use this if we already have the stream critical data mutex:
+
495  void wait(LockedAccessor_StreamCrit_t &crit, bool assertQueueEmpty=false);
+
496 
+
497  void launchModuleKernel(hc::accelerator_view av, hsa_signal_t signal,
+
498  uint32_t blockDimX, uint32_t blockDimY, uint32_t blockDimZ,
+
499  uint32_t gridDimX, uint32_t gridDimY, uint32_t gridDimZ,
+
500  uint32_t groupSegmentSize, uint32_t sharedMemBytes,
+
501  void *kernarg, size_t kernSize, uint64_t kernel);
+
502 
+
503 
+
504 
+
505  //-- Non-racy accessors:
+
506  // These functions access fields set at initialization time and are non-racy (so do not acquire mutex)
+
507  const ihipDevice_t * getDevice() const;
+
508  ihipCtx_t * getCtx() const;
+
509 
+
510 
+
511 public:
+
512  //---
+
513  //Public member vars - these are set at initialization and never change:
+
514  SeqNum_t _id; // monotonic sequence ID
+
515  unsigned _flags;
+
516 
+
517 
+
518 private:
+
519 
+
520 
+
521  // The unsigned return is hipMemcpyKind
+
522  unsigned resolveMemcpyDirection(bool srcInDeviceMem, bool dstInDeviceMem);
+
523  void resolveHcMemcpyDirection(unsigned hipMemKind,
+
524  const hc::AmPointerInfo *dstPtrInfo, const hc::AmPointerInfo *srcPtrInfo,
+
525  hc::hcCommandKind *hcCopyDir,
+
526  ihipCtx_t **copyDevice,
+
527  bool *forceUnpinnedCopy);
+
528 
+
529  bool canSeeMemory(const ihipCtx_t *thisCtx, const hc::AmPointerInfo *dstInfo, const hc::AmPointerInfo *srcInfo);
+
530 
+
531 
+
532 private: // Data
+
533  // Critical Data - MUST be accessed through LockedAccessor_StreamCrit_t
+
534  ihipStreamCritical_t _criticalData;
+
535 
+
536  ihipCtx_t *_ctx; // parent context that owns this stream.
+
537 
+
538  // Friends:
+
539  friend std::ostream& operator<<(std::ostream& os, const ihipStream_t& s);
+ +
541 
+
542  ScheduleMode _scheduleMode;
+
543 };
+
544 
+
545 
+
546 
+
547 //----
+
548 // Internal event structure:
+
549 enum hipEventStatus_t {
+
550  hipEventStatusUnitialized = 0, // event is unutilized, must be "Created" before use.
+
551  hipEventStatusCreated = 1,
+
552  hipEventStatusRecording = 2, // event has been enqueued to record something.
+
553  hipEventStatusRecorded = 3, // event has been recorded - timestamps are valid.
+
554 } ;
+
555 
+
556 
+
557 // internal hip event structure.
+
558 struct ihipEvent_t {
+
559  hipEventStatus_t _state;
+
560 
+
561  hipStream_t _stream; // Stream where the event is recorded, or NULL if all streams.
+
562  unsigned _flags;
+
563 
+
564  hc::completion_future _marker;
+
565  uint64_t _timestamp; // store timestamp, may be set on host or by marker.
+
566 } ;
+
567 
+
568 
+
569 
+
570 
+
571 
+
572 //----
+
573 // Properties of the HIP device.
+
574 // Multiple contexts can point to same device.
+ +
576 {
+
577 public:
+
578  ihipDevice_t(unsigned deviceId, unsigned deviceCnt, hc::accelerator &acc);
+
579  ~ihipDevice_t();
+
580 
+
581  // Accessors:
+
582  ihipCtx_t *getPrimaryCtx() const { return _primaryCtx; };
+
583 
+
584 public:
+
585  unsigned _deviceId; // device ID
+
586 
+
587  hc::accelerator _acc;
+
588  hsa_agent_t _hsaAgent; // hsa agent handle
+
589 
+
591  unsigned _computeUnits;
+
592  hipDeviceProp_t _props; // saved device properties.
+
593 
+
594  // TODO - report this through device properties, base on HCC API call.
+
595  int _isLargeBar;
+
596 
+
597  ihipCtx_t *_primaryCtx;
+
598 
+
599 private:
+
600  hipError_t initProperties(hipDeviceProp_t* prop);
+
601 };
+
602 //=============================================================================
+
603 
+
604 
+
605 
+
606 //=============================================================================
+
607 //class ihipCtxCriticalBase_t
+
608 template <typename MUTEX_TYPE>
+ +
610 {
+
611 public:
+
612  ihipCtxCriticalBase_t(unsigned deviceCnt) :
+
613  _peerCnt(0)
+
614  {
+
615  _peerAgents = new hsa_agent_t[deviceCnt];
+
616  };
+
617 
+ +
619  if (_peerAgents != nullptr) {
+
620  delete _peerAgents;
+
621  _peerAgents = nullptr;
+
622  }
+
623  _peerCnt = 0;
+
624  }
+
625 
+
626  // Streams:
+
627  void addStream(ihipStream_t *stream);
+
628  std::list<ihipStream_t*> &streams() { return _streams; };
+
629  const std::list<ihipStream_t*> &const_streams() const { return _streams; };
+
630 
+
631 
+
632  // Peer Accessor classes:
+
633  bool isPeerWatcher(const ihipCtx_t *peer); // returns True if peer has access to memory physically located on this device.
+
634  bool addPeerWatcher(const ihipCtx_t *thisCtx, ihipCtx_t *peer);
+
635  bool removePeerWatcher(const ihipCtx_t *thisCtx, ihipCtx_t *peer);
+
636  void resetPeerWatchers(ihipCtx_t *thisDevice);
+
637  void printPeerWatchers(FILE *f) const;
+
638 
+
639  uint32_t peerCnt() const { return _peerCnt; };
+
640  hsa_agent_t *peerAgents() const { return _peerAgents; };
+
641 
+
642 
+
643  // TODO - move private
+
644  std::list<ihipCtx_t*> _peers; // list of enabled peer devices.
+
645 
+
646  friend class LockedAccessor<ihipCtxCriticalBase_t>;
+
647 private:
+
648  //--- Stream Tracker:
+
649  std::list< ihipStream_t* > _streams; // streams associated with this device.
+
650 
+
651 
+
652  //--- Peer Tracker:
+
653  // These reflect the currently Enabled set of peers for this GPU:
+
654  // Enabled peers have permissions to access the memory physically allocated on this device.
+
655  // Note the peers always contain the self agent for easy interfacing with HSA APIs.
+
656  uint32_t _peerCnt; // number of enabled peers
+
657  hsa_agent_t *_peerAgents; // efficient packed array of enabled agents (to use for allocations.)
+
658 private:
+
659  void recomputePeerAgents();
+
660 };
+
661 // Note Mutex type Real/Fake selected based on CtxMutex
+ +
663 
+
664 // This type is used by functions that need access to the critical device structures.
+ +
666 //=============================================================================
+
667 
+
668 
+
669 //=============================================================================
+
670 //class ihipCtx_t:
+
671 // A HIP CTX (context) points at one of the existing devices and contains the streams,
+
672 // peer-to-peer mappings, creation flags. Multiple contexts can point to the same
+
673 // device.
+
674 //
+ +
676 {
+
677 public: // Functions:
+
678  ihipCtx_t(ihipDevice_t *device, unsigned deviceCnt, unsigned flags); // note: calls constructor for _criticalData
+
679  ~ihipCtx_t();
+
680 
+
681  // Functions which read or write the critical data are named locked_.
+
682  // ihipCtx_t does not use recursive locks so the ihip implementation must avoid calling a locked_ function from within a locked_ function.
+
683  // External functions which call several locked_ functions will acquire and release the lock for each function. if this occurs in
+
684  // performance-sensitive code we may want to refactor by adding non-locked functions and creating a new locked_ member function to call them all.
+
685  void locked_addStream(ihipStream_t *s);
+
686  void locked_removeStream(ihipStream_t *s);
+
687  void locked_reset();
+
688  void locked_waitAllStreams();
+
689  void locked_syncDefaultStream(bool waitOnSelf);
+
690 
+
691  ihipCtxCritical_t &criticalData() { return _criticalData; }; // TODO, move private. Fix P2P.
+
692 
+
693  const ihipDevice_t *getDevice() const { return _device; };
+
694  int getDeviceNum() const { return _device->_deviceId; };
+
695 
+
696  // TODO - review uses of getWriteableDevice(), can these be converted to getDevice()
+
697  ihipDevice_t *getWriteableDevice() const { return _device; };
+
698 
+
699  std::string toString() const;
+
700 
+
701 public: // Data
+
702  // The NULL stream is used if no other stream is specified.
+
703  // Default stream has special synchronization properties with other streams.
+
704  ihipStream_t *_defaultStream;
+
705 
+
706  // Flags specified when the context is created:
+
707  unsigned _ctxFlags;
+
708 
+
709 private:
+
710  ihipDevice_t *_device;
+
711 
+
712 
+
713 private: // Critical data, protected with locked access:
+
714  // Members of _protected data MUST be accessed through the LockedAccessor.
+
715  // Search for LockedAccessor<ihipCtxCritical_t> for examples; do not access _criticalData directly.
+
716  ihipCtxCritical_t _criticalData;
+
717 
+
718 };
+
719 
+
720 
+
721 
+
722 //=================================================================================================
+
723 // Global variable definition:
+
724 extern std::once_flag hip_initialized;
+
725 extern unsigned g_deviceCnt;
+
726 extern hsa_agent_t g_cpu_agent ; // the CPU agent.
+
727 
+
728 //=================================================================================================
+
729 // Extern functions:
+
730 extern void ihipInit();
+
731 extern const char *ihipErrorString(hipError_t);
+
732 extern ihipCtx_t *ihipGetTlsDefaultCtx();
+
733 extern void ihipSetTlsDefaultCtx(ihipCtx_t *ctx);
+
734 extern hipError_t ihipSynchronize(void);
+
735 extern void ihipCtxStackUpdate();
+
736 
+
737 extern ihipDevice_t *ihipGetDevice(int);
+
738 ihipCtx_t * ihipGetPrimaryCtx(unsigned deviceIndex);
+
739 
+
740 extern void ihipSetTs(hipEvent_t e);
+
741 
+
742 
+
743 hipStream_t ihipSyncAndResolveStream(hipStream_t);
+
744 
+
745 // Stream printf functions:
+
746 inline std::ostream& operator<<(std::ostream& os, const ihipStream_t& s)
+
747 {
+
748  os << "stream#";
+
749  os << s.getDevice()->_deviceId;;
+
750  os << '.';
+
751  os << s._id;
+
752  return os;
+
753 }
+
754 
+
755 inline std::ostream & operator<<(std::ostream& os, const dim3& s)
+
756 {
+
757  os << '{';
+
758  os << s.x;
+
759  os << ',';
+
760  os << s.y;
+
761  os << ',';
+
762  os << s.z;
+
763  os << '}';
+
764  return os;
+
765 }
+
766 
+
767 inline std::ostream & operator<<(std::ostream& os, const gl_dim3& s)
+
768 {
+
769  os << '{';
+
770  os << s.x;
+
771  os << ',';
+
772  os << s.y;
+
773  os << ',';
+
774  os << s.z;
+
775  os << '}';
+
776  return os;
+
777 }
+
778 
+
779 // Stream printf functions:
+
780 inline std::ostream& operator<<(std::ostream& os, const hipEvent_t& e)
+
781 {
+
782  os << "event:" << std::hex << static_cast<void*> (e);
+
783  return os;
+
784 }
+
785 
+
786 inline std::ostream& operator<<(std::ostream& os, const ihipCtx_t* c)
+
787 {
+
788  os << "ctx:" << static_cast<const void*> (c)
+
789  << ".dev:" << c->getDevice()->_deviceId;
+
790  return os;
+
791 }
+
792 
+
793 
+
794 // Helper functions that are used across src files:
+
795 namespace hip_internal {
+
796  hipError_t memcpyAsync (void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream);
+
797 };
+
798 
+
799 
+
800 #endif
+
Definition: hip_hcc.h:241
+
Definition: hip_hcc.h:575
+
Definition: hip_hcc.h:361
+
Definition: hip_hcc.h:86
+
friend hipError_t hipStreamQuery(hipStream_t)
Return hipSuccess if all of the operations in the specified stream have completed, or hipErrorNotReady if not.
Definition: hip_stream.cpp:113
+
Definition: hip_hcc.h:296
+
Definition: hip_hcc.h:375
+
uint32_t x
x
Definition: hip_runtime_api.h:152
+
Definition: hip_hcc.h:383
+
Definition: hip_hcc.h:675
+
Definition: hip_runtime_api.h:151
+
uint32_t y
y
Definition: hip_runtime_api.h:153
+
hipError_t
Definition: hip_runtime_api.h:152
+
hipMemcpyKind
Definition: hip_runtime_api.h:165
+
Definition: hip_hcc.h:404
+
unsigned _computeUnits
Number of compute units supported by the device:
Definition: hip_hcc.h:591
+
uint32_t z
z
Definition: hip_runtime_api.h:154
+
Definition: hip_hcc.h:70
+
Definition: hip_runtime_api.h:82
+
Definition: hip_hcc.h:558
+
Definition: hip_hcc.h:274
+
Definition: hip_hcc.h:609
+
Definition: hip_hcc.h:463
+
Definition: hip_hcc.h:429
+
hsa_amd_ipc_memory_t ipc_handle
ipc memory handle on ROCr
Definition: hip_hcc.h:378
+
Definition: hip_hcc.h:325
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__ldg_8h_source.html b/docs/RuntimeAPI/html/hip__ldg_8h_source.html new file mode 100644 index 0000000000..3fe22d965f --- /dev/null +++ b/docs/RuntimeAPI/html/hip__ldg_8h_source.html @@ -0,0 +1,181 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/hip_ldg.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_ldg.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #ifndef HIP_LDG_H
+
24 #define HIP_LDG_H
+
25 
+
26 #if __HCC__
+
27 #if __hcc_workweek__ >= 16164
+
28 #include "hip/hip_vector_types.h"
+ +
30 
+
31 
+
32 __device__ char __ldg(const char* );
+
33 __device__ char2 __ldg(const char2* );
+
34 __device__ char4 __ldg(const char4* );
+
35 __device__ signed char __ldg(const signed char* );
+
36 __device__ unsigned char __ldg(const unsigned char* );
+
37 
+
38 __device__ short __ldg(const short* );
+
39 __device__ short2 __ldg(const short2* );
+
40 __device__ short4 __ldg(const short4* );
+
41 __device__ unsigned short __ldg(const unsigned short* );
+
42 
+
43 __device__ int __ldg(const int* );
+
44 __device__ int2 __ldg(const int2* );
+
45 __device__ int4 __ldg(const int4* );
+
46 __device__ unsigned int __ldg(const unsigned int* );
+
47 
+
48 
+
49 __device__ long __ldg(const long* );
+
50 __device__ unsigned long __ldg(const unsigned long* );
+
51 
+
52 __device__ long long __ldg(const long long* );
+
53 __device__ longlong2 __ldg(const longlong2* );
+
54 __device__ unsigned long long __ldg(const unsigned long long* );
+
55 
+
56 __device__ uchar2 __ldg(const uchar2* );
+
57 __device__ uchar4 __ldg(const uchar4* );
+
58 
+
59 __device__ ushort2 __ldg(const ushort2* );
+
60 
+
61 __device__ uint2 __ldg(const uint2* );
+
62 __device__ uint4 __ldg(const uint4* );
+
63 
+
64 __device__ ulonglong2 __ldg(const ulonglong2* );
+
65 
+
66 __device__ float __ldg(const float* );
+
67 __device__ float2 __ldg(const float2* );
+
68 __device__ float4 __ldg(const float4* );
+
69 
+
70 __device__ double __ldg(const double* );
+
71 __device__ double2 __ldg(const double2* );
+
72 
+
73 #endif // __hcc_workweek__
+
74 
+
75 #endif // __HCC__
+
76 
+
77 #endif // HIP_LDG_H
+
78 
+
TODO-doc.
+
Definition: hip_vector_types.h:140
+
Definition: hip_vector_types.h:148
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__profile_8h_source.html b/docs/RuntimeAPI/html/hip__profile_8h_source.html new file mode 100644 index 0000000000..e11e0a46f3 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__profile_8h_source.html @@ -0,0 +1,138 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hip_profile.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_profile.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #pragma once
+
24 
+
25 #if not defined (ENABLE_HIP_PROFILE)
+
26 #define ENABLE_HIP_PROFILE 1
+
27 #endif
+
28 
+
29 #if defined(__HIP_PLATFORM_HCC__) and (ENABLE_HIP_PROFILE==1)
+
30 #include <CXLActivityLogger.h>
+
31 #define HIP_SCOPED_MARKER(markerName, group) amdtScopedMarker __scopedMarker(markerName, group, nullptr);
+
32 #define HIP_BEGIN_MARKER(markerName, group) amdtBeginMarker(markerName, group, nullptr);
+
33 #define HIP_END_MARKER() amdtEndMarker();
+
34 #else
+
35 #define HIP_SCOPED_MARKER(markerName, group)
+
36 #define HIP_BEGIN_MARKER(markerName, group)
+
37 #define HIP_END_MARKER()
+
38 #endif
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__runtime_8h_source.html b/docs/RuntimeAPI/html/hip__runtime_8h_source.html new file mode 100644 index 0000000000..6989a57f94 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__runtime_8h_source.html @@ -0,0 +1,155 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hip_runtime.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_runtime.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
28 //
+
32 //
+
35 
+
36 #pragma once
+
37 
+
38 // Some standard header files, these are included by hc.hpp and so want to make them avail on both
+
39 // paths to provide a consistent include env and avoid "missing symbol" errors that only appears
+
40 // on NVCC path:
+
41 #include <stdint.h>
+
42 #include <stdio.h>
+
43 #include <stdlib.h>
+
44 #include <assert.h>
+
45 
+
46 #if __cplusplus > 199711L
+
47 #include <thread>
+
48 #endif
+
49 
+
50 
+
51 #include <hip/hip_common.h>
+
52 
+
53 #if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
+ +
55 #elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
+
56 #include <hip/nvcc_detail/hip_runtime.h>
+
57 #else
+
58 #error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
+
59 #endif
+
60 
+
61 
+
62 #include <hip/hip_runtime_api.h>
+
63 #include <hip/hip_vector_types.h>
+
64 
+
Contains definitions of APIs for HIP runtime.
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__runtime__api_8h_source.html b/docs/RuntimeAPI/html/hip__runtime__api_8h_source.html new file mode 100644 index 0000000000..61781f127d --- /dev/null +++ b/docs/RuntimeAPI/html/hip__runtime__api_8h_source.html @@ -0,0 +1,431 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hip_runtime_api.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_runtime_api.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
30 #pragma once
+
31 
+
32 
+
33 #include <string.h> // for getDeviceProp
+
34 #include <hip/hip_common.h>
+
35 
+
36 enum {
+
37 HIP_SUCCESS = 0,
+
38 HIP_ERROR_INVALID_VALUE,
+
39 HIP_ERROR_NOT_INITIALIZED,
+
40 HIP_ERROR_LAUNCH_OUT_OF_RESOURCES
+
41 };
+
42 
+
43 typedef struct {
+
44  // 32-bit Atomics
+
45  unsigned hasGlobalInt32Atomics : 1;
+
46  unsigned hasGlobalFloatAtomicExch : 1;
+
47  unsigned hasSharedInt32Atomics : 1;
+
48  unsigned hasSharedFloatAtomicExch : 1;
+
49  unsigned hasFloatAtomicAdd : 1;
+
50 
+
51  // 64-bit Atomics
+
52  unsigned hasGlobalInt64Atomics : 1;
+
53  unsigned hasSharedInt64Atomics : 1;
+
54 
+
55  // Doubles
+
56  unsigned hasDoubles : 1;
+
57 
+
58  // Warp cross-lane operations
+
59  unsigned hasWarpVote : 1;
+
60  unsigned hasWarpBallot : 1;
+
61  unsigned hasWarpShuffle : 1;
+
62  unsigned hasFunnelShift : 1;
+
63 
+
64  // Sync
+
65  unsigned hasThreadFenceSystem : 1;
+
66  unsigned hasSyncThreadsExt : 1;
+
67 
+
68  // Misc
+
69  unsigned hasSurfaceFuncs : 1;
+
70  unsigned has3dGrid : 1;
+
71  unsigned hasDynamicParallelism : 1;
+ +
73 
+
74 
+
75 //---
+
76 // Common headers for both NVCC and HCC paths:
+
77 
+
82 typedef struct hipDeviceProp_t {
+
83  char name[256];
+
84  size_t totalGlobalMem;
+ + +
87  int warpSize;
+ +
89  int maxThreadsDim[3];
+
90  int maxGridSize[3];
+
91  int clockRate;
+ + +
94  size_t totalConstMem;
+
95  int major;
+
96  int minor;
+ + + + + + + +
104  int pciBusID;
+ + + + +
109  } hipDeviceProp_t;
+
110 
+
111 
+
115 enum hipMemoryType {
+
116  hipMemoryTypeHost,
+
117  hipMemoryTypeDevice
+
118 };
+
119 
+
120 
+
121 
+
125 typedef struct hipPointerAttribute_t {
+
126  enum hipMemoryType memoryType;
+
127  int device;
+
128  void *devicePointer;
+
129  void *hostPointer;
+
130  int isManaged;
+
131  unsigned allocationFlags; /* flags specified when memory was allocated*/
+
132  /* peers? */
+ +
134 
+
135 
+
136 // hack to get these to show up in Doxygen:
+
144 /*
+
145  * @brief hipError_t
+
146  * @enum
+
147  * @ingroup Enumerations
+
148  */
+
149 // Developer note - when updating these, update the hipErrorName and hipErrorString functions in NVCC and HCC paths
+
150 // Also update the hipCUDAErrorTohipError function in NVCC path.
+
151 
+
152 typedef enum hipError_t {
+ +
154  hipErrorOutOfMemory = 2,
+
155  hipErrorNotInitialized = 3,
+
156  hipErrorDeinitialized = 4,
+
157  hipErrorProfilerDisabled = 5,
+
158  hipErrorProfilerNotInitialized = 6,
+
159  hipErrorProfilerAlreadyStarted = 7,
+
160  hipErrorProfilerAlreadyStopped = 8,
+
161  hipErrorInvalidImage = 200,
+ +
163  hipErrorContextAlreadyCurrent = 202,
+
164  hipErrorMapFailed = 205,
+
165  hipErrorUnmapFailed = 206,
+
166  hipErrorArrayIsMapped = 207,
+
167  hipErrorAlreadyMapped = 208,
+
168  hipErrorNoBinaryForGpu = 209,
+
169  hipErrorAlreadyAcquired = 210,
+
170  hipErrorNotMapped = 211,
+
171  hipErrorNotMappedAsArray = 212,
+
172  hipErrorNotMappedAsPointer = 213,
+
173  hipErrorECCNotCorrectable = 214,
+
174  hipErrorUnsupportedLimit = 215,
+
175  hipErrorContextAlreadyInUse = 216,
+
176  hipErrorPeerAccessUnsupported = 217,
+ +
178  hipErrorInvalidGraphicsContext = 219,
+
179  hipErrorInvalidSource = 300,
+
180  hipErrorFileNotFound = 301,
+
181  hipErrorSharedObjectSymbolNotFound = 302,
+
182  hipErrorSharedObjectInitFailed = 303,
+
183  hipErrorOperatingSystem = 304,
+
184  hipErrorInvalidHandle = 400,
+
185  hipErrorNotFound = 500,
+
186  hipErrorIllegalAddress = 700,
+
187  hipErrorInvalidSymbol = 701,
+
188 // Runtime Error Codes start here.
+
189  hipErrorMissingConfiguration = 1001,
+ + + +
193  hipErrorPriorLaunchFailure = 1005,
+
194  hipErrorLaunchTimeOut = 1006,
+ +
196  hipErrorInvalidDeviceFunction = 1008,
+
197  hipErrorInvalidConfiguration = 1009,
+ + + + + + + + + +
207 
+ + + + + + + +
215 } hipError_t;
+
216 
+
217 /*
+
218  * @brief hipDeviceAttribute_t
+
219  * @enum
+
220  * @ingroup Enumerations
+
221  */
+
222 typedef enum hipDeviceAttribute_t {
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
249 
+
254 #if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
+ +
256 #elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
+
257 #include "hip/nvcc_detail/hip_runtime_api.h"
+
258 #else
+
259 #error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
+
260 #endif
+
261 
+
262 
+
270 #ifdef __cplusplus
+
271 template<class T>
+
272 static inline hipError_t hipMalloc ( T** devPtr, size_t size)
+
273 {
+
274  return hipMalloc((void**)devPtr, size);
+
275 }
+
276 
+
277 // Provide an override to automatically typecast the pointer type from void**, and also provide a default for the flags.
+
278 template<class T>
+
279 static inline hipError_t hipHostMalloc( T** ptr, size_t size, unsigned int flags = hipHostMallocDefault)
+
280 {
+
281  return hipHostMalloc((void**)ptr, size, flags);
+
282 }
+
283 #endif
+
Call to hipGetDeviceCount returned 0 devices.
Definition: hip_runtime_api.h:205
+
size_t totalConstMem
Size of shared memory region (in bytes).
Definition: hip_runtime_api.h:94
+
Maximum Shared Memory Per Multiprocessor.
Definition: hip_runtime_api.h:246
+
Maximum x-dimension of a block.
Definition: hip_runtime_api.h:224
+
Maximum x-dimension of a grid.
Definition: hip_runtime_api.h:227
+
Peer access was already enabled from the current device.
Definition: hip_runtime_api.h:206
+
HSA runtime memory call returned error. Typically not seen in production systems. ...
Definition: hip_runtime_api.h:209
+
Global memory bus width in bits.
Definition: hip_runtime_api.h:236
+
Produced when the IPC memory attach failed from ROCr.
Definition: hip_runtime_api.h:213
+
Successful completion.
Definition: hip_runtime_api.h:153
+
int minor
Minor compute capability. On HCC, this is an approximation and features may differ from CUDA CC...
Definition: hip_runtime_api.h:96
+
In CUDA DRV, it is CUDA_ERROR_INVALID_PTX.
Definition: hip_runtime_api.h:177
+
int canMapHostMemory
Check whether HIP can map host memory.
Definition: hip_runtime_api.h:108
+
Maximum number of 32-bit registers available to a thread block. This number is shared by all thread b...
Definition: hip_runtime_api.h:233
+
int regsPerBlock
Registers per block.
Definition: hip_runtime_api.h:86
+
Size of L2 cache in bytes. 0 if the device doesn't have L2 cache.
Definition: hip_runtime_api.h:239
+
#define hipHostMallocDefault
Flags that can be used with hipHostMalloc.
Definition: hip_runtime_api.h:103
+
HSA runtime call other than memory returned error. Typically not seen in production systems...
Definition: hip_runtime_api.h:210
+
int isMultiGpuBoard
1 if device is on a multi-GPU board, 0 if not.
Definition: hip_runtime_api.h:107
+
DeviceID must be in range 0...#compute-devices.
Definition: hip_runtime_api.h:198
+
Peak clock frequency in kilohertz.
Definition: hip_runtime_api.h:234
+
Definition: hip_runtime_api.h:125
+
int clockRate
Max clock frequency of the multiProcessors in khz.
Definition: hip_runtime_api.h:91
+
Maximum z-dimension of a grid.
Definition: hip_runtime_api.h:229
+
Minor compute capability version number.
Definition: hip_runtime_api.h:242
+
Maximum shared memory available per block in bytes.
Definition: hip_runtime_api.h:230
+
int pciBusID
PCI Bus ID.
Definition: hip_runtime_api.h:104
+
Maximum y-dimension of a grid.
Definition: hip_runtime_api.h:228
+
Multiple GPU devices.
Definition: hip_runtime_api.h:247
+
Unknown error.
Definition: hip_runtime_api.h:202
+
int maxThreadsPerBlock
Max work items per work group or workgroup max size.
Definition: hip_runtime_api.h:88
+
Maximum y-dimension of a block.
Definition: hip_runtime_api.h:225
+
hipError_t hipHostMalloc(void **ptr, size_t size, unsigned int flags)
Allocate device accessible page locked host memory.
Definition: hip_memory.cpp:161
+
size_t sharedMemPerBlock
Size of shared memory region (in bytes).
Definition: hip_runtime_api.h:85
+
int maxThreadsPerMultiProcessor
Maximum resident threads per multi-processor.
Definition: hip_runtime_api.h:99
+
Produced when trying to lock a page-locked memory.
Definition: hip_runtime_api.h:211
+
int l2CacheSize
L2 cache size.
Definition: hip_runtime_api.h:98
+
hipDeviceAttribute_t
Definition: hip_runtime_api.h:222
+
Major compute capability version number.
Definition: hip_runtime_api.h:241
+
Peer access was never enabled from the current device.
Definition: hip_runtime_api.h:208
+
Maximum number of threads per block.
Definition: hip_runtime_api.h:223
+
Resource handle (hipEvent_t or hipStream_t) invalid.
Definition: hip_runtime_api.h:203
+
Memory allocation error.
Definition: hip_runtime_api.h:190
+
hipDeviceArch_t arch
Architectural feature flags. New for HIP.
Definition: hip_runtime_api.h:102
+
int maxGridSize[3]
Max grid dimensions (XYZ).
Definition: hip_runtime_api.h:90
+
int computeMode
Compute mode.
Definition: hip_runtime_api.h:100
+
Maximum z-dimension of a block.
Definition: hip_runtime_api.h:226
+
PCI Bus ID.
Definition: hip_runtime_api.h:244
+
Invalid memory copy direction.
Definition: hip_runtime_api.h:201
+
Marker that more error codes are needed.
Definition: hip_runtime_api.h:214
+
Warp size in threads.
Definition: hip_runtime_api.h:232
+
int major
Major compute capability. On HCC, this is an approximation and features may differ from CUDA CC...
Definition: hip_runtime_api.h:95
+
Peak memory clock frequency in kilohertz.
Definition: hip_runtime_api.h:235
+
Maximum resident threads per multiprocessor.
Definition: hip_runtime_api.h:240
+
hipError_t
Definition: hip_runtime_api.h:152
+
int clockInstructionRate
Frequency in khz of the timer used by the device-side "clock*" instructions. New for HIP...
Definition: hip_runtime_api.h:101
+
Constant memory size in bytes.
Definition: hip_runtime_api.h:231
+
int warpSize
Warp size.
Definition: hip_runtime_api.h:87
+
int concurrentKernels
Device can possibly execute multiple kernels concurrently.
Definition: hip_runtime_api.h:103
+
size_t totalGlobalMem
Size of global memory region (in bytes).
Definition: hip_runtime_api.h:84
+
Invalid Device Pointer.
Definition: hip_runtime_api.h:200
+
An exception occurred on the device while executing a kernel.
Definition: hip_runtime_api.h:192
+
hipError_t hipMalloc(void **ptr, size_t size)
Allocate memory on the default accelerator.
Definition: hip_memory.cpp:105
+
Compute mode that device is currently in.
Definition: hip_runtime_api.h:238
+
PCI Device ID.
Definition: hip_runtime_api.h:245
+
int maxThreadsDim[3]
Max number of threads in each dimension (XYZ) of a block.
Definition: hip_runtime_api.h:89
+
Number of multiprocessors on the device.
Definition: hip_runtime_api.h:237
+
int memoryBusWidth
Global memory bus width in bits.
Definition: hip_runtime_api.h:93
+
One or more of the parameters passed to the API call is NULL or not in an acceptable range...
Definition: hip_runtime_api.h:199
+
Definition: hip_runtime_api.h:82
+
Indicates that asynchronous operations enqueued earlier are not ready. This is not actually an error...
Definition: hip_runtime_api.h:204
+
size_t maxSharedMemoryPerMultiProcessor
Maximum Shared Memory Per Multiprocessor.
Definition: hip_runtime_api.h:106
+
int pciDeviceID
PCI Device ID.
Definition: hip_runtime_api.h:105
+
char name[256]
Device name.
Definition: hip_runtime_api.h:83
+
Produced when trying to unlock a non-page-locked memory.
Definition: hip_runtime_api.h:212
+
Definition: hip_runtime_api.h:43
+
Contains C function APIs for HIP runtime. This file does not use any HCC builtin or special language ...
+
int memoryClockRate
Max global memory clock frequency in khz.
Definition: hip_runtime_api.h:92
+
TODO comment from hipErrorInitializationError.
Definition: hip_runtime_api.h:191
+
Produced when input context is invalid.
Definition: hip_runtime_api.h:162
+
Device can possibly execute multiple kernels concurrently.
Definition: hip_runtime_api.h:243
+
int multiProcessorCount
Number of multi-processors (compute units).
Definition: hip_runtime_api.h:97
+
Out of resources error.
Definition: hip_runtime_api.h:195
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__texture_8h_source.html b/docs/RuntimeAPI/html/hip__texture_8h_source.html new file mode 100644 index 0000000000..6fdfd354c0 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__texture_8h_source.html @@ -0,0 +1,138 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hip_texture.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_texture.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 
+
24 
+
25 #ifndef HIP_HIP_TEXTURE_H
+
26 #define HIP_HIP_TEXTURE_H
+
27 
+
28 #if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
+ +
30 #elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
+
31 #include <hip/nvcc_detail/hip_texture.h>
+
32 #else
+
33 #error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
+
34 #endif
+
35 
+
36 
+
37 #endif
+
HIP C++ Texture API for hcc compiler.
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__util_8h_source.html b/docs/RuntimeAPI/html/hip__util_8h_source.html new file mode 100644 index 0000000000..b3ecdd89b1 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__util_8h_source.html @@ -0,0 +1,138 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/src/hip_util.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_util.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 #ifndef HIP_UTIL_H
+
24 #define HIP_UTIL_H
+
25 
+
26 #include <assert.h>
+
27 #include <stdint.h>
+
28 #include <iostream>
+
29 #include <sstream>
+
30 #include <list>
+
31 #include <sys/types.h>
+
32 #include <unistd.h>
+
33 #include <deque>
+
34 #include <vector>
+
35 #include <algorithm>
+
36 
+
37 
+
38 #endif
+
+ + + + diff --git a/docs/RuntimeAPI/html/hip__vector__types_8h_source.html b/docs/RuntimeAPI/html/hip__vector__types_8h_source.html new file mode 100644 index 0000000000..dcc0703001 --- /dev/null +++ b/docs/RuntimeAPI/html/hip__vector__types_8h_source.html @@ -0,0 +1,138 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hip_vector_types.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
hip_vector_types.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
24 
+
25 #pragma once
+
26 
+
27 #include <hip/hip_common.h>
+
28 
+
29 
+
30 #if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
+
31 #if __cplusplus
+ +
33 #endif
+
34 #elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
+
35 #include <vector_types.h>
+
36 #else
+
37 #error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
+
38 #endif
+
Defines the different newt vector types for HIP runtime.
+
+ + + + diff --git a/docs/RuntimeAPI/html/host__defines_8h.html b/docs/RuntimeAPI/html/host__defines_8h.html new file mode 100644 index 0000000000..9b8eb086e1 --- /dev/null +++ b/docs/RuntimeAPI/html/host__defines_8h.html @@ -0,0 +1,147 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/host_defines.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
host_defines.h File Reference
+
+
+ +

TODO-doc. +More...

+ +

Go to the source code of this file.

+ + + + + + + + + + + + + + + + +

+Macros

#define __host__   __attribute__((cpu))
 
+#define __device__   __attribute__((hc))
 
+#define __global__   __attribute__((hc_grid_launch))
 
+#define __noinline__   __attribute__((noinline))
 
+#define __forceinline__   __attribute__((always_inline))
 
+#define __shared__   tile_static
 
+#define __constant__   __attribute__((address_space(1)))
 
+

Detailed Description

+

TODO-doc.

+

Macro Definition Documentation

+ +
+
+ + + + +
#define __host__   __attribute__((cpu))
+
+

Function and kernel markers

+ +
+
+
+ + + + diff --git a/docs/RuntimeAPI/html/host__defines_8h_source.html b/docs/RuntimeAPI/html/host__defines_8h_source.html new file mode 100644 index 0000000000..f8eac1b2a7 --- /dev/null +++ b/docs/RuntimeAPI/html/host__defines_8h_source.html @@ -0,0 +1,160 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/include/hip/hcc_detail/host_defines.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
host_defines.h
+
+
+Go to the documentation of this file.
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
28 #ifndef HOST_DEFINES_H
+
29 #define HOST_DEFINES_H
+
30 
+
31 #ifdef __HCC__
+
32 
+
35 #define __host__ __attribute__((cpu))
+
36 #define __device__ __attribute__((hc))
+
37 
+
38 #define __global__ __attribute__((hc_grid_launch))
+
39 
+
40 #define __noinline__ __attribute__((noinline))
+
41 #define __forceinline__ __attribute__((always_inline))
+
42 
+
43 
+
44 
+
45 /*
+
46  * Variable Type Qualifiers:
+
47  */
+
48 // _restrict is supported by the compiler
+
49 #define __shared__ tile_static
+
50 #define __constant__ __attribute__((address_space(1)))
+
51 
+
52 #else
+
53 // Non-HCC compiler
+
57 #define __host__
+
58 #define __device__
+
59 
+
60 #define __global__
+
61 
+
62 #define __noinline__
+
63 #define __forceinline__
+
64 
+
65 #define __shared__
+
66 #define __constant__
+
67 
+
68 #endif
+
69 
+
70 #endif
+
+ + + + diff --git a/docs/RuntimeAPI/html/index.html b/docs/RuntimeAPI/html/index.html new file mode 100644 index 0000000000..a5823c259c --- /dev/null +++ b/docs/RuntimeAPI/html/index.html @@ -0,0 +1,99 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Heterogeneous-computing Interface for Portability (HIP) + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
+ + +
+ +
+ +
+
+
Heterogeneous-computing Interface for Portability (HIP)
+
+
+

The HIP interface makes it very easy to port existing CUDA apps to run on AMD GPUs, or to develop new apps that can run on either CUDA or AMD GPUs from a common source base.

+
    +
  • HIP is very thin and has little or no performance impact over coding directly in CUDA NVCC or HCC HC mode.
  • +
  • HIP allows developers to use the "best" development environment and tools on each target platform.
  • +
  • HIP allows coding in a single-source C++ programming language including features such as templates, C++11 lambdas,and more.
  • +
  • "hipify" tool automatically converts source from CUDA to HIP.
  • +
  • Developers can specialize for CUDA or HCC to tune for performance or handle tricky cases with #ifdef.
  • +
  • See the HIP API.
  • +
+
+ + + + diff --git a/docs/RuntimeAPI/html/jquery.js b/docs/RuntimeAPI/html/jquery.js new file mode 100644 index 0000000000..c197801c5d --- /dev/null +++ b/docs/RuntimeAPI/html/jquery.js @@ -0,0 +1,31 @@ +/*! + * jQuery JavaScript Library v1.7.1 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Mon Nov 21 21:11:03 2011 -0500 + */ +(function(bb,L){var av=bb.document,bu=bb.navigator,bl=bb.location;var b=(function(){var bF=function(b0,b1){return new bF.fn.init(b0,b1,bD)},bU=bb.jQuery,bH=bb.$,bD,bY=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bM=/\S/,bI=/^\s+/,bE=/\s+$/,bA=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bN=/^[\],:{}\s]*$/,bW=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bP=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bJ=/(?:^|:|,)(?:\s*\[)+/g,by=/(webkit)[ \/]([\w.]+)/,bR=/(opera)(?:.*version)?[ \/]([\w.]+)/,bQ=/(msie) ([\w.]+)/,bS=/(mozilla)(?:.*? rv:([\w.]+))?/,bB=/-([a-z]|[0-9])/ig,bZ=/^-ms-/,bT=function(b0,b1){return(b1+"").toUpperCase()},bX=bu.userAgent,bV,bC,e,bL=Object.prototype.toString,bG=Object.prototype.hasOwnProperty,bz=Array.prototype.push,bK=Array.prototype.slice,bO=String.prototype.trim,bv=Array.prototype.indexOf,bx={};bF.fn=bF.prototype={constructor:bF,init:function(b0,b4,b3){var b2,b5,b1,b6;if(!b0){return this}if(b0.nodeType){this.context=this[0]=b0;this.length=1;return this}if(b0==="body"&&!b4&&av.body){this.context=av;this[0]=av.body;this.selector=b0;this.length=1;return this}if(typeof b0==="string"){if(b0.charAt(0)==="<"&&b0.charAt(b0.length-1)===">"&&b0.length>=3){b2=[null,b0,null]}else{b2=bY.exec(b0)}if(b2&&(b2[1]||!b4)){if(b2[1]){b4=b4 instanceof bF?b4[0]:b4;b6=(b4?b4.ownerDocument||b4:av);b1=bA.exec(b0);if(b1){if(bF.isPlainObject(b4)){b0=[av.createElement(b1[1])];bF.fn.attr.call(b0,b4,true)}else{b0=[b6.createElement(b1[1])]}}else{b1=bF.buildFragment([b2[1]],[b6]);b0=(b1.cacheable?bF.clone(b1.fragment):b1.fragment).childNodes}return bF.merge(this,b0)}else{b5=av.getElementById(b2[2]);if(b5&&b5.parentNode){if(b5.id!==b2[2]){return b3.find(b0)}this.length=1;this[0]=b5}this.context=av;this.selector=b0;return this}}else{if(!b4||b4.jquery){return(b4||b3).find(b0)}else{return this.constructor(b4).find(b0)}}}else{if(bF.isFunction(b0)){return b3.ready(b0)}}if(b0.selector!==L){this.selector=b0.selector;this.context=b0.context}return bF.makeArray(b0,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return bK.call(this,0)},get:function(b0){return b0==null?this.toArray():(b0<0?this[this.length+b0]:this[b0])},pushStack:function(b1,b3,b0){var b2=this.constructor();if(bF.isArray(b1)){bz.apply(b2,b1)}else{bF.merge(b2,b1)}b2.prevObject=this;b2.context=this.context;if(b3==="find"){b2.selector=this.selector+(this.selector?" ":"")+b0}else{if(b3){b2.selector=this.selector+"."+b3+"("+b0+")"}}return b2},each:function(b1,b0){return bF.each(this,b1,b0)},ready:function(b0){bF.bindReady();bC.add(b0);return this},eq:function(b0){b0=+b0;return b0===-1?this.slice(b0):this.slice(b0,b0+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bK.apply(this,arguments),"slice",bK.call(arguments).join(","))},map:function(b0){return this.pushStack(bF.map(this,function(b2,b1){return b0.call(b2,b1,b2)}))},end:function(){return this.prevObject||this.constructor(null)},push:bz,sort:[].sort,splice:[].splice};bF.fn.init.prototype=bF.fn;bF.extend=bF.fn.extend=function(){var b9,b2,b0,b1,b6,b7,b5=arguments[0]||{},b4=1,b3=arguments.length,b8=false;if(typeof b5==="boolean"){b8=b5;b5=arguments[1]||{};b4=2}if(typeof b5!=="object"&&!bF.isFunction(b5)){b5={}}if(b3===b4){b5=this;--b4}for(;b40){return}bC.fireWith(av,[bF]);if(bF.fn.trigger){bF(av).trigger("ready").off("ready")}}},bindReady:function(){if(bC){return}bC=bF.Callbacks("once memory");if(av.readyState==="complete"){return setTimeout(bF.ready,1)}if(av.addEventListener){av.addEventListener("DOMContentLoaded",e,false);bb.addEventListener("load",bF.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystatechange",e);bb.attachEvent("onload",bF.ready);var b0=false;try{b0=bb.frameElement==null}catch(b1){}if(av.documentElement.doScroll&&b0){bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(b0){return bF.type(b0)==="array"},isWindow:function(b0){return b0&&typeof b0==="object"&&"setInterval" in b0},isNumeric:function(b0){return !isNaN(parseFloat(b0))&&isFinite(b0)},type:function(b0){return b0==null?String(b0):bx[bL.call(b0)]||"object"},isPlainObject:function(b2){if(!b2||bF.type(b2)!=="object"||b2.nodeType||bF.isWindow(b2)){return false}try{if(b2.constructor&&!bG.call(b2,"constructor")&&!bG.call(b2.constructor.prototype,"isPrototypeOf")){return false}}catch(b1){return false}var b0;for(b0 in b2){}return b0===L||bG.call(b2,b0)},isEmptyObject:function(b1){for(var b0 in b1){return false}return true},error:function(b0){throw new Error(b0)},parseJSON:function(b0){if(typeof b0!=="string"||!b0){return null}b0=bF.trim(b0);if(bb.JSON&&bb.JSON.parse){return bb.JSON.parse(b0)}if(bN.test(b0.replace(bW,"@").replace(bP,"]").replace(bJ,""))){return(new Function("return "+b0))()}bF.error("Invalid JSON: "+b0)},parseXML:function(b2){var b0,b1;try{if(bb.DOMParser){b1=new DOMParser();b0=b1.parseFromString(b2,"text/xml")}else{b0=new ActiveXObject("Microsoft.XMLDOM");b0.async="false";b0.loadXML(b2)}}catch(b3){b0=L}if(!b0||!b0.documentElement||b0.getElementsByTagName("parsererror").length){bF.error("Invalid XML: "+b2)}return b0},noop:function(){},globalEval:function(b0){if(b0&&bM.test(b0)){(bb.execScript||function(b1){bb["eval"].call(bb,b1)})(b0)}},camelCase:function(b0){return b0.replace(bZ,"ms-").replace(bB,bT)},nodeName:function(b1,b0){return b1.nodeName&&b1.nodeName.toUpperCase()===b0.toUpperCase()},each:function(b3,b6,b2){var b1,b4=0,b5=b3.length,b0=b5===L||bF.isFunction(b3);if(b2){if(b0){for(b1 in b3){if(b6.apply(b3[b1],b2)===false){break}}}else{for(;b40&&b0[0]&&b0[b1-1])||b1===0||bF.isArray(b0));if(b3){for(;b21?aJ.call(arguments,0):bG;if(!(--bw)){bC.resolveWith(bC,bx)}}}function bz(bF){return function(bG){bB[bF]=arguments.length>1?aJ.call(arguments,0):bG;bC.notifyWith(bE,bB)}}if(e>1){for(;bv
a";bI=bv.getElementsByTagName("*");bF=bv.getElementsByTagName("a")[0];if(!bI||!bI.length||!bF){return{}}bG=av.createElement("select");bx=bG.appendChild(av.createElement("option"));bE=bv.getElementsByTagName("input")[0];bJ={leadingWhitespace:(bv.firstChild.nodeType===3),tbody:!bv.getElementsByTagName("tbody").length,htmlSerialize:!!bv.getElementsByTagName("link").length,style:/top/.test(bF.getAttribute("style")),hrefNormalized:(bF.getAttribute("href")==="/a"),opacity:/^0.55/.test(bF.style.opacity),cssFloat:!!bF.style.cssFloat,checkOn:(bE.value==="on"),optSelected:bx.selected,getSetAttribute:bv.className!=="t",enctype:!!av.createElement("form").enctype,html5Clone:av.createElement("nav").cloneNode(true).outerHTML!=="<:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bE.checked=true;bJ.noCloneChecked=bE.cloneNode(true).checked;bG.disabled=true;bJ.optDisabled=!bx.disabled;try{delete bv.test}catch(bC){bJ.deleteExpando=false}if(!bv.addEventListener&&bv.attachEvent&&bv.fireEvent){bv.attachEvent("onclick",function(){bJ.noCloneEvent=false});bv.cloneNode(true).fireEvent("onclick")}bE=av.createElement("input");bE.value="t";bE.setAttribute("type","radio");bJ.radioValue=bE.value==="t";bE.setAttribute("checked","checked");bv.appendChild(bE);bD=av.createDocumentFragment();bD.appendChild(bv.lastChild);bJ.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bJ.appendChecked=bE.checked;bD.removeChild(bE);bD.appendChild(bv);bv.innerHTML="";if(bb.getComputedStyle){bA=av.createElement("div");bA.style.width="0";bA.style.marginRight="0";bv.style.width="2px";bv.appendChild(bA);bJ.reliableMarginRight=(parseInt((bb.getComputedStyle(bA,null)||{marginRight:0}).marginRight,10)||0)===0}if(bv.attachEvent){for(by in {submit:1,change:1,focusin:1}){bB="on"+by;bw=(bB in bv);if(!bw){bv.setAttribute(bB,"return;");bw=(typeof bv[bB]==="function")}bJ[by+"Bubbles"]=bw}}bD.removeChild(bv);bD=bG=bx=bA=bv=bE=null;b(function(){var bM,bU,bV,bT,bN,bO,bL,bS,bR,e,bP,bQ=av.getElementsByTagName("body")[0];if(!bQ){return}bL=1;bS="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bR="visibility:hidden;border:0;";e="style='"+bS+"border:5px solid #000;padding:0;'";bP="
";bM=av.createElement("div");bM.style.cssText=bR+"width:0;height:0;position:static;top:0;margin-top:"+bL+"px";bQ.insertBefore(bM,bQ.firstChild);bv=av.createElement("div");bM.appendChild(bv);bv.innerHTML="
t
";bz=bv.getElementsByTagName("td");bw=(bz[0].offsetHeight===0);bz[0].style.display="";bz[1].style.display="none";bJ.reliableHiddenOffsets=bw&&(bz[0].offsetHeight===0);bv.innerHTML="";bv.style.width=bv.style.paddingLeft="1px";b.boxModel=bJ.boxModel=bv.offsetWidth===2;if(typeof bv.style.zoom!=="undefined"){bv.style.display="inline";bv.style.zoom=1;bJ.inlineBlockNeedsLayout=(bv.offsetWidth===2);bv.style.display="";bv.innerHTML="
";bJ.shrinkWrapBlocks=(bv.offsetWidth!==2)}bv.style.cssText=bS+bR;bv.innerHTML=bP;bU=bv.firstChild;bV=bU.firstChild;bN=bU.nextSibling.firstChild.firstChild;bO={doesNotAddBorder:(bV.offsetTop!==5),doesAddBorderForTableAndCells:(bN.offsetTop===5)};bV.style.position="fixed";bV.style.top="20px";bO.fixedPosition=(bV.offsetTop===20||bV.offsetTop===15);bV.style.position=bV.style.top="";bU.style.overflow="hidden";bU.style.position="relative";bO.subtractsBorderForOverflowNotVisible=(bV.offsetTop===-5);bO.doesNotIncludeMarginInBodyOffset=(bQ.offsetTop!==bL);bQ.removeChild(bM);bv=bM=null;b.extend(bJ,bO)});return bJ})();var aS=/^(?:\{.*\}|\[.*\])$/,aA=/([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!S(e)},data:function(bx,bv,bz,by){if(!b.acceptData(bx)){return}var bG,bA,bD,bE=b.expando,bC=typeof bv==="string",bF=bx.nodeType,e=bF?b.cache:bx,bw=bF?bx[bE]:bx[bE]&&bE,bB=bv==="events";if((!bw||!e[bw]||(!bB&&!by&&!e[bw].data))&&bC&&bz===L){return}if(!bw){if(bF){bx[bE]=bw=++b.uuid}else{bw=bE}}if(!e[bw]){e[bw]={};if(!bF){e[bw].toJSON=b.noop}}if(typeof bv==="object"||typeof bv==="function"){if(by){e[bw]=b.extend(e[bw],bv)}else{e[bw].data=b.extend(e[bw].data,bv)}}bG=bA=e[bw];if(!by){if(!bA.data){bA.data={}}bA=bA.data}if(bz!==L){bA[b.camelCase(bv)]=bz}if(bB&&!bA[bv]){return bG.events}if(bC){bD=bA[bv];if(bD==null){bD=bA[b.camelCase(bv)]}}else{bD=bA}return bD},removeData:function(bx,bv,by){if(!b.acceptData(bx)){return}var bB,bA,bz,bC=b.expando,bD=bx.nodeType,e=bD?b.cache:bx,bw=bD?bx[bC]:bC;if(!e[bw]){return}if(bv){bB=by?e[bw]:e[bw].data;if(bB){if(!b.isArray(bv)){if(bv in bB){bv=[bv]}else{bv=b.camelCase(bv);if(bv in bB){bv=[bv]}else{bv=bv.split(" ")}}}for(bA=0,bz=bv.length;bA-1){return true}}return false},val:function(bx){var e,bv,by,bw=this[0];if(!arguments.length){if(bw){e=b.valHooks[bw.nodeName.toLowerCase()]||b.valHooks[bw.type];if(e&&"get" in e&&(bv=e.get(bw,"value"))!==L){return bv}bv=bw.value;return typeof bv==="string"?bv.replace(aU,""):bv==null?"":bv}return}by=b.isFunction(bx);return this.each(function(bA){var bz=b(this),bB;if(this.nodeType!==1){return}if(by){bB=bx.call(this,bA,bz.val())}else{bB=bx}if(bB==null){bB=""}else{if(typeof bB==="number"){bB+=""}else{if(b.isArray(bB)){bB=b.map(bB,function(bC){return bC==null?"":bC+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bB,"value")===L){this.value=bB}})}});b.extend({valHooks:{option:{get:function(e){var bv=e.attributes.value;return !bv||bv.specified?e.value:e.text}},select:{get:function(e){var bA,bv,bz,bx,by=e.selectedIndex,bB=[],bC=e.options,bw=e.type==="select-one";if(by<0){return null}bv=bw?by:0;bz=bw?by+1:bC.length;for(;bv=0});if(!e.length){bv.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bA,bx,bB,bz){var bw,e,by,bv=bA.nodeType; +if(!bA||bv===3||bv===8||bv===2){return}if(bz&&bx in b.attrFn){return b(bA)[bx](bB)}if(typeof bA.getAttribute==="undefined"){return b.prop(bA,bx,bB)}by=bv!==1||!b.isXMLDoc(bA);if(by){bx=bx.toLowerCase();e=b.attrHooks[bx]||(ao.test(bx)?aY:be)}if(bB!==L){if(bB===null){b.removeAttr(bA,bx);return}else{if(e&&"set" in e&&by&&(bw=e.set(bA,bB,bx))!==L){return bw}else{bA.setAttribute(bx,""+bB);return bB}}}else{if(e&&"get" in e&&by&&(bw=e.get(bA,bx))!==null){return bw}else{bw=bA.getAttribute(bx);return bw===null?L:bw}}},removeAttr:function(bx,bz){var by,bA,bv,e,bw=0;if(bz&&bx.nodeType===1){bA=bz.toLowerCase().split(af);e=bA.length;for(;bw=0)}}})});var bd=/^(?:textarea|input|select)$/i,n=/^([^\.]*)?(?:\.(.+))?$/,J=/\bhover(\.\S+)?\b/,aO=/^key/,bf=/^(?:mouse|contextmenu)|click/,T=/^(?:focusinfocus|focusoutblur)$/,U=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Y=function(e){var bv=U.exec(e);if(bv){bv[1]=(bv[1]||"").toLowerCase();bv[3]=bv[3]&&new RegExp("(?:^|\\s)"+bv[3]+"(?:\\s|$)")}return bv},j=function(bw,e){var bv=bw.attributes||{};return((!e[1]||bw.nodeName.toLowerCase()===e[1])&&(!e[2]||(bv.id||{}).value===e[2])&&(!e[3]||e[3].test((bv["class"]||{}).value)))},bt=function(e){return b.event.special.hover?e:e.replace(J,"mouseenter$1 mouseleave$1")};b.event={add:function(bx,bC,bJ,bA,by){var bD,bB,bK,bI,bH,bF,e,bG,bv,bz,bw,bE;if(bx.nodeType===3||bx.nodeType===8||!bC||!bJ||!(bD=b._data(bx))){return}if(bJ.handler){bv=bJ;bJ=bv.handler}if(!bJ.guid){bJ.guid=b.guid++}bK=bD.events;if(!bK){bD.events=bK={}}bB=bD.handle;if(!bB){bD.handle=bB=function(bL){return typeof b!=="undefined"&&(!bL||b.event.triggered!==bL.type)?b.event.dispatch.apply(bB.elem,arguments):L};bB.elem=bx}bC=b.trim(bt(bC)).split(" ");for(bI=0;bI=0){bG=bG.slice(0,-1);bw=true}if(bG.indexOf(".")>=0){bx=bG.split(".");bG=bx.shift();bx.sort()}if((!bA||b.event.customEvent[bG])&&!b.event.global[bG]){return}bv=typeof bv==="object"?bv[b.expando]?bv:new b.Event(bG,bv):new b.Event(bG);bv.type=bG;bv.isTrigger=true;bv.exclusive=bw;bv.namespace=bx.join(".");bv.namespace_re=bv.namespace?new RegExp("(^|\\.)"+bx.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;by=bG.indexOf(":")<0?"on"+bG:"";if(!bA){e=b.cache;for(bC in e){if(e[bC].events&&e[bC].events[bG]){b.event.trigger(bv,bD,e[bC].handle.elem,true)}}return}bv.result=L;if(!bv.target){bv.target=bA}bD=bD!=null?b.makeArray(bD):[];bD.unshift(bv);bF=b.event.special[bG]||{};if(bF.trigger&&bF.trigger.apply(bA,bD)===false){return}bB=[[bA,bF.bindType||bG]];if(!bJ&&!bF.noBubble&&!b.isWindow(bA)){bI=bF.delegateType||bG;bH=T.test(bI+bG)?bA:bA.parentNode;bz=null;for(;bH;bH=bH.parentNode){bB.push([bH,bI]);bz=bH}if(bz&&bz===bA.ownerDocument){bB.push([bz.defaultView||bz.parentWindow||bb,bI])}}for(bC=0;bCbA){bH.push({elem:this,matches:bz.slice(bA)})}for(bC=0;bC0?this.on(e,null,bx,bw):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aO.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bf.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}}); +/*! + * Sizzle CSS Selector Engine + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){var bH=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bC="sizcache"+(Math.random()+"").replace(".",""),bI=0,bL=Object.prototype.toString,bB=false,bA=true,bK=/\\/g,bO=/\r\n/g,bQ=/\W/;[0,0].sort(function(){bA=false;return 0});var by=function(bV,e,bY,bZ){bY=bY||[];e=e||av;var b1=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bV||typeof bV!=="string"){return bY}var bS,b3,b6,bR,b2,b5,b4,bX,bU=true,bT=by.isXML(e),bW=[],b0=bV;do{bH.exec("");bS=bH.exec(b0);if(bS){b0=bS[3];bW.push(bS[1]);if(bS[2]){bR=bS[3];break}}}while(bS);if(bW.length>1&&bD.exec(bV)){if(bW.length===2&&bE.relative[bW[0]]){b3=bM(bW[0]+bW[1],e,bZ)}else{b3=bE.relative[bW[0]]?[e]:by(bW.shift(),e);while(bW.length){bV=bW.shift();if(bE.relative[bV]){bV+=bW.shift()}b3=bM(bV,b3,bZ)}}}else{if(!bZ&&bW.length>1&&e.nodeType===9&&!bT&&bE.match.ID.test(bW[0])&&!bE.match.ID.test(bW[bW.length-1])){b2=by.find(bW.shift(),e,bT);e=b2.expr?by.filter(b2.expr,b2.set)[0]:b2.set[0]}if(e){b2=bZ?{expr:bW.pop(),set:bF(bZ)}:by.find(bW.pop(),bW.length===1&&(bW[0]==="~"||bW[0]==="+")&&e.parentNode?e.parentNode:e,bT);b3=b2.expr?by.filter(b2.expr,b2.set):b2.set;if(bW.length>0){b6=bF(b3)}else{bU=false}while(bW.length){b5=bW.pop();b4=b5;if(!bE.relative[b5]){b5=""}else{b4=bW.pop()}if(b4==null){b4=e}bE.relative[b5](b6,b4,bT)}}else{b6=bW=[]}}if(!b6){b6=b3}if(!b6){by.error(b5||bV)}if(bL.call(b6)==="[object Array]"){if(!bU){bY.push.apply(bY,b6)}else{if(e&&e.nodeType===1){for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&(b6[bX]===true||b6[bX].nodeType===1&&by.contains(e,b6[bX]))){bY.push(b3[bX])}}}else{for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&b6[bX].nodeType===1){bY.push(b3[bX])}}}}}else{bF(b6,bY)}if(bR){by(bR,b1,bY,bZ);by.uniqueSort(bY)}return bY};by.uniqueSort=function(bR){if(bJ){bB=bA;bR.sort(bJ);if(bB){for(var e=1;e0};by.find=function(bX,e,bY){var bW,bS,bU,bT,bV,bR;if(!bX){return[]}for(bS=0,bU=bE.order.length;bS":function(bW,bR){var bV,bU=typeof bR==="string",bS=0,e=bW.length;if(bU&&!bQ.test(bR)){bR=bR.toLowerCase();for(;bS=0)){if(!bS){e.push(bV)}}else{if(bS){bR[bU]=false}}}}return false},ID:function(e){return e[1].replace(bK,"")},TAG:function(bR,e){return bR[1].replace(bK,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){by.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bR=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bR[1]+(bR[2]||1))-0;e[3]=bR[3]-0}else{if(e[2]){by.error(e[0])}}e[0]=bI++;return e},ATTR:function(bU,bR,bS,e,bV,bW){var bT=bU[1]=bU[1].replace(bK,"");if(!bW&&bE.attrMap[bT]){bU[1]=bE.attrMap[bT]}bU[4]=(bU[4]||bU[5]||"").replace(bK,"");if(bU[2]==="~="){bU[4]=" "+bU[4]+" "}return bU},PSEUDO:function(bU,bR,bS,e,bV){if(bU[1]==="not"){if((bH.exec(bU[3])||"").length>1||/^\w/.test(bU[3])){bU[3]=by(bU[3],null,null,bR)}else{var bT=by.filter(bU[3],bR,bS,true^bV);if(!bS){e.push.apply(e,bT)}return false}}else{if(bE.match.POS.test(bU[0])||bE.match.CHILD.test(bU[0])){return true}}return bU},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bS,bR,e){return !!by(e[3],bS).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bS){var e=bS.getAttribute("type"),bR=bS.type;return bS.nodeName.toLowerCase()==="input"&&"text"===bR&&(e===bR||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bR.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bR.type},button:function(bR){var e=bR.nodeName.toLowerCase();return e==="input"&&"button"===bR.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bR,e){return e===0},last:function(bS,bR,e,bT){return bR===bT.length-1},even:function(bR,e){return e%2===0},odd:function(bR,e){return e%2===1 +},lt:function(bS,bR,e){return bRe[3]-0},nth:function(bS,bR,e){return e[3]-0===bR},eq:function(bS,bR,e){return e[3]-0===bR}},filter:{PSEUDO:function(bS,bX,bW,bY){var e=bX[1],bR=bE.filters[e];if(bR){return bR(bS,bW,bX,bY)}else{if(e==="contains"){return(bS.textContent||bS.innerText||bw([bS])||"").indexOf(bX[3])>=0}else{if(e==="not"){var bT=bX[3];for(var bV=0,bU=bT.length;bV=0)}}},ID:function(bR,e){return bR.nodeType===1&&bR.getAttribute("id")===e},TAG:function(bR,e){return(e==="*"&&bR.nodeType===1)||!!bR.nodeName&&bR.nodeName.toLowerCase()===e},CLASS:function(bR,e){return(" "+(bR.className||bR.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bV,bT){var bS=bT[1],e=by.attr?by.attr(bV,bS):bE.attrHandle[bS]?bE.attrHandle[bS](bV):bV[bS]!=null?bV[bS]:bV.getAttribute(bS),bW=e+"",bU=bT[2],bR=bT[4];return e==null?bU==="!=":!bU&&by.attr?e!=null:bU==="="?bW===bR:bU==="*="?bW.indexOf(bR)>=0:bU==="~="?(" "+bW+" ").indexOf(bR)>=0:!bR?bW&&e!==false:bU==="!="?bW!==bR:bU==="^="?bW.indexOf(bR)===0:bU==="$="?bW.substr(bW.length-bR.length)===bR:bU==="|="?bW===bR||bW.substr(0,bR.length+1)===bR+"-":false},POS:function(bU,bR,bS,bV){var e=bR[2],bT=bE.setFilters[e];if(bT){return bT(bU,bS,bR,bV)}}}};var bD=bE.match.POS,bx=function(bR,e){return"\\"+(e-0+1)};for(var bz in bE.match){bE.match[bz]=new RegExp(bE.match[bz].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bE.leftMatch[bz]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bE.match[bz].source.replace(/\\(\d+)/g,bx))}var bF=function(bR,e){bR=Array.prototype.slice.call(bR,0);if(e){e.push.apply(e,bR);return e}return bR};try{Array.prototype.slice.call(av.documentElement.childNodes,0)[0].nodeType}catch(bP){bF=function(bU,bT){var bS=0,bR=bT||[];if(bL.call(bU)==="[object Array]"){Array.prototype.push.apply(bR,bU)}else{if(typeof bU.length==="number"){for(var e=bU.length;bS";e.insertBefore(bR,e.firstChild);if(av.getElementById(bS)){bE.find.ID=function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){var bT=bV.getElementById(bU[1]);return bT?bT.id===bU[1]||typeof bT.getAttributeNode!=="undefined"&&bT.getAttributeNode("id").nodeValue===bU[1]?[bT]:L:[]}};bE.filter.ID=function(bV,bT){var bU=typeof bV.getAttributeNode!=="undefined"&&bV.getAttributeNode("id");return bV.nodeType===1&&bU&&bU.nodeValue===bT}}e.removeChild(bR);e=bR=null})();(function(){var e=av.createElement("div");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").length>0){bE.find.TAG=function(bR,bV){var bU=bV.getElementsByTagName(bR[1]);if(bR[1]==="*"){var bT=[];for(var bS=0;bU[bS];bS++){if(bU[bS].nodeType===1){bT.push(bU[bS])}}bU=bT}return bU}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bE.attrHandle.href=function(bR){return bR.getAttribute("href",2)}}e=null})();if(av.querySelectorAll){(function(){var e=by,bT=av.createElement("div"),bS="__sizzle__";bT.innerHTML="

";if(bT.querySelectorAll&&bT.querySelectorAll(".TEST").length===0){return}by=function(b4,bV,bZ,b3){bV=bV||av;if(!b3&&!by.isXML(bV)){var b2=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b4);if(b2&&(bV.nodeType===1||bV.nodeType===9)){if(b2[1]){return bF(bV.getElementsByTagName(b4),bZ)}else{if(b2[2]&&bE.find.CLASS&&bV.getElementsByClassName){return bF(bV.getElementsByClassName(b2[2]),bZ)}}}if(bV.nodeType===9){if(b4==="body"&&bV.body){return bF([bV.body],bZ)}else{if(b2&&b2[3]){var bY=bV.getElementById(b2[3]);if(bY&&bY.parentNode){if(bY.id===b2[3]){return bF([bY],bZ)}}else{return bF([],bZ)}}}try{return bF(bV.querySelectorAll(b4),bZ)}catch(b0){}}else{if(bV.nodeType===1&&bV.nodeName.toLowerCase()!=="object"){var bW=bV,bX=bV.getAttribute("id"),bU=bX||bS,b6=bV.parentNode,b5=/^\s*[+~]/.test(b4);if(!bX){bV.setAttribute("id",bU)}else{bU=bU.replace(/'/g,"\\$&")}if(b5&&b6){bV=bV.parentNode}try{if(!b5||b6){return bF(bV.querySelectorAll("[id='"+bU+"'] "+b4),bZ)}}catch(b1){}finally{if(!bX){bW.removeAttribute("id")}}}}}return e(b4,bV,bZ,b3)};for(var bR in e){by[bR]=e[bR]}bT=null})()}(function(){var e=av.documentElement,bS=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bS){var bU=!bS.call(av.createElement("div"),"div"),bR=false;try{bS.call(av.documentElement,"[test!='']:sizzle")}catch(bT){bR=true}by.matchesSelector=function(bW,bY){bY=bY.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!by.isXML(bW)){try{if(bR||!bE.match.PSEUDO.test(bY)&&!/!=/.test(bY)){var bV=bS.call(bW,bY);if(bV||!bU||bW.document&&bW.document.nodeType!==11){return bV}}}catch(bX){}}return by(bY,null,null,[bW]).length>0}}})();(function(){var e=av.createElement("div");e.innerHTML="
";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bE.order.splice(1,0,"CLASS");bE.find.CLASS=function(bR,bS,bT){if(typeof bS.getElementsByClassName!=="undefined"&&!bT){return bS.getElementsByClassName(bR[1])}};e=null})();function bv(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT0){bU=e;break}}}e=e[bR]}bZ[bT]=bU}}}if(av.documentElement.contains){by.contains=function(bR,e){return bR!==e&&(bR.contains?bR.contains(e):true)}}else{if(av.documentElement.compareDocumentPosition){by.contains=function(bR,e){return !!(bR.compareDocumentPosition(e)&16)}}else{by.contains=function(){return false}}}by.isXML=function(e){var bR=(e?e.ownerDocument||e:0).documentElement;return bR?bR.nodeName!=="HTML":false};var bM=function(bS,e,bW){var bV,bX=[],bU="",bY=e.nodeType?[e]:e;while((bV=bE.match.PSEUDO.exec(bS))){bU+=bV[0];bS=bS.replace(bE.match.PSEUDO,"")}bS=bE.relative[bS]?bS+"*":bS;for(var bT=0,bR=bY.length;bT0){for(bB=bA;bB=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(by,bx){var bv=[],bw,e,bz=this[0];if(b.isArray(by)){var bB=1;while(bz&&bz.ownerDocument&&bz!==bx){for(bw=0;bw-1:b.find.matchesSelector(bz,by)){bv.push(bz);break}else{bz=bz.parentNode;if(!bz||!bz.ownerDocument||bz===bx||bz.nodeType===11){break}}}}bv=bv.length>1?b.unique(bv):bv;return this.pushStack(bv,"closest",by)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bv){var bx=typeof e==="string"?b(e,bv):b.makeArray(e&&e.nodeType?[e]:e),bw=b.merge(this.get(),bx);return this.pushStack(C(bx[0])||C(bw[0])?bw:b.unique(bw))},andSelf:function(){return this.add(this.prevObject)}});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bv){var e=bv.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bv,e,bw){return b.dir(bv,"parentNode",bw)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(bv,e,bw){return b.dir(bv,"nextSibling",bw)},prevUntil:function(bv,e,bw){return b.dir(bv,"previousSibling",bw)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,bv){b.fn[e]=function(by,bw){var bx=b.map(this,bv,by);if(!ab.test(e)){bw=by}if(bw&&typeof bw==="string"){bx=b.filter(bw,bx)}bx=this.length>1&&!ay[e]?b.unique(bx):bx;if((this.length>1||a9.test(bw))&&aq.test(e)){bx=bx.reverse()}return this.pushStack(bx,e,P.call(arguments).join(","))}});b.extend({filter:function(bw,e,bv){if(bv){bw=":not("+bw+")"}return e.length===1?b.find.matchesSelector(e[0],bw)?[e[0]]:[]:b.find.matches(bw,e)},dir:function(bw,bv,by){var e=[],bx=bw[bv];while(bx&&bx.nodeType!==9&&(by===L||bx.nodeType!==1||!b(bx).is(by))){if(bx.nodeType===1){e.push(bx)}bx=bx[bv]}return e},nth:function(by,e,bw,bx){e=e||1;var bv=0;for(;by;by=by[bw]){if(by.nodeType===1&&++bv===e){break}}return by},sibling:function(bw,bv){var e=[];for(;bw;bw=bw.nextSibling){if(bw.nodeType===1&&bw!==bv){e.push(bw)}}return e}});function aG(bx,bw,e){bw=bw||0;if(b.isFunction(bw)){return b.grep(bx,function(bz,by){var bA=!!bw.call(bz,by,bz);return bA===e})}else{if(bw.nodeType){return b.grep(bx,function(bz,by){return(bz===bw)===e})}else{if(typeof bw==="string"){var bv=b.grep(bx,function(by){return by.nodeType===1});if(bp.test(bw)){return b.filter(bw,bv,!e)}else{bw=b.filter(bw,bv)}}}}return b.grep(bx,function(bz,by){return(b.inArray(bz,bw)>=0)===e})}function a(e){var bw=aR.split("|"),bv=e.createDocumentFragment();if(bv.createElement){while(bw.length){bv.createElement(bw.pop())}}return bv}var aR="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ag=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},ac=a(av); +ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div
","
"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bw){var bv=b(this);bv.text(e.call(this,bw,bv.text()))})}if(typeof e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDocument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bw){b(this).wrapAll(e.call(this,bw))})}if(this[0]){var bv=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bv.insertBefore(this[0])}bv.map(function(){var bw=this;while(bw.firstChild&&bw.firstChild.nodeType===1){bw=bw.firstChild}return bw}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bv){b(this).wrapInner(e.call(this,bv))})}return this.each(function(){var bv=b(this),bw=bv.contents();if(bw.length){bw.wrapAll(e)}else{bv.append(e)}})},wrap:function(e){var bv=b.isFunction(e);return this.each(function(bw){b(this).wrapAll(bv?e.call(this,bw):e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this)})}else{if(arguments.length){var e=b.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b.clean(arguments));return e}}},remove:function(e,bx){for(var bv=0,bw;(bw=this[bv])!=null;bv++){if(!e||b.filter(e,[bw]).length){if(!bx&&bw.nodeType===1){b.cleanData(bw.getElementsByTagName("*"));b.cleanData([bw])}if(bw.parentNode){bw.parentNode.removeChild(bw)}}}return this},empty:function(){for(var e=0,bv;(bv=this[e])!=null;e++){if(bv.nodeType===1){b.cleanData(bv.getElementsByTagName("*"))}while(bv.firstChild){bv.removeChild(bv.firstChild)}}return this},clone:function(bv,e){bv=bv==null?false:bv;e=e==null?bv:e;return this.map(function(){return b.clone(this,bv,e)})},html:function(bx){if(bx===L){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ag,""):null}else{if(typeof bx==="string"&&!ae.test(bx)&&(b.support.leadingWhitespace||!ar.test(bx))&&!ax[(d.exec(bx)||["",""])[1].toLowerCase()]){bx=bx.replace(R,"<$1>");try{for(var bw=0,bv=this.length;bw1&&bw0?this.clone(true):this).get();b(bC[bA])[bv](by);bz=bz.concat(by)}return this.pushStack(bz,e,bC.selector)}}});function bg(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function E(e){var bv=(e.nodeName||"").toLowerCase();if(bv==="input"){az(e)}else{if(bv!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),az)}}}function al(e){var bv=av.createElement("div");ac.appendChild(bv);bv.innerHTML=e.outerHTML;return bv.firstChild}b.extend({clone:function(by,bA,bw){var e,bv,bx,bz=b.support.html5Clone||!ah.test("<"+by.nodeName)?by.cloneNode(true):al(by);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(by.nodeType===1||by.nodeType===11)&&!b.isXMLDoc(by)){ai(by,bz);e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){if(bv[bx]){ai(e[bx],bv[bx])}}}if(bA){t(by,bz);if(bw){e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){t(e[bx],bv[bx])}}}e=bv=null;return bz},clean:function(bw,by,bH,bA){var bF;by=by||av;if(typeof by.createElement==="undefined"){by=by.ownerDocument||by[0]&&by[0].ownerDocument||av}var bI=[],bB;for(var bE=0,bz;(bz=bw[bE])!=null;bE++){if(typeof bz==="number"){bz+=""}if(!bz){continue}if(typeof bz==="string"){if(!W.test(bz)){bz=by.createTextNode(bz)}else{bz=bz.replace(R,"<$1>");var bK=(d.exec(bz)||["",""])[1].toLowerCase(),bx=ax[bK]||ax._default,bD=bx[0],bv=by.createElement("div");if(by===av){ac.appendChild(bv)}else{a(by).appendChild(bv)}bv.innerHTML=bx[1]+bz+bx[2];while(bD--){bv=bv.lastChild}if(!b.support.tbody){var e=w.test(bz),bC=bK==="table"&&!e?bv.firstChild&&bv.firstChild.childNodes:bx[1]===""&&!e?bv.childNodes:[];for(bB=bC.length-1;bB>=0;--bB){if(b.nodeName(bC[bB],"tbody")&&!bC[bB].childNodes.length){bC[bB].parentNode.removeChild(bC[bB])}}}if(!b.support.leadingWhitespace&&ar.test(bz)){bv.insertBefore(by.createTextNode(ar.exec(bz)[0]),bv.firstChild)}bz=bv.childNodes}}var bG;if(!b.support.appendChecked){if(bz[0]&&typeof(bG=bz.length)==="number"){for(bB=0;bB=0){return bx+"px"}}else{return bx}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bv,e){return au.test((e&&bv.currentStyle?bv.currentStyle.filter:bv.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(by,bz){var bx=by.style,bv=by.currentStyle,e=b.isNumeric(bz)?"alpha(opacity="+bz*100+")":"",bw=bv&&bv.filter||bx.filter||"";bx.zoom=1;if(bz>=1&&b.trim(bw.replace(ak,""))===""){bx.removeAttribute("filter");if(bv&&!bv.filter){return}}bx.filter=ak.test(bw)?bw.replace(ak,e):bw+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bw,bv){var e;b.swap(bw,{display:"inline-block"},function(){if(bv){e=Z(bw,"margin-right","marginRight")}else{e=bw.style.marginRight}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aI=function(by,bw){var bv,bx,e;bw=bw.replace(z,"-$1").toLowerCase();if((bx=by.ownerDocument.defaultView)&&(e=bx.getComputedStyle(by,null))){bv=e.getPropertyValue(bw);if(bv===""&&!b.contains(by.ownerDocument.documentElement,by)){bv=b.style(by,bw)}}return bv}}if(av.documentElement.currentStyle){aX=function(bz,bw){var bA,e,by,bv=bz.currentStyle&&bz.currentStyle[bw],bx=bz.style;if(bv===null&&bx&&(by=bx[bw])){bv=by}if(!bc.test(bv)&&bn.test(bv)){bA=bx.left;e=bz.runtimeStyle&&bz.runtimeStyle.left;if(e){bz.runtimeStyle.left=bz.currentStyle.left}bx.left=bw==="fontSize"?"1em":(bv||0);bv=bx.pixelLeft+"px";bx.left=bA;if(e){bz.runtimeStyle.left=e}}return bv===""?"auto":bv}}Z=aI||aX;function p(by,bw,bv){var bA=bw==="width"?by.offsetWidth:by.offsetHeight,bz=bw==="width"?an:a1,bx=0,e=bz.length; +if(bA>0){if(bv!=="border"){for(;bx)<[^<]*)*<\/script>/gi,q=/^(?:select|textarea)/i,h=/\s+/,br=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,aa={},r={},aE,s,aV=["*/"]+["*"];try{aE=bl.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}s=K.exec(aE.toLowerCase())||[];function f(e){return function(by,bA){if(typeof by!=="string"){bA=by;by="*"}if(b.isFunction(bA)){var bx=by.toLowerCase().split(h),bw=0,bz=bx.length,bv,bB,bC;for(;bw=0){var e=bw.slice(by,bw.length);bw=bw.slice(0,by)}var bx="GET";if(bz){if(b.isFunction(bz)){bA=bz;bz=L}else{if(typeof bz==="object"){bz=b.param(bz,b.ajaxSettings.traditional);bx="POST"}}}var bv=this;b.ajax({url:bw,type:bx,dataType:"html",data:bz,complete:function(bC,bB,bD){bD=bC.responseText;if(bC.isResolved()){bC.done(function(bE){bD=bE});bv.html(e?b("
").append(bD.replace(a6,"")).find(e):bD)}if(bA){bv.each(bA,[bD,bB,bC])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||aZ.test(this.type))}).map(function(e,bv){var bw=b(this).val();return bw==null?null:b.isArray(bw)?b.map(bw,function(by,bx){return{name:bv.name,value:by.replace(bs,"\r\n")}}):{name:bv.name,value:bw.replace(bs,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bv){b.fn[bv]=function(bw){return this.on(bv,bw)}});b.each(["get","post"],function(e,bv){b[bv]=function(bw,by,bz,bx){if(b.isFunction(by)){bx=bx||bz;bz=by;by=L}return b.ajax({type:bv,url:bw,data:by,success:bz,dataType:bx})}});b.extend({getScript:function(e,bv){return b.get(e,L,bv,"script")},getJSON:function(e,bv,bw){return b.get(e,bv,bw,"json")},ajaxSetup:function(bv,e){if(e){am(bv,b.ajaxSettings)}else{e=bv;bv=b.ajaxSettings}am(bv,e);return bv},ajaxSettings:{url:aE,isLocal:aM.test(s[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aV},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bb.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(aa),ajaxTransport:f(r),ajax:function(bz,bx){if(typeof bz==="object"){bx=bz;bz=L}bx=bx||{};var bD=b.ajaxSetup({},bx),bS=bD.context||bD,bG=bS!==bD&&(bS.nodeType||bS instanceof b)?b(bS):b.event,bR=b.Deferred(),bN=b.Callbacks("once memory"),bB=bD.statusCode||{},bC,bH={},bO={},bQ,by,bL,bE,bI,bA=0,bw,bK,bJ={readyState:0,setRequestHeader:function(bT,bU){if(!bA){var e=bT.toLowerCase();bT=bO[e]=bO[e]||bT;bH[bT]=bU}return this},getAllResponseHeaders:function(){return bA===2?bQ:null},getResponseHeader:function(bT){var e;if(bA===2){if(!by){by={};while((e=aD.exec(bQ))){by[e[1].toLowerCase()]=e[2]}}e=by[bT.toLowerCase()]}return e===L?null:e},overrideMimeType:function(e){if(!bA){bD.mimeType=e}return this},abort:function(e){e=e||"abort";if(bL){bL.abort(e)}bF(0,e);return this}};function bF(bZ,bU,b0,bW){if(bA===2){return}bA=2;if(bE){clearTimeout(bE)}bL=L;bQ=bW||"";bJ.readyState=bZ>0?4:0;var bT,b4,b3,bX=bU,bY=b0?bj(bD,bJ,b0):L,bV,b2;if(bZ>=200&&bZ<300||bZ===304){if(bD.ifModified){if((bV=bJ.getResponseHeader("Last-Modified"))){b.lastModified[bC]=bV}if((b2=bJ.getResponseHeader("Etag"))){b.etag[bC]=b2}}if(bZ===304){bX="notmodified";bT=true}else{try{b4=G(bD,bY);bX="success";bT=true}catch(b1){bX="parsererror";b3=b1}}}else{b3=bX;if(!bX||bZ){bX="error";if(bZ<0){bZ=0}}}bJ.status=bZ;bJ.statusText=""+(bU||bX);if(bT){bR.resolveWith(bS,[b4,bX,bJ])}else{bR.rejectWith(bS,[bJ,bX,b3])}bJ.statusCode(bB);bB=L;if(bw){bG.trigger("ajax"+(bT?"Success":"Error"),[bJ,bD,bT?b4:b3])}bN.fireWith(bS,[bJ,bX]);if(bw){bG.trigger("ajaxComplete",[bJ,bD]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bR.promise(bJ);bJ.success=bJ.done;bJ.error=bJ.fail;bJ.complete=bN.add;bJ.statusCode=function(bT){if(bT){var e;if(bA<2){for(e in bT){bB[e]=[bB[e],bT[e]]}}else{e=bT[bJ.status];bJ.then(e,e)}}return this};bD.url=((bz||bD.url)+"").replace(bq,"").replace(c,s[1]+"//");bD.dataTypes=b.trim(bD.dataType||"*").toLowerCase().split(h);if(bD.crossDomain==null){bI=K.exec(bD.url.toLowerCase());bD.crossDomain=!!(bI&&(bI[1]!=s[1]||bI[2]!=s[2]||(bI[3]||(bI[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if(bD.data&&bD.processData&&typeof bD.data!=="string"){bD.data=b.param(bD.data,bD.traditional)}aW(aa,bD,bx,bJ);if(bA===2){return false}bw=bD.global;bD.type=bD.type.toUpperCase();bD.hasContent=!aQ.test(bD.type);if(bw&&b.active++===0){b.event.trigger("ajaxStart")}if(!bD.hasContent){if(bD.data){bD.url+=(M.test(bD.url)?"&":"?")+bD.data;delete bD.data}bC=bD.url;if(bD.cache===false){var bv=b.now(),bP=bD.url.replace(br,"$1_="+bv);bD.url=bP+((bP===bD.url)?(M.test(bD.url)?"&":"?")+"_="+bv:"")}}if(bD.data&&bD.hasContent&&bD.contentType!==false||bx.contentType){bJ.setRequestHeader("Content-Type",bD.contentType)}if(bD.ifModified){bC=bC||bD.url;if(b.lastModified[bC]){bJ.setRequestHeader("If-Modified-Since",b.lastModified[bC])}if(b.etag[bC]){bJ.setRequestHeader("If-None-Match",b.etag[bC])}}bJ.setRequestHeader("Accept",bD.dataTypes[0]&&bD.accepts[bD.dataTypes[0]]?bD.accepts[bD.dataTypes[0]]+(bD.dataTypes[0]!=="*"?", "+aV+"; q=0.01":""):bD.accepts["*"]);for(bK in bD.headers){bJ.setRequestHeader(bK,bD.headers[bK])}if(bD.beforeSend&&(bD.beforeSend.call(bS,bJ,bD)===false||bA===2)){bJ.abort();return false}for(bK in {success:1,error:1,complete:1}){bJ[bK](bD[bK])}bL=aW(r,bD,bx,bJ);if(!bL){bF(-1,"No Transport")}else{bJ.readyState=1;if(bw){bG.trigger("ajaxSend",[bJ,bD])}if(bD.async&&bD.timeout>0){bE=setTimeout(function(){bJ.abort("timeout")},bD.timeout)}try{bA=1;bL.send(bH,bF)}catch(bM){if(bA<2){bF(-1,bM)}else{throw bM}}}return bJ},param:function(e,bw){var bv=[],by=function(bz,bA){bA=b.isFunction(bA)?bA():bA;bv[bv.length]=encodeURIComponent(bz)+"="+encodeURIComponent(bA)};if(bw===L){bw=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){by(this.name,this.value)})}else{for(var bx in e){v(bx,e[bx],bw,by)}}return bv.join("&").replace(k,"+")}});function v(bw,by,bv,bx){if(b.isArray(by)){b.each(by,function(bA,bz){if(bv||ap.test(bw)){bx(bw,bz)}else{v(bw+"["+(typeof bz==="object"||b.isArray(bz)?bA:"")+"]",bz,bv,bx)}})}else{if(!bv&&by!=null&&typeof by==="object"){for(var e in by){v(bw+"["+e+"]",by[e],bv,bx)}}else{bx(bw,by)}}}b.extend({active:0,lastModified:{},etag:{}});function bj(bD,bC,bz){var bv=bD.contents,bB=bD.dataTypes,bw=bD.responseFields,by,bA,bx,e;for(bA in bw){if(bA in bz){bC[bw[bA]]=bz[bA]}}while(bB[0]==="*"){bB.shift();if(by===L){by=bD.mimeType||bC.getResponseHeader("content-type")}}if(by){for(bA in bv){if(bv[bA]&&bv[bA].test(by)){bB.unshift(bA);break}}}if(bB[0] in bz){bx=bB[0]}else{for(bA in bz){if(!bB[0]||bD.converters[bA+" "+bB[0]]){bx=bA;break}if(!e){e=bA}}bx=bx||e}if(bx){if(bx!==bB[0]){bB.unshift(bx)}return bz[bx]}}function G(bH,bz){if(bH.dataFilter){bz=bH.dataFilter(bz,bH.dataType)}var bD=bH.dataTypes,bG={},bA,bE,bw=bD.length,bB,bC=bD[0],bx,by,bF,bv,e;for(bA=1;bA=bw.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bw.animatedProperties[this.prop]=true;for(bA in bw.animatedProperties){if(bw.animatedProperties[bA]!==true){e=false}}if(e){if(bw.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bC,bD){bz.style["overflow"+bD]=bw.overflow[bC]})}if(bw.hide){b(bz).hide()}if(bw.hide||bw.show){for(bA in bw.animatedProperties){b.style(bz,bA,bw.orig[bA]);b.removeData(bz,"fxshow"+bA,true);b.removeData(bz,"toggle"+bA,true)}}bv=bw.complete;if(bv){bw.complete=false;bv.call(bz)}}return false}else{if(bw.duration==Infinity){this.now=bx}else{bB=bx-this.startTime;this.state=bB/bw.duration;this.pos=b.easing[bw.animatedProperties[this.prop]](this.state,bB,0,1,bw.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bw,bv=b.timers,e=0;for(;e").appendTo(e),bw=bv.css("display");bv.remove();if(bw==="none"||bw===""){if(!a8){a8=av.createElement("iframe");a8.frameBorder=a8.width=a8.height=0}e.appendChild(a8);if(!m||!a8.createElement){m=(a8.contentWindow||a8.contentDocument).document;m.write((av.compatMode==="CSS1Compat"?"":"")+"");m.close()}bv=m.createElement(bx);m.body.appendChild(bv);bw=b.css(bv,"display");e.removeChild(a8)}Q[bx]=bw}return Q[bx]}var V=/^t(?:able|d|h)$/i,ad=/^(?:body|html)$/i;if("getBoundingClientRect" in av.documentElement){b.fn.offset=function(bI){var by=this[0],bB;if(bI){return this.each(function(e){b.offset.setOffset(this,bI,e)})}if(!by||!by.ownerDocument){return null}if(by===by.ownerDocument.body){return b.offset.bodyOffset(by)}try{bB=by.getBoundingClientRect()}catch(bF){}var bH=by.ownerDocument,bw=bH.documentElement;if(!bB||!b.contains(bw,by)){return bB?{top:bB.top,left:bB.left}:{top:0,left:0}}var bC=bH.body,bD=aK(bH),bA=bw.clientTop||bC.clientTop||0,bE=bw.clientLeft||bC.clientLeft||0,bv=bD.pageYOffset||b.support.boxModel&&bw.scrollTop||bC.scrollTop,bz=bD.pageXOffset||b.support.boxModel&&bw.scrollLeft||bC.scrollLeft,bG=bB.top+bv-bA,bx=bB.left+bz-bE;return{top:bG,left:bx}}}else{b.fn.offset=function(bF){var bz=this[0];if(bF){return this.each(function(bG){b.offset.setOffset(this,bF,bG)})}if(!bz||!bz.ownerDocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOffset(bz)}var bC,bw=bz.offsetParent,bv=bz,bE=bz.ownerDocument,bx=bE.documentElement,bA=bE.body,bB=bE.defaultView,e=bB?bB.getComputedStyle(bz,null):bz.currentStyle,bD=bz.offsetTop,by=bz.offsetLeft;while((bz=bz.parentNode)&&bz!==bA&&bz!==bx){if(b.support.fixedPosition&&e.position==="fixed"){break}bC=bB?bB.getComputedStyle(bz,null):bz.currentStyle;bD-=bz.scrollTop;by-=bz.scrollLeft;if(bz===bw){bD+=bz.offsetTop;by+=bz.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&V.test(bz.nodeName))){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}bv=bw;bw=bz.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bC.overflow!=="visible"){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}e=bC}if(e.position==="relative"||e.position==="static"){bD+=bA.offsetTop;by+=bA.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bD+=Math.max(bx.scrollTop,bA.scrollTop);by+=Math.max(bx.scrollLeft,bA.scrollLeft)}return{top:bD,left:by}}}b.offset={bodyOffset:function(e){var bw=e.offsetTop,bv=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bw+=parseFloat(b.css(e,"marginTop"))||0;bv+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bw,left:bv}},setOffset:function(bx,bG,bA){var bB=b.css(bx,"position");if(bB==="static"){bx.style.position="relative"}var bz=b(bx),bv=bz.offset(),e=b.css(bx,"top"),bE=b.css(bx,"left"),bF=(bB==="absolute"||bB==="fixed")&&b.inArray("auto",[e,bE])>-1,bD={},bC={},bw,by;if(bF){bC=bz.position();bw=bC.top;by=bC.left}else{bw=parseFloat(e)||0;by=parseFloat(bE)||0}if(b.isFunction(bG)){bG=bG.call(bx,bA,bv)}if(bG.top!=null){bD.top=(bG.top-bv.top)+bw}if(bG.left!=null){bD.left=(bG.left-bv.left)+by}if("using" in bG){bG.using.call(bx,bD)}else{bz.css(bD)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bw=this[0],bv=this.offsetParent(),bx=this.offset(),e=ad.test(bv[0].nodeName)?{top:0,left:0}:bv.offset();bx.top-=parseFloat(b.css(bw,"marginTop"))||0;bx.left-=parseFloat(b.css(bw,"marginLeft"))||0;e.top+=parseFloat(b.css(bv[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bv[0],"borderLeftWidth"))||0;return{top:bx.top-e.top,left:bx.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||av.body;while(e&&(!ad.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bv,e){var bw="scroll"+e;b.fn[bw]=function(bz){var bx,by;if(bz===L){bx=this[0];if(!bx){return null}by=aK(bx);return by?("pageXOffset" in by)?by[bv?"pageYOffset":"pageXOffset"]:b.support.boxModel&&by.document.documentElement[bw]||by.document.body[bw]:bx[bw]}return this.each(function(){by=aK(this);if(by){by.scrollTo(!bv?bz:b(by).scrollLeft(),bv?bz:b(by).scrollTop())}else{this[bw]=bz}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bv,e){var bw=e.toLowerCase();b.fn["inner"+e]=function(){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,"padding")):this[bw]():null};b.fn["outer"+e]=function(by){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,by?"margin":"border")):this[bw]():null};b.fn[bw]=function(bz){var bA=this[0];if(!bA){return bz==null?null:this}if(b.isFunction(bz)){return this.each(function(bE){var bD=b(this);bD[bw](bz.call(this,bE,bD[bw]()))})}if(b.isWindow(bA)){var bB=bA.document.documentElement["client"+e],bx=bA.document.body;return bA.document.compatMode==="CSS1Compat"&&bB||bx&&bx["client"+e]||bB}else{if(bA.nodeType===9){return Math.max(bA.documentElement["client"+e],bA.body["scroll"+e],bA.documentElement["scroll"+e],bA.body["offset"+e],bA.documentElement["offset"+e])}else{if(bz===L){var bC=b.css(bA,bw),by=parseFloat(bC);return b.isNumeric(by)?by:bC}else{return this.css(bw,typeof bz==="string"?bz:bz+"px")}}}}});bb.jQuery=bb.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b +})}})(window); diff --git a/docs/RuntimeAPI/html/modules.html b/docs/RuntimeAPI/html/modules.html new file mode 100644 index 0000000000..ba3bae37e0 --- /dev/null +++ b/docs/RuntimeAPI/html/modules.html @@ -0,0 +1,109 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Modules + + + + + + + + + +
+
+
+ + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+ + + + + + + + + + +
+ +
+ +
+
+
Modules
+
+ + + + + diff --git a/docs/RuntimeAPI/html/nav_f.png b/docs/RuntimeAPI/html/nav_f.png new file mode 100644 index 0000000000..72a58a529e Binary files /dev/null and b/docs/RuntimeAPI/html/nav_f.png differ diff --git a/docs/RuntimeAPI/html/nav_g.png b/docs/RuntimeAPI/html/nav_g.png new file mode 100644 index 0000000000..2093a237a9 Binary files /dev/null and b/docs/RuntimeAPI/html/nav_g.png differ diff --git a/docs/RuntimeAPI/html/nav_h.png b/docs/RuntimeAPI/html/nav_h.png new file mode 100644 index 0000000000..33389b101d Binary files /dev/null and b/docs/RuntimeAPI/html/nav_h.png differ diff --git a/docs/RuntimeAPI/html/open.png b/docs/RuntimeAPI/html/open.png new file mode 100644 index 0000000000..30f75c7efe Binary files /dev/null and b/docs/RuntimeAPI/html/open.png differ diff --git a/docs/RuntimeAPI/html/pages.html b/docs/RuntimeAPI/html/pages.html new file mode 100644 index 0000000000..2236c6e7e0 --- /dev/null +++ b/docs/RuntimeAPI/html/pages.html @@ -0,0 +1,97 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Related Pages + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + +
+ + + + +
+ +
+ +
+
+
Related Pages
+
+
+
Here is a list of all related documentation pages:
+
+ + + + diff --git a/docs/RuntimeAPI/html/search/all_0.html b/docs/RuntimeAPI/html/search/all_0.html new file mode 100644 index 0000000000..17b6da85df --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_0.js b/docs/RuntimeAPI/html/search/all_0.js new file mode 100644 index 0000000000..2901eb97b7 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_0.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['_5f_5fhalf',['__half',['../struct____half.html',1,'']]], + ['_5f_5fhost_5f_5f',['__host__',['../host__defines_8h.html#a803050db3c78e0db3ea59a0c35499622',1,'host_defines.h']]], + ['_5f_5fthreadfence',['__threadfence',['../group__Fence.html#ga8ed093b29d5c05d46a1240e7a35a6d13',1,'hip_runtime.h']]], + ['_5f_5fthreadfence_5fblock',['__threadfence_block',['../group__Fence.html#ga675c8823d497b2fd91abc42085e5ae25',1,'hip_runtime.h']]], + ['_5f_5fthreadfence_5fsystem',['__threadfence_system',['../group__Fence.html#ga21e7328a2daaf9e376d10b5c6b3de0ae',1,'__threadfence_system(void): device_util.cpp'],['../group__Fence.html#ga21e7328a2daaf9e376d10b5c6b3de0ae',1,'__threadfence_system(void): device_util.cpp']]], + ['_5fcomputeunits',['_computeUnits',['../classihipDevice__t.html#a655e03136394df32571a52707aa371c5',1,'ihipDevice_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_1.html b/docs/RuntimeAPI/html/search/all_1.html new file mode 100644 index 0000000000..e2906449f2 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_1.js b/docs/RuntimeAPI/html/search/all_1.js new file mode 100644 index 0000000000..2fba32867b --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_1.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['arch',['arch',['../structhipDeviceProp__t.html#afc58158e44bef6ad26f2be401434b049',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_10.html b/docs/RuntimeAPI/html/search/all_10.html new file mode 100644 index 0000000000..c55c8367e4 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_10.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_10.js b/docs/RuntimeAPI/html/search/all_10.js new file mode 100644 index 0000000000..bb8f6295d1 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_10.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['texture_20reference_20management',['Texture Reference Management',['../group__Texture.html',1,'']]], + ['texturereference',['textureReference',['../structtextureReference.html',1,'']]], + ['totalconstmem',['totalConstMem',['../structhipDeviceProp__t.html#a29880232c56120be3455ce00d5379665',1,'hipDeviceProp_t']]], + ['totalglobalmem',['totalGlobalMem',['../structhipDeviceProp__t.html#acedd6a2d23423441e4bf51c4a1b719f9',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_11.html b/docs/RuntimeAPI/html/search/all_11.html new file mode 100644 index 0000000000..6f3943a941 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_11.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_11.js b/docs/RuntimeAPI/html/search/all_11.js new file mode 100644 index 0000000000..e1eb527d76 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_11.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['uchar3',['uchar3',['../structuchar3.html',1,'']]], + ['uchar4',['uchar4',['../structuchar4.html',1,'']]], + ['uint3',['uint3',['../structuint3.html',1,'']]], + ['ulong3',['ulong3',['../structulong3.html',1,'']]], + ['ulonglong3',['ulonglong3',['../structulonglong3.html',1,'']]], + ['ushort3',['ushort3',['../structushort3.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_12.html b/docs/RuntimeAPI/html/search/all_12.html new file mode 100644 index 0000000000..3c7c89ef60 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_12.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_12.js b/docs/RuntimeAPI/html/search/all_12.js new file mode 100644 index 0000000000..46a1400a7b --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_12.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['warpsize',['warpSize',['../structhipDeviceProp__t.html#af3357d33c004608bf05bc21a352be81b',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_13.html b/docs/RuntimeAPI/html/search/all_13.html new file mode 100644 index 0000000000..0bd629b86b --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_13.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_13.js b/docs/RuntimeAPI/html/search/all_13.js new file mode 100644 index 0000000000..250c203caf --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_13.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['x',['x',['../structdim3.html#ac866c05f83a28dac20a153fc65b3b16c',1,'dim3']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_14.html b/docs/RuntimeAPI/html/search/all_14.html new file mode 100644 index 0000000000..2ad638b277 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_14.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_14.js b/docs/RuntimeAPI/html/search/all_14.js new file mode 100644 index 0000000000..133dd9dc6e --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_14.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['y',['y',['../structdim3.html#a83e60e072f7e8bdfde6ac05053cbb370',1,'dim3']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_15.html b/docs/RuntimeAPI/html/search/all_15.html new file mode 100644 index 0000000000..d3b5274ba7 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_15.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_15.js b/docs/RuntimeAPI/html/search/all_15.js new file mode 100644 index 0000000000..e8bf38b99c --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_15.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['z',['z',['../structdim3.html#a866e38993ecc4e76fd47311236c16b04',1,'dim3']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_2.html b/docs/RuntimeAPI/html/search/all_2.html new file mode 100644 index 0000000000..95ded1222d --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_2.js b/docs/RuntimeAPI/html/search/all_2.js new file mode 100644 index 0000000000..8d42650d49 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_2.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['bug_20list',['Bug List',['../bug.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_3.html b/docs/RuntimeAPI/html/search/all_3.html new file mode 100644 index 0000000000..4d312d03dd --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_3.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_3.js b/docs/RuntimeAPI/html/search/all_3.js new file mode 100644 index 0000000000..eed6c54048 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_3.js @@ -0,0 +1,11 @@ +var searchData= +[ + ['canmaphostmemory',['canMapHostMemory',['../structhipDeviceProp__t.html#ac2143f5448607d1a02a9e8783fcf06a1',1,'hipDeviceProp_t']]], + ['char3',['char3',['../structchar3.html',1,'']]], + ['char4',['char4',['../structchar4.html',1,'']]], + ['clockinstructionrate',['clockInstructionRate',['../structhipDeviceProp__t.html#a6fbf3b08a1a08ae700f1a06265f6666b',1,'hipDeviceProp_t']]], + ['clockrate',['clockRate',['../structhipDeviceProp__t.html#a1dd15bee43692b8649dfbdc1adbaaf96',1,'hipDeviceProp_t']]], + ['computemode',['computeMode',['../structhipDeviceProp__t.html#ae7d9216f8583a703359d0b9373823f5d',1,'hipDeviceProp_t']]], + ['concurrentkernels',['concurrentKernels',['../structhipDeviceProp__t.html#ad8461a28caf9c38c58cf358583b5bee3',1,'hipDeviceProp_t']]], + ['control',['Control',['../group__Profiler.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_4.html b/docs/RuntimeAPI/html/search/all_4.html new file mode 100644 index 0000000000..d72a9104cd --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_4.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_4.js b/docs/RuntimeAPI/html/search/all_4.js new file mode 100644 index 0000000000..07d1b6e566 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_4.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['dbname',['DbName',['../structDbName.html',1,'']]], + ['deprecated_20list',['Deprecated List',['../deprecated.html',1,'']]], + ['device_20management',['Device Management',['../group__Device.html',1,'']]], + ['dim3',['dim3',['../structdim3.html',1,'dim3'],['../group__GlobalDefs.html#gacb37281795c3567d0b10a61c056d512b',1,'dim3(): hip_runtime_api.h']]], + ['double1',['double1',['../structdouble1.html',1,'']]], + ['double3',['double3',['../structdouble3.html',1,'']]], + ['device_20memory_20access',['Device Memory Access',['../group__PeerToPeer.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_5.html b/docs/RuntimeAPI/html/search/all_5.html new file mode 100644 index 0000000000..99ef726704 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_5.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_5.js b/docs/RuntimeAPI/html/search/all_5.js new file mode 100644 index 0000000000..c9fd17e83e --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_5.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['error_20handling',['Error Handling',['../group__Error.html',1,'']]], + ['event_20management',['Event Management',['../group__Event.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_6.html b/docs/RuntimeAPI/html/search/all_6.html new file mode 100644 index 0000000000..6133ab3af1 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_6.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_6.js b/docs/RuntimeAPI/html/search/all_6.js new file mode 100644 index 0000000000..feba6529f6 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_6.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['fakemutex',['FakeMutex',['../classFakeMutex.html',1,'']]], + ['fence_20functions',['Fence Functions',['../group__Fence.html',1,'']]], + ['float1',['float1',['../structfloat1.html',1,'']]], + ['float3',['float3',['../structfloat3.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_7.html b/docs/RuntimeAPI/html/search/all_7.html new file mode 100644 index 0000000000..574812594f --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_7.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_7.js b/docs/RuntimeAPI/html/search/all_7.js new file mode 100644 index 0000000000..529e9394c3 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_7.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['global_20enum_20and_20defines',['Global enum and defines',['../group__GlobalDefs.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_8.html b/docs/RuntimeAPI/html/search/all_8.html new file mode 100644 index 0000000000..0179bdd463 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_8.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_8.js b/docs/RuntimeAPI/html/search/all_8.js new file mode 100644 index 0000000000..1e1570aaa0 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_8.js @@ -0,0 +1,230 @@ +var searchData= +[ + ['hip_20api',['HIP API',['../group__API.html',1,'']]], + ['has3dgrid',['has3dGrid',['../structhipDeviceArch__t.html#aa5e22d295cce0d9a34ee6e7e7e378c26',1,'hipDeviceArch_t']]], + ['hasdoubles',['hasDoubles',['../structhipDeviceArch__t.html#a2d624e3d85e615b71d1182f8912893b4',1,'hipDeviceArch_t']]], + ['hasdynamicparallelism',['hasDynamicParallelism',['../structhipDeviceArch__t.html#a9114bfc718bf0648b54ff9a319a36b35',1,'hipDeviceArch_t']]], + ['hasfloatatomicadd',['hasFloatAtomicAdd',['../structhipDeviceArch__t.html#a2321d6ef74aac91c044f3289d25b2d41',1,'hipDeviceArch_t']]], + ['hasfunnelshift',['hasFunnelShift',['../structhipDeviceArch__t.html#aaec4f2d983d4602858fae8e9ddeee3ff',1,'hipDeviceArch_t']]], + ['hasglobalfloatatomicexch',['hasGlobalFloatAtomicExch',['../structhipDeviceArch__t.html#a8f213ae9a4729dff1c636ac5de0e2fa2',1,'hipDeviceArch_t']]], + ['hasglobalint32atomics',['hasGlobalInt32Atomics',['../structhipDeviceArch__t.html#a8d00c3ab98869b602c714fe7abe68e93',1,'hipDeviceArch_t']]], + ['hasglobalint64atomics',['hasGlobalInt64Atomics',['../structhipDeviceArch__t.html#ad5aa54dbab22dbcd8cf98f57a96c6636',1,'hipDeviceArch_t']]], + ['hassharedfloatatomicexch',['hasSharedFloatAtomicExch',['../structhipDeviceArch__t.html#aff005558b4edabd27b27f286ac5b2f2b',1,'hipDeviceArch_t']]], + ['hassharedint32atomics',['hasSharedInt32Atomics',['../structhipDeviceArch__t.html#a1596330b1cb9cc73f142aee11b2ab853',1,'hipDeviceArch_t']]], + ['hassharedint64atomics',['hasSharedInt64Atomics',['../structhipDeviceArch__t.html#a00c2b930fcdcad9ea7b54b449db13966',1,'hipDeviceArch_t']]], + ['hassurfacefuncs',['hasSurfaceFuncs',['../structhipDeviceArch__t.html#a9eb2462148686d4c048b69b6e09f835e',1,'hipDeviceArch_t']]], + ['hassyncthreadsext',['hasSyncThreadsExt',['../structhipDeviceArch__t.html#ade6a3b21ad5f344dcd92c52102c274ba',1,'hipDeviceArch_t']]], + ['hasthreadfencesystem',['hasThreadFenceSystem',['../structhipDeviceArch__t.html#ac2818e3b91cba8beb36741e9867bb887',1,'hipDeviceArch_t']]], + ['haswarpballot',['hasWarpBallot',['../structhipDeviceArch__t.html#af1e934a8a5106995bcc256287585564c',1,'hipDeviceArch_t']]], + ['haswarpshuffle',['hasWarpShuffle',['../structhipDeviceArch__t.html#a3d922e8fc97ca1e8ecc39600b138fa2d',1,'hipDeviceArch_t']]], + ['haswarpvote',['hasWarpVote',['../structhipDeviceArch__t.html#a35bde017352eca1d4e0eceb3bf79f274',1,'hipDeviceArch_t']]], + ['hcc_2dspecific_20accessors',['HCC-Specific Accessors',['../group__HCC__Specific.html',1,'']]], + ['hip_20environment_20variables',['HIP Environment Variables',['../group__HIP-ENV.html',1,'']]], + ['hip_5fdynamic_5fshared',['HIP_DYNAMIC_SHARED',['../hcc__detail_2hip__runtime_8h.html#a1e7ec14fb6b74c03b6ec804d6ef7e0ea',1,'hip_runtime.h']]], + ['hip_5fhcc_2ecpp',['hip_hcc.cpp',['../hip__hcc_8cpp.html',1,'']]], + ['hip_5fruntime_2eh',['hip_runtime.h',['../hcc__detail_2hip__runtime_8h.html',1,'']]], + ['hip_5fruntime_5fapi_2eh',['hip_runtime_api.h',['../hcc__detail_2hip__runtime__api_8h.html',1,'']]], + ['hip_5ftexture_2eh',['hip_texture.h',['../hcc__detail_2hip__texture_8h.html',1,'']]], + ['hip_5fvector_5ftypes_2eh',['hip_vector_types.h',['../hcc__detail_2hip__vector__types_8h.html',1,'']]], + ['hiparray',['hipArray',['../structhipArray.html',1,'']]], + ['hipchannelformatdesc',['hipChannelFormatDesc',['../structhipChannelFormatDesc.html',1,'']]], + ['hipchoosedevice',['hipChooseDevice',['../group__Device.html#gaf1e365e1d17cf40644d1470de4817c8e',1,'hipChooseDevice(int *device, const hipDeviceProp_t *prop): hip_device.cpp'],['../group__Device.html#gaf1e365e1d17cf40644d1470de4817c8e',1,'hipChooseDevice(int *device, const hipDeviceProp_t *prop): hip_device.cpp']]], + ['hipcreatechanneldesc',['hipCreateChannelDesc',['../group__Texture.html#gac9b0ae733fa849842342fab6d42c7b6f',1,'hipCreateChannelDesc(int x, int y, int z, int w, hipChannelFormatKind f): hip_memory.cpp'],['../group__Texture.html#gac9b0ae733fa849842342fab6d42c7b6f',1,'hipCreateChannelDesc(int x, int y, int z, int w, hipChannelFormatKind f): hip_memory.cpp']]], + ['hipctxcreate',['hipCtxCreate',['../group__Context.html#gab6dbcff5c5b1249a5ac5cf39ae9d08bc',1,'hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device): hip_context.cpp'],['../group__Context.html#gab6dbcff5c5b1249a5ac5cf39ae9d08bc',1,'hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device): hip_context.cpp']]], + ['hipctxdestroy',['hipCtxDestroy',['../group__Context.html#ga9a65fe43238ef303a6d97826c05fd14e',1,'hipCtxDestroy(hipCtx_t ctx): hip_context.cpp'],['../group__Context.html#ga9a65fe43238ef303a6d97826c05fd14e',1,'hipCtxDestroy(hipCtx_t ctx): hip_context.cpp']]], + ['hipctxdisablepeeraccess',['hipCtxDisablePeerAccess',['../group__Context.html#gaf48e4e9c3b6bbad5deaeff10d2e28b31',1,'hipCtxDisablePeerAccess(hipCtx_t peerCtx): hip_peer.cpp'],['../group__Context.html#gaf48e4e9c3b6bbad5deaeff10d2e28b31',1,'hipCtxDisablePeerAccess(hipCtx_t peerCtx): hip_peer.cpp']]], + ['hipctxenablepeeraccess',['hipCtxEnablePeerAccess',['../group__Context.html#ga834dfd99d72082fe8770142fa30b30e2',1,'hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags): hip_peer.cpp'],['../group__Context.html#ga834dfd99d72082fe8770142fa30b30e2',1,'hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags): hip_peer.cpp']]], + ['hipctxgetapiversion',['hipCtxGetApiVersion',['../group__Context.html#gabe5941e6798c71a8351b7d51311e7e8f',1,'hipCtxGetApiVersion(hipCtx_t ctx, int *apiVersion): hip_context.cpp'],['../group__Context.html#gabe5941e6798c71a8351b7d51311e7e8f',1,'hipCtxGetApiVersion(hipCtx_t ctx, int *apiVersion): hip_context.cpp']]], + ['hipctxgetcacheconfig',['hipCtxGetCacheConfig',['../group__Context.html#gab10373068faafd3042c9003e2e6d905a',1,'hipCtxGetCacheConfig(hipFuncCache_t *cacheConfig): hip_context.cpp'],['../group__Context.html#gab10373068faafd3042c9003e2e6d905a',1,'hipCtxGetCacheConfig(hipFuncCache_t *cacheConfig): hip_context.cpp']]], + ['hipctxgetcurrent',['hipCtxGetCurrent',['../group__Context.html#ga741786101d348fdbfa1f64546860357a',1,'hipCtxGetCurrent(hipCtx_t *ctx): hip_context.cpp'],['../group__Context.html#ga741786101d348fdbfa1f64546860357a',1,'hipCtxGetCurrent(hipCtx_t *ctx): hip_context.cpp']]], + ['hipctxgetdevice',['hipCtxGetDevice',['../group__Context.html#ga8aa32cf64272da929f23ecbafefefcee',1,'hipCtxGetDevice(hipDevice_t *device): hip_context.cpp'],['../group__Context.html#ga8aa32cf64272da929f23ecbafefefcee',1,'hipCtxGetDevice(hipDevice_t *device): hip_context.cpp']]], + ['hipctxgetflags',['hipCtxGetFlags',['../group__Context.html#ga12a7a993e10f775fbf61a0b14288ed1b',1,'hipCtxGetFlags(unsigned int *flags): hip_context.cpp'],['../group__Context.html#ga12a7a993e10f775fbf61a0b14288ed1b',1,'hipCtxGetFlags(unsigned int *flags): hip_context.cpp']]], + ['hipctxgetsharedmemconfig',['hipCtxGetSharedMemConfig',['../group__Context.html#ga3c78b22dd03435a7ca88621a45409565',1,'hipCtxGetSharedMemConfig(hipSharedMemConfig *pConfig): hip_context.cpp'],['../group__Context.html#ga3c78b22dd03435a7ca88621a45409565',1,'hipCtxGetSharedMemConfig(hipSharedMemConfig *pConfig): hip_context.cpp']]], + ['hipctxpopcurrent',['hipCtxPopCurrent',['../group__Context.html#ga2cc4ea5a6b78d9d7990a88a7863467d4',1,'hipCtxPopCurrent(hipCtx_t *ctx): hip_context.cpp'],['../group__Context.html#ga2cc4ea5a6b78d9d7990a88a7863467d4',1,'hipCtxPopCurrent(hipCtx_t *ctx): hip_context.cpp']]], + ['hipctxpushcurrent',['hipCtxPushCurrent',['../group__Context.html#ga9c9d92f29d68cacdea4c062c97e50a8a',1,'hipCtxPushCurrent(hipCtx_t ctx): hip_context.cpp'],['../group__Context.html#ga9c9d92f29d68cacdea4c062c97e50a8a',1,'hipCtxPushCurrent(hipCtx_t ctx): hip_context.cpp']]], + ['hipctxsetcacheconfig',['hipCtxSetCacheConfig',['../group__Context.html#ga7eacc656f1d1b6f5a683bea31be67a2f',1,'hipCtxSetCacheConfig(hipFuncCache_t cacheConfig): hip_context.cpp'],['../group__Context.html#ga7eacc656f1d1b6f5a683bea31be67a2f',1,'hipCtxSetCacheConfig(hipFuncCache_t cacheConfig): hip_context.cpp']]], + ['hipctxsetcurrent',['hipCtxSetCurrent',['../group__Context.html#ga834a192f70c2bfc0269c309436776feb',1,'hipCtxSetCurrent(hipCtx_t ctx): hip_context.cpp'],['../group__Context.html#ga834a192f70c2bfc0269c309436776feb',1,'hipCtxSetCurrent(hipCtx_t ctx): hip_context.cpp']]], + ['hipctxsetsharedmemconfig',['hipCtxSetSharedMemConfig',['../group__Context.html#gad5c1d4ced27f584a74ed550dd002fa5a',1,'hipCtxSetSharedMemConfig(hipSharedMemConfig config): hip_context.cpp'],['../group__Context.html#gad5c1d4ced27f584a74ed550dd002fa5a',1,'hipCtxSetSharedMemConfig(hipSharedMemConfig config): hip_context.cpp']]], + ['hipctxsynchronize',['hipCtxSynchronize',['../group__Context.html#gad45cd968e8e3dcfd24ef050cab2f41c8',1,'hipCtxSynchronize(void): hip_context.cpp'],['../group__Context.html#gad45cd968e8e3dcfd24ef050cab2f41c8',1,'hipCtxSynchronize(void): hip_context.cpp']]], + ['hipdevicearch_5ft',['hipDeviceArch_t',['../structhipDeviceArch__t.html',1,'']]], + ['hipdeviceattribute_5ft',['hipDeviceAttribute_t',['../group__GlobalDefs.html#gacc0acd7b9bda126c6bb3dfd6e2796d7c',1,'hip_runtime_api.h']]], + ['hipdeviceattributeclockrate',['hipDeviceAttributeClockRate',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca2300e077e020e7967592065561373b00',1,'hip_runtime_api.h']]], + ['hipdeviceattributecomputecapabilitymajor',['hipDeviceAttributeComputeCapabilityMajor',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca2735739cf977b7d303266f6781131e8d',1,'hip_runtime_api.h']]], + ['hipdeviceattributecomputecapabilityminor',['hipDeviceAttributeComputeCapabilityMinor',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca38edc4fcae456e47160d349da3249b85',1,'hip_runtime_api.h']]], + ['hipdeviceattributecomputemode',['hipDeviceAttributeComputeMode',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca4d0369a6ef7bd7890fdcabc16ed3385d',1,'hip_runtime_api.h']]], + ['hipdeviceattributeconcurrentkernels',['hipDeviceAttributeConcurrentKernels',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cad9f45254d0d048677f560032532d5504',1,'hip_runtime_api.h']]], + ['hipdeviceattributeismultigpuboard',['hipDeviceAttributeIsMultiGpuBoard',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6129311200a17dcc5fa8d2256874ae3d',1,'hip_runtime_api.h']]], + ['hipdeviceattributel2cachesize',['hipDeviceAttributeL2CacheSize',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca582ae5a26a7148504878890028e4b64c',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxblockdimx',['hipDeviceAttributeMaxBlockDimX',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cac1e4ac589db0d8adbbc241e3d0fcd594',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxblockdimy',['hipDeviceAttributeMaxBlockDimY',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca187dbffe12db09a56c0f75c340d879c9',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxblockdimz',['hipDeviceAttributeMaxBlockDimZ',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caf811f51e03d1ffb025d80ac1da088675',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxgriddimx',['hipDeviceAttributeMaxGridDimX',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca03db8df0e7a9fbdaae683d97e8ac9c87',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxgriddimy',['hipDeviceAttributeMaxGridDimY',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca5b5cc49972679c5ccf62b79425ee99df',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxgriddimz',['hipDeviceAttributeMaxGridDimZ',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6c206ac083999caf4640e5d91dae24f7',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxregistersperblock',['hipDeviceAttributeMaxRegistersPerBlock',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca82289b170192b6ea742be0efc6f95107',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxsharedmemoryperblock',['hipDeviceAttributeMaxSharedMemoryPerBlock',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca7bca3aa18b26d40eba043ae93e15c7e5',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxsharedmemorypermultiprocessor',['hipDeviceAttributeMaxSharedMemoryPerMultiprocessor',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cad3e7f3d01533b32e12211172fcf410ba',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxthreadsperblock',['hipDeviceAttributeMaxThreadsPerBlock',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca8327aa23782d9c994bdef33a6d62e02e',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxthreadspermultiprocessor',['hipDeviceAttributeMaxThreadsPerMultiProcessor',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caddc08922b491eb1f6a583833cbf4e2f0',1,'hip_runtime_api.h']]], + ['hipdeviceattributememorybuswidth',['hipDeviceAttributeMemoryBusWidth',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca848c1396fab6f20463c6aefb828b0870',1,'hip_runtime_api.h']]], + ['hipdeviceattributememoryclockrate',['hipDeviceAttributeMemoryClockRate',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6b68deafd65f036b30dc8051573eb000',1,'hip_runtime_api.h']]], + ['hipdeviceattributemultiprocessorcount',['hipDeviceAttributeMultiprocessorCount',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca5c1519870733ccf0b83f722678240e5f',1,'hip_runtime_api.h']]], + ['hipdeviceattributepcibusid',['hipDeviceAttributePciBusId',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca572b29c44f1322aa7657fdd784832f88',1,'hip_runtime_api.h']]], + ['hipdeviceattributepcideviceid',['hipDeviceAttributePciDeviceId',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca955d90286e87be9e3528f0b817ab32ff',1,'hip_runtime_api.h']]], + ['hipdeviceattributetotalconstantmemory',['hipDeviceAttributeTotalConstantMemory',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cac6089ac3a0f9c77cc382fb0eaa73ae9c',1,'hip_runtime_api.h']]], + ['hipdeviceattributewarpsize',['hipDeviceAttributeWarpSize',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caffd94133e823247a6f1215343232f6ec',1,'hip_runtime_api.h']]], + ['hipdevicecanaccesspeer',['hipDeviceCanAccessPeer',['../group__PeerToPeer.html#ga0a1c9ccd775758d9d7d5b5a1f525b719',1,'hipDeviceCanAccessPeer(int *canAccessPeer, int deviceId, int peerDeviceId): hip_peer.cpp'],['../group__PeerToPeer.html#ga0a1c9ccd775758d9d7d5b5a1f525b719',1,'hipDeviceCanAccessPeer(int *canAccessPeer, int deviceId, int peerDeviceId): hip_peer.cpp']]], + ['hipdevicecomputecapability',['hipDeviceComputeCapability',['../group__Driver.html#ga0a1cf94d2b571ca3279577d5af0d1672',1,'hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device): hip_device.cpp'],['../group__Driver.html#ga0a1cf94d2b571ca3279577d5af0d1672',1,'hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device): hip_device.cpp']]], + ['hipdevicedisablepeeraccess',['hipDeviceDisablePeerAccess',['../group__PeerToPeer.html#ga85030c72824fb60aaddc7374ab60481b',1,'hipDeviceDisablePeerAccess(int peerDeviceId): hip_peer.cpp'],['../group__PeerToPeer.html#ga85030c72824fb60aaddc7374ab60481b',1,'hipDeviceDisablePeerAccess(int peerDeviceId): hip_peer.cpp']]], + ['hipdeviceenablepeeraccess',['hipDeviceEnablePeerAccess',['../group__PeerToPeer.html#ga0caca59034134d7a7bb893cc1caa653e',1,'hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags): hip_peer.cpp'],['../group__PeerToPeer.html#ga0caca59034134d7a7bb893cc1caa653e',1,'hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags): hip_peer.cpp']]], + ['hipdeviceget',['hipDeviceGet',['../group__Driver.html#gadf6c74aaf7c22fea80e9ac3400d43704',1,'hipDeviceGet(hipDevice_t *device, int ordinal): hip_context.cpp'],['../group__Driver.html#gadf6c74aaf7c22fea80e9ac3400d43704',1,'hipDeviceGet(hipDevice_t *device, int deviceId): hip_context.cpp']]], + ['hipdevicegetattribute',['hipDeviceGetAttribute',['../group__Device.html#ga7080a145a4239a7276e0dc22062026c1',1,'hipDeviceGetAttribute(int *pi, hipDeviceAttribute_t attr, int deviceId): hip_device.cpp'],['../group__Device.html#ga7080a145a4239a7276e0dc22062026c1',1,'hipDeviceGetAttribute(int *pi, hipDeviceAttribute_t attr, int device): hip_device.cpp']]], + ['hipdevicegetbypcibusid',['hipDeviceGetByPCIBusId',['../group__Driver.html#gafe08d5632ebd24edc26a19da380b2120',1,'hipDeviceGetByPCIBusId(int *device, const int *pciBusId): hip_device.cpp'],['../group__Driver.html#gafe08d5632ebd24edc26a19da380b2120',1,'hipDeviceGetByPCIBusId(int *device, const int *pciBusId): hip_device.cpp']]], + ['hipdevicegetcacheconfig',['hipDeviceGetCacheConfig',['../group__Device.html#ga37057f9830ad6fab7ce5f05f6d3c89ab',1,'hipDeviceGetCacheConfig(hipFuncCache_t *cacheConfig): hip_device.cpp'],['../group__Device.html#ga37057f9830ad6fab7ce5f05f6d3c89ab',1,'hipDeviceGetCacheConfig(hipFuncCache_t *cacheConfig): hip_device.cpp']]], + ['hipdevicegetlimit',['hipDeviceGetLimit',['../group__Device.html#gaa72baeb520f1d52fe17817e852937218',1,'hipDeviceGetLimit(size_t *pValue, hipLimit_t limit): hip_device.cpp'],['../group__Device.html#gaa72baeb520f1d52fe17817e852937218',1,'hipDeviceGetLimit(size_t *pValue, hipLimit_t limit): hip_device.cpp']]], + ['hipdevicegetname',['hipDeviceGetName',['../group__Driver.html#ga24df15e180a7b2b351cd362e5b7d2dac',1,'hipDeviceGetName(char *name, int len, hipDevice_t device): hip_device.cpp'],['../group__Driver.html#ga24df15e180a7b2b351cd362e5b7d2dac',1,'hipDeviceGetName(char *name, int len, hipDevice_t device): hip_device.cpp']]], + ['hipdevicegetpcibusid',['hipDeviceGetPCIBusId',['../group__Driver.html#gaaa961c8ec8047903617f4245fa50256a',1,'hipDeviceGetPCIBusId(char *pciBusId, int len, int device): hip_device.cpp'],['../group__Driver.html#gaaa961c8ec8047903617f4245fa50256a',1,'hipDeviceGetPCIBusId(char *pciBusId, int len, int device): hip_device.cpp']]], + ['hipdevicegetsharedmemconfig',['hipDeviceGetSharedMemConfig',['../group__Device.html#ga1bb08f774a34a468d969a8a04791c9bb',1,'hipDeviceGetSharedMemConfig(hipSharedMemConfig *pConfig): hip_device.cpp'],['../group__Device.html#ga1bb08f774a34a468d969a8a04791c9bb',1,'hipDeviceGetSharedMemConfig(hipSharedMemConfig *pConfig): hip_device.cpp']]], + ['hipdeviceprop_5ft',['hipDeviceProp_t',['../structhipDeviceProp__t.html',1,'']]], + ['hipdevicereset',['hipDeviceReset',['../group__Device.html#ga8d57161ae56a8edc46eeda447417bf6c',1,'hipDeviceReset(void): hip_device.cpp'],['../group__Device.html#ga8d57161ae56a8edc46eeda447417bf6c',1,'hipDeviceReset(void): hip_device.cpp']]], + ['hipdevicescheduleauto',['hipDeviceScheduleAuto',['../group__GlobalDefs.html#ga9032d35eb7383948828ee48e1e19f5fd',1,'hip_runtime_api.h']]], + ['hipdeviceschedulespin',['hipDeviceScheduleSpin',['../group__GlobalDefs.html#ga713d962bafb7758dc1ff0675e4239453',1,'hip_runtime_api.h']]], + ['hipdevicescheduleyield',['hipDeviceScheduleYield',['../group__GlobalDefs.html#gaaf1e2706430c06601aa12a8af2a0ba5a',1,'hip_runtime_api.h']]], + ['hipdevicesetcacheconfig',['hipDeviceSetCacheConfig',['../group__Device.html#gaada3d30a46ae06f68cf1574f496b86ee',1,'hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig): hip_device.cpp'],['../group__Device.html#gaada3d30a46ae06f68cf1574f496b86ee',1,'hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig): hip_device.cpp']]], + ['hipdevicesetsharedmemconfig',['hipDeviceSetSharedMemConfig',['../group__Device.html#ga9b1f279084e76691cedfbfadf9c717ee',1,'hipDeviceSetSharedMemConfig(hipSharedMemConfig config): hip_device.cpp'],['../group__Device.html#ga9b1f279084e76691cedfbfadf9c717ee',1,'hipDeviceSetSharedMemConfig(hipSharedMemConfig config): hip_device.cpp']]], + ['hipdevicesynchronize',['hipDeviceSynchronize',['../group__Device.html#gaefdc2847fb1d6c3fb1354e827a191ebd',1,'hipDeviceSynchronize(void): hip_device.cpp'],['../group__Device.html#gaefdc2847fb1d6c3fb1354e827a191ebd',1,'hipDeviceSynchronize(void): hip_device.cpp']]], + ['hipdevicetotalmem',['hipDeviceTotalMem',['../group__Driver.html#ga8991e535d0ef1ead0524e73364623041',1,'hipDeviceTotalMem(size_t *bytes, hipDevice_t device): hip_device.cpp'],['../group__Driver.html#ga8991e535d0ef1ead0524e73364623041',1,'hipDeviceTotalMem(size_t *bytes, hipDevice_t device): hip_device.cpp']]], + ['hipdoublecomplex',['hipDoubleComplex',['../structhipDoubleComplex.html',1,'']]], + ['hipdrivergetversion',['hipDriverGetVersion',['../group__Driver.html#gaf6c342f52d2a29a0aca5cdd89b4dd47c',1,'hipDriverGetVersion(int *driverVersion): hip_context.cpp'],['../group__Driver.html#gaf6c342f52d2a29a0aca5cdd89b4dd47c',1,'hipDriverGetVersion(int *driverVersion): hip_context.cpp']]], + ['hiperror_5ft',['hipError_t',['../group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594',1,'hip_runtime_api.h']]], + ['hiperrorhostmemoryalreadyregistered',['hipErrorHostMemoryAlreadyRegistered',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a9d7173cea72aace620a83d502569de1b',1,'hip_runtime_api.h']]], + ['hiperrorhostmemorynotregistered',['hipErrorHostMemoryNotRegistered',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a6901476ca88eed786fb8be003d9661d9',1,'hip_runtime_api.h']]], + ['hiperrorinitializationerror',['hipErrorInitializationError',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a7e935ae88ee1f9ff3920156ac6864520',1,'hip_runtime_api.h']]], + ['hiperrorinvalidcontext',['hipErrorInvalidContext',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ad9d895f7f4dbf63a4586b2aab593c9fe',1,'hip_runtime_api.h']]], + ['hiperrorinvaliddevice',['hipErrorInvalidDevice',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d',1,'hip_runtime_api.h']]], + ['hiperrorinvaliddevicepointer',['hipErrorInvalidDevicePointer',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a37a93fcd2b0aed9bf52b82fa26031e6f',1,'hip_runtime_api.h']]], + ['hiperrorinvalidkernelfile',['hipErrorInvalidKernelFile',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ae508537d5e9a293bb1e63802d4a61380',1,'hip_runtime_api.h']]], + ['hiperrorinvalidmemcpydirection',['hipErrorInvalidMemcpyDirection',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ae35ad9fb66b7c33f21a021efe89975b0',1,'hip_runtime_api.h']]], + ['hiperrorinvalidresourcehandle',['hipErrorInvalidResourceHandle',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a88e525a7c8f35552dfada58e9f2f6d3a',1,'hip_runtime_api.h']]], + ['hiperrorinvalidvalue',['hipErrorInvalidValue',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83',1,'hip_runtime_api.h']]], + ['hiperrorlaunchfailure',['hipErrorLaunchFailure',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a3df72146e762c5a901d3af06027a1de9',1,'hip_runtime_api.h']]], + ['hiperrorlaunchoutofresources',['hipErrorLaunchOutOfResources',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a3ea57f211997a84fa1c582414bcabc47',1,'hip_runtime_api.h']]], + ['hiperrormapbufferobjectfailed',['hipErrorMapBufferObjectFailed',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ab4de2174991cc16a3e1986f5da25262b',1,'hip_runtime_api.h']]], + ['hiperrormemoryallocation',['hipErrorMemoryAllocation',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a8293288a10109874749afe2562db09f2',1,'hip_runtime_api.h']]], + ['hiperrornodevice',['hipErrorNoDevice',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ad4406972c318df36d231310a15131c24',1,'hip_runtime_api.h']]], + ['hiperrornotready',['hipErrorNotReady',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa9638063c8746a9d1fda2b2069a0a9f1',1,'hip_runtime_api.h']]], + ['hiperrorpeeraccessalreadyenabled',['hipErrorPeerAccessAlreadyEnabled',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a5399c146f91246f8b77abcd4ea30e7ac',1,'hip_runtime_api.h']]], + ['hiperrorpeeraccessnotenabled',['hipErrorPeerAccessNotEnabled',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a2ee0bf2e64840f253e4a1b12bbaf2d09',1,'hip_runtime_api.h']]], + ['hiperrorruntimememory',['hipErrorRuntimeMemory',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1159eb9a6be66bea740a8bfb61378723',1,'hip_runtime_api.h']]], + ['hiperrorruntimeother',['hipErrorRuntimeOther',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a44f847c5914be2177feac107dcb096d1',1,'hip_runtime_api.h']]], + ['hiperrortbd',['hipErrorTbd',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ab556409e11ddb0c4cf77a2f4fc91ea9e',1,'hip_runtime_api.h']]], + ['hiperrorunknown',['hipErrorUnknown',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073',1,'hip_runtime_api.h']]], + ['hipeventblockingsync',['hipEventBlockingSync',['../group__GlobalDefs.html#gafa1c076a5b991763a98695063f1ea11d',1,'hip_runtime_api.h']]], + ['hipeventcreate',['hipEventCreate',['../group__Event.html#ga5df2309c9f29ca4c8e669db658d411b4',1,'hipEventCreate(hipEvent_t *event): hip_event.cpp'],['../group__Event.html#ga5df2309c9f29ca4c8e669db658d411b4',1,'hipEventCreate(hipEvent_t *event): hip_event.cpp']]], + ['hipeventcreatewithflags',['hipEventCreateWithFlags',['../group__Event.html#gae86a5acb1b22b61bc9ecb9c28fc71b75',1,'hipEventCreateWithFlags(hipEvent_t *event, unsigned flags): hip_event.cpp'],['../group__Event.html#gae86a5acb1b22b61bc9ecb9c28fc71b75',1,'hipEventCreateWithFlags(hipEvent_t *event, unsigned flags): hip_event.cpp']]], + ['hipeventdefault',['hipEventDefault',['../group__GlobalDefs.html#ga122a5853359eba97cf047ddd153740f0',1,'hip_runtime_api.h']]], + ['hipeventdestroy',['hipEventDestroy',['../group__Event.html#ga83260357dce0c39e8c6a3c74ec97484c',1,'hipEventDestroy(hipEvent_t event): hip_event.cpp'],['../group__Event.html#ga83260357dce0c39e8c6a3c74ec97484c',1,'hipEventDestroy(hipEvent_t event): hip_event.cpp']]], + ['hipeventdisabletiming',['hipEventDisableTiming',['../group__GlobalDefs.html#ga3c0f44a85e36a4c67671da6bcdad0351',1,'hip_runtime_api.h']]], + ['hipeventelapsedtime',['hipEventElapsedTime',['../group__Event.html#gad4128b815cb475c8e13c7e66ff6250b7',1,'hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop): hip_event.cpp'],['../group__Event.html#gad4128b815cb475c8e13c7e66ff6250b7',1,'hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop): hip_event.cpp']]], + ['hipeventinterprocess',['hipEventInterprocess',['../group__GlobalDefs.html#ga0f01d74059baa704e42aeff8222166bb',1,'hip_runtime_api.h']]], + ['hipeventquery',['hipEventQuery',['../group__Event.html#ga5d12d7b798b5ceb5932d1ac21f5ac776',1,'hipEventQuery(hipEvent_t event): hip_event.cpp'],['../group__Event.html#ga5d12d7b798b5ceb5932d1ac21f5ac776',1,'hipEventQuery(hipEvent_t event): hip_event.cpp']]], + ['hipeventrecord',['hipEventRecord',['../group__Event.html#ga553b6f7a8e7b7dd9536d8a64c24d7e29',1,'hipEventRecord(hipEvent_t event, hipStream_t stream): hip_event.cpp'],['../group__Event.html#ga553b6f7a8e7b7dd9536d8a64c24d7e29',1,'hipEventRecord(hipEvent_t event, hipStream_t stream): hip_event.cpp']]], + ['hipeventsynchronize',['hipEventSynchronize',['../group__Event.html#ga1f72d98ba5d6f7dc3da54e0c41fe38b1',1,'hipEventSynchronize(hipEvent_t event): hip_event.cpp'],['../group__Event.html#ga1f72d98ba5d6f7dc3da54e0c41fe38b1',1,'hipEventSynchronize(hipEvent_t event): hip_event.cpp']]], + ['hipfiltermodepoint',['hipFilterModePoint',['../hcc__detail_2hip__texture_8h.html#aa2f0b6002b81d0a43a808cb880bb21e6a56ede038ab7c805ec4b5b61d2b678dfc',1,'hip_texture.h']]], + ['hipfloatcomplex',['hipFloatComplex',['../structhipFloatComplex.html',1,'']]], + ['hipfree',['hipFree',['../group__Memory.html#ga740d08da65cae1441ba32f8fedb863d1',1,'hipFree(void *ptr): hip_memory.cpp'],['../group__Memory.html#ga740d08da65cae1441ba32f8fedb863d1',1,'hipFree(void *ptr): hip_memory.cpp']]], + ['hipfreearray',['hipFreeArray',['../hcc__detail_2hip__texture_8h.html#ae29935073517245c69bc64790dd2747a',1,'hip_memory.cpp']]], + ['hipfreehost',['hipFreeHost',['../group__Memory.html#gad2164cc3d49da53052f4b83b789e90c9',1,'hipFreeHost(void *ptr) __attribute__((deprecated("use hipHostFree instead"))): hip_memory.cpp'],['../group__Memory.html#gad2164cc3d49da53052f4b83b789e90c9',1,'hipFreeHost(void *ptr): hip_memory.cpp']]], + ['hipfunccache_5ft',['hipFuncCache_t',['../group__GlobalDefs.html#ga86e5c5692645963a9a673e1aa88ba6ca',1,'hipFuncCache_t(): hip_runtime_api.h'],['../group__GlobalDefs.html#ga7effbca2af70714feaa3330bf1a77a72',1,'hipFuncCache_t(): hip_runtime_api.h']]], + ['hipfunccachepreferequal',['hipFuncCachePreferEqual',['../group__GlobalDefs.html#gga86e5c5692645963a9a673e1aa88ba6caa0ddab0e840107634a152033103be44d7',1,'hip_runtime_api.h']]], + ['hipfunccachepreferl1',['hipFuncCachePreferL1',['../group__GlobalDefs.html#gga86e5c5692645963a9a673e1aa88ba6caa636a3c140db6b9d4a8bf7d5a61c398c5',1,'hip_runtime_api.h']]], + ['hipfunccacheprefernone',['hipFuncCachePreferNone',['../group__GlobalDefs.html#gga86e5c5692645963a9a673e1aa88ba6caa0813fbaa008ce1231ff9fed3911eb3af',1,'hip_runtime_api.h']]], + ['hipfunccacheprefershared',['hipFuncCachePreferShared',['../group__GlobalDefs.html#gga86e5c5692645963a9a673e1aa88ba6caa9b34337dfbadba25ed2aa270bbcabc43',1,'hip_runtime_api.h']]], + ['hipfuncsetcacheconfig',['hipFuncSetCacheConfig',['../group__Device.html#ga82f0637f09eb1082f6fd025f76c2c6f5',1,'hipFuncSetCacheConfig(hipFuncCache_t config): hip_device.cpp'],['../group__Device.html#ga82f0637f09eb1082f6fd025f76c2c6f5',1,'hipFuncSetCacheConfig(hipFuncCache_t cacheConfig): hip_device.cpp']]], + ['hipgetdevice',['hipGetDevice',['../group__Device.html#ga7e0e2e8c5f78e3c7449764657c254e0a',1,'hipGetDevice(int *deviceId): hip_device.cpp'],['../group__Device.html#ga7e0e2e8c5f78e3c7449764657c254e0a',1,'hipGetDevice(int *deviceId): hip_device.cpp']]], + ['hipgetdevicecount',['hipGetDeviceCount',['../group__Device.html#ga8555d5c76d88c50ddbf54ae70b568394',1,'hipGetDeviceCount(int *count): hip_device.cpp'],['../group__Device.html#ga8555d5c76d88c50ddbf54ae70b568394',1,'hipGetDeviceCount(int *count): hip_device.cpp']]], + ['hipgetdeviceproperties',['hipGetDeviceProperties',['../group__Device.html#ga32208513b7cd491f0cb5fc884053f790',1,'hipGetDeviceProperties(hipDeviceProp_t *prop, int deviceId): hip_device.cpp'],['../group__Device.html#ga32208513b7cd491f0cb5fc884053f790',1,'hipGetDeviceProperties(hipDeviceProp_t *props, int device): hip_device.cpp']]], + ['hipgeterrorname',['hipGetErrorName',['../group__Error.html#ga88c474d77635523dbf6ca67be7b56999',1,'hipGetErrorName(hipError_t hip_error): hip_error.cpp'],['../group__Error.html#ga88c474d77635523dbf6ca67be7b56999',1,'hipGetErrorName(hipError_t hip_error): hip_error.cpp']]], + ['hipgeterrorstring',['hipGetErrorString',['../group__Error.html#ga1421a2ee561f30d5b1dbed3ecb28b264',1,'hipGetErrorString(hipError_t hipError): hip_error.cpp'],['../group__Error.html#ga1421a2ee561f30d5b1dbed3ecb28b264',1,'hipGetErrorString(hipError_t hip_error): hip_error.cpp']]], + ['hipgetlasterror',['hipGetLastError',['../group__Error.html#ga533daeb9114d7fc2db8d867adf9e419b',1,'hipGetLastError(void): hip_error.cpp'],['../group__Error.html#ga533daeb9114d7fc2db8d867adf9e419b',1,'hipGetLastError(): hip_error.cpp']]], + ['hiphostalloc',['hipHostAlloc',['../group__Memory.html#gac5ae7f11cefc7085f39ee7868e71724a',1,'hipHostAlloc(void **ptr, size_t size, unsigned int flags) __attribute__((deprecated("use hipHostMalloc instead"))): hip_memory.cpp'],['../group__Memory.html#gac5ae7f11cefc7085f39ee7868e71724a',1,'hipHostAlloc(void **ptr, size_t sizeBytes, unsigned int flags): hip_memory.cpp']]], + ['hiphostfree',['hipHostFree',['../group__Memory.html#ga2e543f58ee4544e317cd695d6d82e0a3',1,'hipHostFree(void *ptr): hip_memory.cpp'],['../group__Memory.html#ga2e543f58ee4544e317cd695d6d82e0a3',1,'hipHostFree(void *ptr): hip_memory.cpp']]], + ['hiphostgetdevicepointer',['hipHostGetDevicePointer',['../group__Memory.html#ga8fa7a0478020b835a24785cd6bb89725',1,'hip_runtime_api.h']]], + ['hiphostgetflags',['hipHostGetFlags',['../group__Memory.html#ga4d26915873b3e3534ceb4dc310f8709a',1,'hipHostGetFlags(unsigned int *flagsPtr, void *hostPtr): hip_memory.cpp'],['../group__Memory.html#ga4d26915873b3e3534ceb4dc310f8709a',1,'hipHostGetFlags(unsigned int *flagsPtr, void *hostPtr): hip_memory.cpp']]], + ['hiphostmalloc',['hipHostMalloc',['../group__Memory.html#gaad40bc7d97ccc799403ef5a9a8c246e1',1,'hipHostMalloc(void **ptr, size_t size, unsigned int flags): hip_memory.cpp'],['../group__Memory.html#gaad40bc7d97ccc799403ef5a9a8c246e1',1,'hipHostMalloc(void **ptr, size_t sizeBytes, unsigned int flags): hip_memory.cpp']]], + ['hiphostmallocdefault',['hipHostMallocDefault',['../group__GlobalDefs.html#gad594ec51cb5b5e946c1e354bf80bddc7',1,'hip_runtime_api.h']]], + ['hiphostregister',['hipHostRegister',['../group__Memory.html#gab8258f051e1a1f7385f794a15300e674',1,'hipHostRegister(void *hostPtr, size_t sizeBytes, unsigned int flags): hip_memory.cpp'],['../group__Memory.html#gab8258f051e1a1f7385f794a15300e674',1,'hipHostRegister(void *hostPtr, size_t sizeBytes, unsigned int flags): hip_memory.cpp']]], + ['hiphostregisterdefault',['hipHostRegisterDefault',['../group__GlobalDefs.html#gac7c100d241ff84ad10109bb00b7b25dc',1,'hip_runtime_api.h']]], + ['hiphostregisteriomemory',['hipHostRegisterIoMemory',['../group__GlobalDefs.html#gaefa79f1b4481d6a1d1091c14b24f33d0',1,'hip_runtime_api.h']]], + ['hiphostregistermapped',['hipHostRegisterMapped',['../group__GlobalDefs.html#gacfa4edcfcb39fc61bff6bdecb14d7618',1,'hip_runtime_api.h']]], + ['hiphostregisterportable',['hipHostRegisterPortable',['../group__GlobalDefs.html#ga2db444f2315d412d3c7ba80ec6049583',1,'hip_runtime_api.h']]], + ['hiphostunregister',['hipHostUnregister',['../group__Memory.html#ga4c9e1810b9f5858d36c4d28c91c86924',1,'hipHostUnregister(void *hostPtr): hip_memory.cpp'],['../group__Memory.html#ga4c9e1810b9f5858d36c4d28c91c86924',1,'hipHostUnregister(void *hostPtr): hip_memory.cpp']]], + ['hipinit',['hipInit',['../group__Driver.html#ga01baa652dda5815c594d047060496caa',1,'hipInit(unsigned int flags): hip_context.cpp'],['../group__Driver.html#ga01baa652dda5815c594d047060496caa',1,'hipInit(unsigned int flags): hip_context.cpp']]], + ['hipipcclosememhandle',['hipIpcCloseMemHandle',['../group__API.html#gac2db0688a6a471e17ca631977e199da7',1,'hipIpcCloseMemHandle(void *devPtr): hip_memory.cpp'],['../group__API.html#gac2db0688a6a471e17ca631977e199da7',1,'hipIpcCloseMemHandle(void *devPtr): hip_memory.cpp']]], + ['hipipcgetmemhandle',['hipIpcGetMemHandle',['../group__API.html#gafd8c80f7e3b6426a630fff768409be70',1,'hipIpcGetMemHandle(hipIpcMemHandle_t *handle, void *devPtr): hip_memory.cpp'],['../group__API.html#gafd8c80f7e3b6426a630fff768409be70',1,'hipIpcGetMemHandle(hipIpcMemHandle_t *handle, void *devPtr): hip_memory.cpp']]], + ['hipipcopenmemhandle',['hipIpcOpenMemHandle',['../group__API.html#ga2ada334c986e10805d58167e260cb0df',1,'hipIpcOpenMemHandle(void **devPtr, hipIpcMemHandle_t handle, unsigned int flags): hip_memory.cpp'],['../group__API.html#ga2ada334c986e10805d58167e260cb0df',1,'hipIpcOpenMemHandle(void **devPtr, hipIpcMemHandle_t handle, unsigned int flags): hip_memory.cpp']]], + ['hipmalloc',['hipMalloc',['../group__Memory.html#ga4c6fcfe80010069d2792780d00dcead2',1,'hipMalloc(void **ptr, size_t size): hip_memory.cpp'],['../group__Memory.html#ga4c6fcfe80010069d2792780d00dcead2',1,'hipMalloc(void **ptr, size_t sizeBytes): hip_memory.cpp']]], + ['hipmallocarray',['hipMallocArray',['../hcc__detail_2hip__texture_8h.html#aea2f071ae2e4a0847f6aa42d1ef56129',1,'hip_memory.cpp']]], + ['hipmallochost',['hipMallocHost',['../group__Memory.html#gad3d3cdf82eb0058fc9eac1f939cd9d30',1,'hipMallocHost(void **ptr, size_t size) __attribute__((deprecated("use hipHostMalloc instead"))): hip_memory.cpp'],['../group__Memory.html#gad3d3cdf82eb0058fc9eac1f939cd9d30',1,'hipMallocHost(void **ptr, size_t sizeBytes): hip_memory.cpp']]], + ['hipmallocpitch',['hipMallocPitch',['../group__Memory.html#ga805c7320498926e444616fe090c727ee',1,'hipMallocPitch(void **ptr, size_t *pitch, size_t width, size_t height): hip_memory.cpp'],['../group__Memory.html#ga805c7320498926e444616fe090c727ee',1,'hipMallocPitch(void **ptr, size_t *pitch, size_t width, size_t height): hip_memory.cpp']]], + ['hipmemcpy',['hipMemcpy',['../group__Memory.html#gac1a055d288302edd641c6d7416858e1e',1,'hipMemcpy(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind): hip_memory.cpp'],['../group__Memory.html#gac1a055d288302edd641c6d7416858e1e',1,'hipMemcpy(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind): hip_memory.cpp']]], + ['hipmemcpy2d',['hipMemcpy2D',['../hcc__detail_2hip__texture_8h.html#a8af4597ff0cd17247d8a857c4d8bfa8a',1,'hip_memory.cpp']]], + ['hipmemcpy2dtoarray',['hipMemcpy2DToArray',['../hcc__detail_2hip__texture_8h.html#ab08b0bd6cdbb57e79df40ef1cd0374e0',1,'hip_memory.cpp']]], + ['hipmemcpyasync',['hipMemcpyAsync',['../group__Memory.html#gad55fa9f5980b711bc93c52820149ba18',1,'hipMemcpyAsync(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gad55fa9f5980b711bc93c52820149ba18',1,'hipMemcpyAsync(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream): hip_memory.cpp']]], + ['hipmemcpydefault',['hipMemcpyDefault',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18a4e37107e416f79a2edf2b6534163c823',1,'hip_runtime_api.h']]], + ['hipmemcpydevicetodevice',['hipMemcpyDeviceToDevice',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18abd05a09d3105e0ce25b34dd91cf83f88',1,'hip_runtime_api.h']]], + ['hipmemcpydevicetohost',['hipMemcpyDeviceToHost',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18aba2505e9ce1e5382f17730bc670917d1',1,'hip_runtime_api.h']]], + ['hipmemcpydtod',['hipMemcpyDtoD',['../group__Memory.html#ga814f245b8918f173c1f2f8c1480f7f93',1,'hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes): hip_memory.cpp'],['../group__Memory.html#ga814f245b8918f173c1f2f8c1480f7f93',1,'hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes): hip_memory.cpp']]], + ['hipmemcpydtodasync',['hipMemcpyDtoDAsync',['../group__Memory.html#gad3bba6016cba62f0e933cdfb4c312d27',1,'hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gad3bba6016cba62f0e933cdfb4c312d27',1,'hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp']]], + ['hipmemcpydtoh',['hipMemcpyDtoH',['../group__Memory.html#gae61f4e35ff1b9643c6328bc45d091c3f',1,'hipMemcpyDtoH(void *dst, hipDeviceptr_t src, size_t sizeBytes): hip_memory.cpp'],['../group__Memory.html#gae61f4e35ff1b9643c6328bc45d091c3f',1,'hipMemcpyDtoH(void *dst, hipDeviceptr_t src, size_t sizeBytes): hip_memory.cpp']]], + ['hipmemcpydtohasync',['hipMemcpyDtoHAsync',['../group__Memory.html#gad69da1994a646b843fb1fa465dbeb623',1,'hipMemcpyDtoHAsync(void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gad69da1994a646b843fb1fa465dbeb623',1,'hipMemcpyDtoHAsync(void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp']]], + ['hipmemcpyhosttodevice',['hipMemcpyHostToDevice',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18aff32175ecb0c7113200286eff8211008',1,'hip_runtime_api.h']]], + ['hipmemcpyhosttohost',['hipMemcpyHostToHost',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18a9d66b705aa85a9c83f0f533cef70d0af',1,'hip_runtime_api.h']]], + ['hipmemcpyhtod',['hipMemcpyHtoD',['../group__Memory.html#gaa415ecdd2535e1eb618ed8a31a6f03af',1,'hipMemcpyHtoD(hipDeviceptr_t dst, void *src, size_t sizeBytes): hip_memory.cpp'],['../group__Memory.html#gaa415ecdd2535e1eb618ed8a31a6f03af',1,'hipMemcpyHtoD(hipDeviceptr_t dst, void *src, size_t sizeBytes): hip_memory.cpp']]], + ['hipmemcpyhtodasync',['hipMemcpyHtoDAsync',['../group__Memory.html#gae3e76acb34bed5e3b19b4c1822975bcd',1,'hipMemcpyHtoDAsync(hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gae3e76acb34bed5e3b19b4c1822975bcd',1,'hipMemcpyHtoDAsync(hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp']]], + ['hipmemcpykind',['hipMemcpyKind',['../group__GlobalDefs.html#ga232e222db36b1fc672ba98054d036a18',1,'hipMemcpyKind(): hip_runtime_api.h'],['../group__GlobalDefs.html#ga0c04e67413ce030817361f02673e5c85',1,'hipMemcpyKind(): hip_runtime_api.h']]], + ['hipmemcpypeer',['hipMemcpyPeer',['../group__PeerToPeer.html#ga5512f45e25c08052667c8ffe7162333b',1,'hipMemcpyPeer(void *dst, int dstDeviceId, const void *src, int srcDeviceId, size_t sizeBytes): hip_peer.cpp'],['../group__PeerToPeer.html#ga5512f45e25c08052667c8ffe7162333b',1,'hipMemcpyPeer(void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes): hip_peer.cpp']]], + ['hipmemcpypeerasync',['hipMemcpyPeerAsync',['../group__PeerToPeer.html#ga216f951370c931d22e80c089ab724ed9',1,'hipMemcpyPeerAsync(void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream): hip_peer.cpp'],['../group__PeerToPeer.html#ga216f951370c931d22e80c089ab724ed9',1,'hipMemcpyPeerAsync(void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream): hip_peer.cpp']]], + ['hipmemcpytoarray',['hipMemcpyToArray',['../hcc__detail_2hip__texture_8h.html#a2e631f0b6757b47b74cdaa2911784be9',1,'hip_memory.cpp']]], + ['hipmemcpytosymbol',['hipMemcpyToSymbol',['../group__Memory.html#ga131ac5c1ba04e186112491cb9bf964bc',1,'hipMemcpyToSymbol(const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind): hip_memory.cpp'],['../group__Memory.html#ga131ac5c1ba04e186112491cb9bf964bc',1,'hipMemcpyToSymbol(const char *symbolName, const void *src, size_t count, size_t offset, hipMemcpyKind kind): hip_memory.cpp']]], + ['hipmemcpytosymbolasync',['hipMemcpyToSymbolAsync',['../group__Memory.html#ga7dd66b9e8e0e7159177b42a250fe23c4',1,'hipMemcpyToSymbolAsync(const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#ga7dd66b9e8e0e7159177b42a250fe23c4',1,'hipMemcpyToSymbolAsync(const char *symbolName, const void *src, size_t count, size_t offset, hipMemcpyKind kind, hipStream_t stream): hip_memory.cpp']]], + ['hipmemgetaddressrange',['hipMemGetAddressRange',['../group__PeerToPeer.html#gac7d9132f6e3d102e9b512020e5654f38',1,'hipMemGetAddressRange(hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr): hip_memory.cpp'],['../group__PeerToPeer.html#gac7d9132f6e3d102e9b512020e5654f38',1,'hipMemGetAddressRange(hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr): hip_memory.cpp']]], + ['hipmemgetinfo',['hipMemGetInfo',['../group__Memory.html#ga311c3e246a21590de14478b8bd063be2',1,'hipMemGetInfo(size_t *free, size_t *total): hip_memory.cpp'],['../group__Memory.html#ga311c3e246a21590de14478b8bd063be2',1,'hipMemGetInfo(size_t *free, size_t *total): hip_memory.cpp']]], + ['hipmemset',['hipMemset',['../group__Memory.html#gac7441e74affcce4b8b69dba996c5ebc4',1,'hipMemset(void *dst, int value, size_t sizeBytes): hip_memory.cpp'],['../group__Memory.html#gac7441e74affcce4b8b69dba996c5ebc4',1,'hipMemset(void *dst, int value, size_t sizeBytes): hip_memory.cpp']]], + ['hipmemsetasync',['hipMemsetAsync',['../group__Memory.html#gae7d90e14c387e49f10db597f12915c54',1,'hipMemsetAsync(void *dst, int value, size_t sizeBytes, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gae7d90e14c387e49f10db597f12915c54',1,'hipMemsetAsync(void *dst, int value, size_t sizeBytes, hipStream_t stream): hip_memory.cpp']]], + ['hipmodulegetfunction',['hipModuleGetFunction',['../group__Driver.html#ga9648b457bb837838cb936b417b56a65d',1,'hipModuleGetFunction(hipFunction_t *function, hipModule_t module, const char *kname): hip_module.cpp'],['../group__Driver.html#ga9648b457bb837838cb936b417b56a65d',1,'hipModuleGetFunction(hipFunction_t *hfunc, hipModule_t hmod, const char *name): hip_module.cpp']]], + ['hipmodulegetglobal',['hipModuleGetGlobal',['../group__Driver.html#ga3e425a680285f495e776f096e9632c89',1,'hipModuleGetGlobal(hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name): hip_module.cpp'],['../group__Driver.html#ga3e425a680285f495e776f096e9632c89',1,'hipModuleGetGlobal(hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name): hip_module.cpp']]], + ['hipmodulelaunchkernel',['hipModuleLaunchKernel',['../group__Driver.html#ga2e4de5937aa8171e9eda16c881ed0674',1,'hip_runtime_api.h']]], + ['hipmoduleload',['hipModuleLoad',['../group__Driver.html#ga31d806d976e91d36bd990ae3004d8760',1,'hipModuleLoad(hipModule_t *module, const char *fname): hip_module.cpp'],['../group__Driver.html#ga31d806d976e91d36bd990ae3004d8760',1,'hipModuleLoad(hipModule_t *module, const char *fname): hip_module.cpp']]], + ['hipmoduleloaddata',['hipModuleLoadData',['../group__Driver.html#gaabdbd73e952a741e861d01109c4790f3',1,'hipModuleLoadData(hipModule_t *module, const void *image): hip_module.cpp'],['../group__Driver.html#gaabdbd73e952a741e861d01109c4790f3',1,'hipModuleLoadData(hipModule_t *module, const void *image): hip_module.cpp']]], + ['hipmoduleunload',['hipModuleUnload',['../group__Driver.html#gae58e345f55bb3ec13dca80d2df88e0ed',1,'hipModuleUnload(hipModule_t module): hip_module.cpp'],['../group__Driver.html#gae58e345f55bb3ec13dca80d2df88e0ed',1,'hipModuleUnload(hipModule_t hmod): hip_module.cpp']]], + ['hippeekatlasterror',['hipPeekAtLastError',['../group__Error.html#ga1dd660bc739f7e13edd34615660f0148',1,'hipPeekAtLastError(void): hip_error.cpp'],['../group__Error.html#ga1dd660bc739f7e13edd34615660f0148',1,'hipPeekAtLastError(): hip_error.cpp']]], + ['hippointerattribute_5ft',['hipPointerAttribute_t',['../structhipPointerAttribute__t.html',1,'']]], + ['hippointergetattributes',['hipPointerGetAttributes',['../group__Memory.html#ga3d68ba64959615d4ab84f10caa12433b',1,'hipPointerGetAttributes(hipPointerAttribute_t *attributes, void *ptr): hip_memory.cpp'],['../group__Memory.html#ga3d68ba64959615d4ab84f10caa12433b',1,'hipPointerGetAttributes(hipPointerAttribute_t *attributes, void *ptr): hip_memory.cpp']]], + ['hipprofilerstart',['hipProfilerStart',['../group__Profiler.html#ga40aa20d731f9c8f0586127d589759e1d',1,'hipProfilerStart(): hip_hcc.cpp'],['../group__Profiler.html#ga40aa20d731f9c8f0586127d589759e1d',1,'hipProfilerStart(): hip_hcc.cpp']]], + ['hipprofilerstop',['hipProfilerStop',['../group__Profiler.html#ga777994cae0f7bdef24131fc1f3ed626e',1,'hipProfilerStop(): hip_hcc.cpp'],['../group__Profiler.html#ga777994cae0f7bdef24131fc1f3ed626e',1,'hipProfilerStop(): hip_hcc.cpp']]], + ['hipreadmodeelementtype',['hipReadModeElementType',['../hcc__detail_2hip__texture_8h.html#a442e950774f7306dc33692e358c92c94a829645801202174d052d667ffa4e1b8d',1,'hip_texture.h']]], + ['hipruntimegetversion',['hipRuntimeGetVersion',['../group__Driver.html#gae8b7ba34d2e11e334650aa51a4dd87ee',1,'hipRuntimeGetVersion(int *runtimeVersion): hip_context.cpp'],['../group__Driver.html#gae8b7ba34d2e11e334650aa51a4dd87ee',1,'hipRuntimeGetVersion(int *runtimeVersion): hip_context.cpp']]], + ['hipsetdevice',['hipSetDevice',['../group__Device.html#ga43c1e7f15925eeb762195ccb5e063eae',1,'hipSetDevice(int deviceId): hip_device.cpp'],['../group__Device.html#ga43c1e7f15925eeb762195ccb5e063eae',1,'hipSetDevice(int deviceId): hip_device.cpp']]], + ['hipsetdeviceflags',['hipSetDeviceFlags',['../group__Device.html#ga6e54db382768827e84725632018307aa',1,'hip_runtime_api.h']]], + ['hipsharedmembanksizedefault',['hipSharedMemBankSizeDefault',['../group__GlobalDefs.html#gga2e17b71d94ac350f2ccd914fd49d104eaf5b325c9b7bde878913f768eaba5014d',1,'hip_runtime_api.h']]], + ['hipsharedmembanksizeeightbyte',['hipSharedMemBankSizeEightByte',['../group__GlobalDefs.html#gga2e17b71d94ac350f2ccd914fd49d104ea64518b4f5a25f536c883330167e79258',1,'hip_runtime_api.h']]], + ['hipsharedmembanksizefourbyte',['hipSharedMemBankSizeFourByte',['../group__GlobalDefs.html#gga2e17b71d94ac350f2ccd914fd49d104ea0a95a6e0c33106c42d66ab9476ff954a',1,'hip_runtime_api.h']]], + ['hipsharedmemconfig',['hipSharedMemConfig',['../group__GlobalDefs.html#ga2e17b71d94ac350f2ccd914fd49d104e',1,'hipSharedMemConfig(): hip_runtime_api.h'],['../group__GlobalDefs.html#ga6b1ca424fa26a5fb718937d662eaee7f',1,'hipSharedMemConfig(): hip_runtime_api.h']]], + ['hipstreamaddcallback',['hipStreamAddCallback',['../group__Stream.html#ga3e098cd7478828b2104abb41a7bb00d3',1,'hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags): hip_stream.cpp'],['../group__Stream.html#ga3e098cd7478828b2104abb41a7bb00d3',1,'hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags): hip_stream.cpp']]], + ['hipstreamcallback_5ft',['hipStreamCallback_t',['../group__Stream.html#gadd389da2e3926a8ff17658d029015dcd',1,'hip_runtime_api.h']]], + ['hipstreamcreate',['hipStreamCreate',['../group__Stream.html#gaff5b62d6e9502d80879f7176f4d03102',1,'hipStreamCreate(hipStream_t *stream): hip_stream.cpp'],['../group__Stream.html#gaff5b62d6e9502d80879f7176f4d03102',1,'hipStreamCreate(hipStream_t *stream): hip_stream.cpp']]], + ['hipstreamcreatewithflags',['hipStreamCreateWithFlags',['../group__Stream.html#gaf2382e3cc6632332a8983a0f58e43494',1,'hipStreamCreateWithFlags(hipStream_t *stream, unsigned int flags): hip_stream.cpp'],['../group__Stream.html#gaf2382e3cc6632332a8983a0f58e43494',1,'hipStreamCreateWithFlags(hipStream_t *stream, unsigned int flags): hip_stream.cpp']]], + ['hipstreamdefault',['hipStreamDefault',['../group__GlobalDefs.html#ga6df5f70eb976836ab3598cacf0ffcdf9',1,'hip_runtime_api.h']]], + ['hipstreamdestroy',['hipStreamDestroy',['../group__Stream.html#ga3076a3499ed2c7821311006100bb95ec',1,'hipStreamDestroy(hipStream_t stream): hip_stream.cpp'],['../group__Stream.html#ga3076a3499ed2c7821311006100bb95ec',1,'hipStreamDestroy(hipStream_t stream): hip_stream.cpp']]], + ['hipstreamgetflags',['hipStreamGetFlags',['../group__Stream.html#ga3249555a26439591b8873f70b39bb116',1,'hipStreamGetFlags(hipStream_t stream, unsigned int *flags): hip_stream.cpp'],['../group__Stream.html#ga3249555a26439591b8873f70b39bb116',1,'hipStreamGetFlags(hipStream_t stream, unsigned int *flags): hip_stream.cpp']]], + ['hipstreamnonblocking',['hipStreamNonBlocking',['../group__GlobalDefs.html#gaaba9ae995d9b43b7d1ee70c6fa12c57d',1,'hip_runtime_api.h']]], + ['hipstreamquery',['hipStreamQuery',['../classihipStream__t.html#a46bba2e3bfbb0915a08fb608aed31858',1,'ihipStream_t::hipStreamQuery()'],['../group__Stream.html#ga925b39ff78d3b5fd458bd9e2cade9f4e',1,'hipStreamQuery(hipStream_t stream): hip_stream.cpp'],['../group__Stream.html#ga925b39ff78d3b5fd458bd9e2cade9f4e',1,'hipStreamQuery(hipStream_t stream): hip_stream.cpp']]], + ['hipstreamsynchronize',['hipStreamSynchronize',['../group__Stream.html#gabbfb9f573a6ebe8c478605ecb5504a74',1,'hipStreamSynchronize(hipStream_t stream): hip_stream.cpp'],['../group__Stream.html#gabbfb9f573a6ebe8c478605ecb5504a74',1,'hipStreamSynchronize(hipStream_t stream): hip_stream.cpp']]], + ['hipstreamwaitevent',['hipStreamWaitEvent',['../group__Stream.html#gacdd84c8f8ef1539c96c57c1d5bcae633',1,'hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags): hip_stream.cpp'],['../group__Stream.html#gacdd84c8f8ef1539c96c57c1d5bcae633',1,'hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags): hip_stream.cpp']]], + ['hipsuccess',['hipSuccess',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063',1,'hip_runtime_api.h']]], + ['hiptexturefiltermode',['hipTextureFilterMode',['../hcc__detail_2hip__texture_8h.html#aa2f0b6002b81d0a43a808cb880bb21e6',1,'hip_texture.h']]], + ['hiptexturereadmode',['hipTextureReadMode',['../hcc__detail_2hip__texture_8h.html#a442e950774f7306dc33692e358c92c94',1,'hip_texture.h']]], + ['host_5fdefines_2eh',['host_defines.h',['../host__defines_8h.html',1,'']]], + ['heterogeneous_2dcomputing_20interface_20for_20portability_20_28hip_29',['Heterogeneous-computing Interface for Portability (HIP)',['../index.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_9.html b/docs/RuntimeAPI/html/search/all_9.html new file mode 100644 index 0000000000..cd46d44056 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_9.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_9.js b/docs/RuntimeAPI/html/search/all_9.js new file mode 100644 index 0000000000..33821caa67 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_9.js @@ -0,0 +1,19 @@ +var searchData= +[ + ['initialization_20and_20version',['Initialization and Version',['../group__Driver.html',1,'']]], + ['ihipctx_5ft',['ihipCtx_t',['../classihipCtx__t.html',1,'']]], + ['ihipctxcriticalbase_5ft',['ihipCtxCriticalBase_t',['../classihipCtxCriticalBase__t.html',1,'']]], + ['ihipctxcriticalbase_5ft_3c_20ctxmutex_20_3e',['ihipCtxCriticalBase_t< CtxMutex >',['../classihipCtxCriticalBase__t.html',1,'']]], + ['ihipdevice_5ft',['ihipDevice_t',['../classihipDevice__t.html',1,'']]], + ['ihipevent_5ft',['ihipEvent_t',['../structihipEvent__t.html',1,'']]], + ['ihipexception',['ihipException',['../classihipException.html',1,'']]], + ['ihipfunction_5ft',['ihipFunction_t',['../classihipFunction__t.html',1,'']]], + ['ihipipcmemhandle_5ft',['ihipIpcMemHandle_t',['../classihipIpcMemHandle__t.html',1,'']]], + ['ihipmodule_5ft',['ihipModule_t',['../classihipModule__t.html',1,'']]], + ['ihipstream_5ft',['ihipStream_t',['../classihipStream__t.html',1,'']]], + ['ihipstreamcriticalbase_5ft',['ihipStreamCriticalBase_t',['../classihipStreamCriticalBase__t.html',1,'']]], + ['ihipstreamcriticalbase_5ft_3c_20streammutex_20_3e',['ihipStreamCriticalBase_t< StreamMutex >',['../classihipStreamCriticalBase__t.html',1,'']]], + ['int3',['int3',['../structint3.html',1,'']]], + ['ipc_5fhandle',['ipc_handle',['../classihipIpcMemHandle__t.html#af2142ab7d9f820acbad7638428509d42',1,'ihipIpcMemHandle_t']]], + ['ismultigpuboard',['isMultiGpuBoard',['../structhipDeviceProp__t.html#a9bb19b2b0cdee8977ed63964532d639d',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_a.html b/docs/RuntimeAPI/html/search/all_a.html new file mode 100644 index 0000000000..eab655301b --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_a.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_a.js b/docs/RuntimeAPI/html/search/all_a.js new file mode 100644 index 0000000000..8be519d6d6 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_a.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['l2cachesize',['l2CacheSize',['../structhipDeviceProp__t.html#a24404decccc16833973c803ced6f3a51',1,'hipDeviceProp_t']]], + ['lockedaccessor',['LockedAccessor',['../classLockedAccessor.html',1,'']]], + ['lockedbase',['LockedBase',['../structLockedBase.html',1,'']]], + ['lockedbase_3c_20ctxmutex_20_3e',['LockedBase< CtxMutex >',['../structLockedBase.html',1,'']]], + ['lockedbase_3c_20streammutex_20_3e',['LockedBase< StreamMutex >',['../structLockedBase.html',1,'']]], + ['long3',['long3',['../structlong3.html',1,'']]], + ['longlong3',['longlong3',['../structlonglong3.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_b.html b/docs/RuntimeAPI/html/search/all_b.html new file mode 100644 index 0000000000..a2c161e0bd --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_b.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_b.js b/docs/RuntimeAPI/html/search/all_b.js new file mode 100644 index 0000000000..462c78d2d5 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_b.js @@ -0,0 +1,15 @@ +var searchData= +[ + ['management',['Management',['../group__Context.html',1,'']]], + ['major',['major',['../structhipDeviceProp__t.html#aec9e4173c2e34cc232300c415dbd5e4f',1,'hipDeviceProp_t']]], + ['maxgridsize',['maxGridSize',['../structhipDeviceProp__t.html#ae529c23929f592120081fed31d877a55',1,'hipDeviceProp_t']]], + ['maxsharedmemorypermultiprocessor',['maxSharedMemoryPerMultiProcessor',['../structhipDeviceProp__t.html#aa1a32a7f387f6da845db7b228711fce8',1,'hipDeviceProp_t']]], + ['maxthreadsdim',['maxThreadsDim',['../structhipDeviceProp__t.html#a8ebba6fc12f80c9a9cf9b9193f0da465',1,'hipDeviceProp_t']]], + ['maxthreadsperblock',['maxThreadsPerBlock',['../structhipDeviceProp__t.html#af971cf1ca3ec1f68ad09036c0cc672e0',1,'hipDeviceProp_t']]], + ['maxthreadspermultiprocessor',['maxThreadsPerMultiProcessor',['../structhipDeviceProp__t.html#a23a39f4fd795addb3b125e9c3f6295ea',1,'hipDeviceProp_t']]], + ['memory_20management',['Memory Management',['../group__Memory.html',1,'']]], + ['memorybuswidth',['memoryBusWidth',['../structhipDeviceProp__t.html#a1d710ce8bd34daf66f892a66a2273132',1,'hipDeviceProp_t']]], + ['memoryclockrate',['memoryClockRate',['../structhipDeviceProp__t.html#a6db0ab8e7e8cc13c84d7bb7f70226d5e',1,'hipDeviceProp_t']]], + ['minor',['minor',['../structhipDeviceProp__t.html#abb51208e2509a7a1d107f0da69108938',1,'hipDeviceProp_t']]], + ['multiprocessorcount',['multiProcessorCount',['../structhipDeviceProp__t.html#add8d9d2ad52aece9fd1dbe25c18d9d57',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_c.html b/docs/RuntimeAPI/html/search/all_c.html new file mode 100644 index 0000000000..bdd3ee2c50 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_c.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_c.js b/docs/RuntimeAPI/html/search/all_c.js new file mode 100644 index 0000000000..124bf0ddb8 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_c.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['name',['name',['../structhipDeviceProp__t.html#a5b44bf8fa46faefcde989942b1d11a5e',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_d.html b/docs/RuntimeAPI/html/search/all_d.html new file mode 100644 index 0000000000..d51093367e --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_d.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_d.js b/docs/RuntimeAPI/html/search/all_d.js new file mode 100644 index 0000000000..0584a45193 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_d.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['pcibusid',['pciBusID',['../structhipDeviceProp__t.html#a1350f64d49b717ed3a06458f7549ccb0',1,'hipDeviceProp_t']]], + ['pcideviceid',['pciDeviceID',['../structhipDeviceProp__t.html#ae6aa845dc2d540f85098ea30be35f4eb',1,'hipDeviceProp_t']]], + ['proftrigger',['ProfTrigger',['../structProfTrigger.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_e.html b/docs/RuntimeAPI/html/search/all_e.html new file mode 100644 index 0000000000..3cda0172ed --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_e.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_e.js b/docs/RuntimeAPI/html/search/all_e.js new file mode 100644 index 0000000000..44ba50e0b7 --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_e.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['regsperblock',['regsPerBlock',['../structhipDeviceProp__t.html#a73c1c21648a901799ff6bef83c11135b',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/all_f.html b/docs/RuntimeAPI/html/search/all_f.html new file mode 100644 index 0000000000..7419b0297e --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_f.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/all_f.js b/docs/RuntimeAPI/html/search/all_f.js new file mode 100644 index 0000000000..0656e6726f --- /dev/null +++ b/docs/RuntimeAPI/html/search/all_f.js @@ -0,0 +1,8 @@ +var searchData= +[ + ['sharedmemperblock',['sharedMemPerBlock',['../structhipDeviceProp__t.html#a3b9138678a0795c2677eddcfb1c67156',1,'hipDeviceProp_t']]], + ['short3',['short3',['../structshort3.html',1,'']]], + ['shorttid',['ShortTid',['../classShortTid.html',1,'']]], + ['stream_20management',['Stream Management',['../group__Stream.html',1,'']]], + ['struct_5ffloat',['struct_float',['../structstruct__float.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_0.html b/docs/RuntimeAPI/html/search/classes_0.html new file mode 100644 index 0000000000..fabdc03679 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_0.js b/docs/RuntimeAPI/html/search/classes_0.js new file mode 100644 index 0000000000..f1a5d5e882 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['_5f_5fhalf',['__half',['../struct____half.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_1.html b/docs/RuntimeAPI/html/search/classes_1.html new file mode 100644 index 0000000000..800b6ae1bf --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_1.js b/docs/RuntimeAPI/html/search/classes_1.js new file mode 100644 index 0000000000..31c2da2c30 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_1.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['char3',['char3',['../structchar3.html',1,'']]], + ['char4',['char4',['../structchar4.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_2.html b/docs/RuntimeAPI/html/search/classes_2.html new file mode 100644 index 0000000000..f65d263c0c --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_2.js b/docs/RuntimeAPI/html/search/classes_2.js new file mode 100644 index 0000000000..f0c767feb0 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_2.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['dbname',['DbName',['../structDbName.html',1,'']]], + ['dim3',['dim3',['../structdim3.html',1,'']]], + ['double1',['double1',['../structdouble1.html',1,'']]], + ['double3',['double3',['../structdouble3.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_3.html b/docs/RuntimeAPI/html/search/classes_3.html new file mode 100644 index 0000000000..927e837f11 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_3.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_3.js b/docs/RuntimeAPI/html/search/classes_3.js new file mode 100644 index 0000000000..5149e86e09 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_3.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['fakemutex',['FakeMutex',['../classFakeMutex.html',1,'']]], + ['float1',['float1',['../structfloat1.html',1,'']]], + ['float3',['float3',['../structfloat3.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_4.html b/docs/RuntimeAPI/html/search/classes_4.html new file mode 100644 index 0000000000..a447290ed6 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_4.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_4.js b/docs/RuntimeAPI/html/search/classes_4.js new file mode 100644 index 0000000000..059435714b --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_4.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['hiparray',['hipArray',['../structhipArray.html',1,'']]], + ['hipchannelformatdesc',['hipChannelFormatDesc',['../structhipChannelFormatDesc.html',1,'']]], + ['hipdevicearch_5ft',['hipDeviceArch_t',['../structhipDeviceArch__t.html',1,'']]], + ['hipdeviceprop_5ft',['hipDeviceProp_t',['../structhipDeviceProp__t.html',1,'']]], + ['hipdoublecomplex',['hipDoubleComplex',['../structhipDoubleComplex.html',1,'']]], + ['hipfloatcomplex',['hipFloatComplex',['../structhipFloatComplex.html',1,'']]], + ['hippointerattribute_5ft',['hipPointerAttribute_t',['../structhipPointerAttribute__t.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_5.html b/docs/RuntimeAPI/html/search/classes_5.html new file mode 100644 index 0000000000..63484c451e --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_5.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_5.js b/docs/RuntimeAPI/html/search/classes_5.js new file mode 100644 index 0000000000..5a5c313721 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_5.js @@ -0,0 +1,16 @@ +var searchData= +[ + ['ihipctx_5ft',['ihipCtx_t',['../classihipCtx__t.html',1,'']]], + ['ihipctxcriticalbase_5ft',['ihipCtxCriticalBase_t',['../classihipCtxCriticalBase__t.html',1,'']]], + ['ihipctxcriticalbase_5ft_3c_20ctxmutex_20_3e',['ihipCtxCriticalBase_t< CtxMutex >',['../classihipCtxCriticalBase__t.html',1,'']]], + ['ihipdevice_5ft',['ihipDevice_t',['../classihipDevice__t.html',1,'']]], + ['ihipevent_5ft',['ihipEvent_t',['../structihipEvent__t.html',1,'']]], + ['ihipexception',['ihipException',['../classihipException.html',1,'']]], + ['ihipfunction_5ft',['ihipFunction_t',['../classihipFunction__t.html',1,'']]], + ['ihipipcmemhandle_5ft',['ihipIpcMemHandle_t',['../classihipIpcMemHandle__t.html',1,'']]], + ['ihipmodule_5ft',['ihipModule_t',['../classihipModule__t.html',1,'']]], + ['ihipstream_5ft',['ihipStream_t',['../classihipStream__t.html',1,'']]], + ['ihipstreamcriticalbase_5ft',['ihipStreamCriticalBase_t',['../classihipStreamCriticalBase__t.html',1,'']]], + ['ihipstreamcriticalbase_5ft_3c_20streammutex_20_3e',['ihipStreamCriticalBase_t< StreamMutex >',['../classihipStreamCriticalBase__t.html',1,'']]], + ['int3',['int3',['../structint3.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_6.html b/docs/RuntimeAPI/html/search/classes_6.html new file mode 100644 index 0000000000..f3d70354c6 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_6.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_6.js b/docs/RuntimeAPI/html/search/classes_6.js new file mode 100644 index 0000000000..ddc2606e32 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_6.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['lockedaccessor',['LockedAccessor',['../classLockedAccessor.html',1,'']]], + ['lockedbase',['LockedBase',['../structLockedBase.html',1,'']]], + ['lockedbase_3c_20ctxmutex_20_3e',['LockedBase< CtxMutex >',['../structLockedBase.html',1,'']]], + ['lockedbase_3c_20streammutex_20_3e',['LockedBase< StreamMutex >',['../structLockedBase.html',1,'']]], + ['long3',['long3',['../structlong3.html',1,'']]], + ['longlong3',['longlong3',['../structlonglong3.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_7.html b/docs/RuntimeAPI/html/search/classes_7.html new file mode 100644 index 0000000000..9e5f5c9861 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_7.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_7.js b/docs/RuntimeAPI/html/search/classes_7.js new file mode 100644 index 0000000000..750e29e1e6 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_7.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['proftrigger',['ProfTrigger',['../structProfTrigger.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_8.html b/docs/RuntimeAPI/html/search/classes_8.html new file mode 100644 index 0000000000..82c35b32ef --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_8.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_8.js b/docs/RuntimeAPI/html/search/classes_8.js new file mode 100644 index 0000000000..8440e320e4 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_8.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['short3',['short3',['../structshort3.html',1,'']]], + ['shorttid',['ShortTid',['../classShortTid.html',1,'']]], + ['struct_5ffloat',['struct_float',['../structstruct__float.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_9.html b/docs/RuntimeAPI/html/search/classes_9.html new file mode 100644 index 0000000000..4e83ac829b --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_9.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_9.js b/docs/RuntimeAPI/html/search/classes_9.js new file mode 100644 index 0000000000..8ced671759 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_9.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['texturereference',['textureReference',['../structtextureReference.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/classes_a.html b/docs/RuntimeAPI/html/search/classes_a.html new file mode 100644 index 0000000000..616feb69a2 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_a.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/classes_a.js b/docs/RuntimeAPI/html/search/classes_a.js new file mode 100644 index 0000000000..e1eb527d76 --- /dev/null +++ b/docs/RuntimeAPI/html/search/classes_a.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['uchar3',['uchar3',['../structuchar3.html',1,'']]], + ['uchar4',['uchar4',['../structuchar4.html',1,'']]], + ['uint3',['uint3',['../structuint3.html',1,'']]], + ['ulong3',['ulong3',['../structulong3.html',1,'']]], + ['ulonglong3',['ulonglong3',['../structulonglong3.html',1,'']]], + ['ushort3',['ushort3',['../structushort3.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/close.png b/docs/RuntimeAPI/html/search/close.png new file mode 100644 index 0000000000..9342d3dfee Binary files /dev/null and b/docs/RuntimeAPI/html/search/close.png differ diff --git a/docs/RuntimeAPI/html/search/defines_0.html b/docs/RuntimeAPI/html/search/defines_0.html new file mode 100644 index 0000000000..c2f0b46cfb --- /dev/null +++ b/docs/RuntimeAPI/html/search/defines_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/defines_0.js b/docs/RuntimeAPI/html/search/defines_0.js new file mode 100644 index 0000000000..00fe08ccff --- /dev/null +++ b/docs/RuntimeAPI/html/search/defines_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['_5f_5fhost_5f_5f',['__host__',['../host__defines_8h.html#a803050db3c78e0db3ea59a0c35499622',1,'host_defines.h']]] +]; diff --git a/docs/RuntimeAPI/html/search/defines_1.html b/docs/RuntimeAPI/html/search/defines_1.html new file mode 100644 index 0000000000..9e1d9fa116 --- /dev/null +++ b/docs/RuntimeAPI/html/search/defines_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/defines_1.js b/docs/RuntimeAPI/html/search/defines_1.js new file mode 100644 index 0000000000..b74e8321a7 --- /dev/null +++ b/docs/RuntimeAPI/html/search/defines_1.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['hip_5fdynamic_5fshared',['HIP_DYNAMIC_SHARED',['../hcc__detail_2hip__runtime_8h.html#a1e7ec14fb6b74c03b6ec804d6ef7e0ea',1,'hip_runtime.h']]] +]; diff --git a/docs/RuntimeAPI/html/search/enums_0.html b/docs/RuntimeAPI/html/search/enums_0.html new file mode 100644 index 0000000000..b4cbe1e3ca --- /dev/null +++ b/docs/RuntimeAPI/html/search/enums_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/enums_0.js b/docs/RuntimeAPI/html/search/enums_0.js new file mode 100644 index 0000000000..bce6de432f --- /dev/null +++ b/docs/RuntimeAPI/html/search/enums_0.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['hipdeviceattribute_5ft',['hipDeviceAttribute_t',['../group__GlobalDefs.html#gacc0acd7b9bda126c6bb3dfd6e2796d7c',1,'hip_runtime_api.h']]], + ['hiperror_5ft',['hipError_t',['../group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594',1,'hip_runtime_api.h']]], + ['hipfunccache_5ft',['hipFuncCache_t',['../group__GlobalDefs.html#ga86e5c5692645963a9a673e1aa88ba6ca',1,'hip_runtime_api.h']]], + ['hipmemcpykind',['hipMemcpyKind',['../group__GlobalDefs.html#ga232e222db36b1fc672ba98054d036a18',1,'hip_runtime_api.h']]], + ['hipsharedmemconfig',['hipSharedMemConfig',['../group__GlobalDefs.html#ga2e17b71d94ac350f2ccd914fd49d104e',1,'hip_runtime_api.h']]], + ['hiptexturefiltermode',['hipTextureFilterMode',['../hcc__detail_2hip__texture_8h.html#aa2f0b6002b81d0a43a808cb880bb21e6',1,'hip_texture.h']]], + ['hiptexturereadmode',['hipTextureReadMode',['../hcc__detail_2hip__texture_8h.html#a442e950774f7306dc33692e358c92c94',1,'hip_texture.h']]] +]; diff --git a/docs/RuntimeAPI/html/search/enumvalues_0.html b/docs/RuntimeAPI/html/search/enumvalues_0.html new file mode 100644 index 0000000000..3e00fcf61a --- /dev/null +++ b/docs/RuntimeAPI/html/search/enumvalues_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/enumvalues_0.js b/docs/RuntimeAPI/html/search/enumvalues_0.js new file mode 100644 index 0000000000..55b989c53e --- /dev/null +++ b/docs/RuntimeAPI/html/search/enumvalues_0.js @@ -0,0 +1,65 @@ +var searchData= +[ + ['hipdeviceattributeclockrate',['hipDeviceAttributeClockRate',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca2300e077e020e7967592065561373b00',1,'hip_runtime_api.h']]], + ['hipdeviceattributecomputecapabilitymajor',['hipDeviceAttributeComputeCapabilityMajor',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca2735739cf977b7d303266f6781131e8d',1,'hip_runtime_api.h']]], + ['hipdeviceattributecomputecapabilityminor',['hipDeviceAttributeComputeCapabilityMinor',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca38edc4fcae456e47160d349da3249b85',1,'hip_runtime_api.h']]], + ['hipdeviceattributecomputemode',['hipDeviceAttributeComputeMode',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca4d0369a6ef7bd7890fdcabc16ed3385d',1,'hip_runtime_api.h']]], + ['hipdeviceattributeconcurrentkernels',['hipDeviceAttributeConcurrentKernels',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cad9f45254d0d048677f560032532d5504',1,'hip_runtime_api.h']]], + ['hipdeviceattributeismultigpuboard',['hipDeviceAttributeIsMultiGpuBoard',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6129311200a17dcc5fa8d2256874ae3d',1,'hip_runtime_api.h']]], + ['hipdeviceattributel2cachesize',['hipDeviceAttributeL2CacheSize',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca582ae5a26a7148504878890028e4b64c',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxblockdimx',['hipDeviceAttributeMaxBlockDimX',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cac1e4ac589db0d8adbbc241e3d0fcd594',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxblockdimy',['hipDeviceAttributeMaxBlockDimY',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca187dbffe12db09a56c0f75c340d879c9',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxblockdimz',['hipDeviceAttributeMaxBlockDimZ',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caf811f51e03d1ffb025d80ac1da088675',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxgriddimx',['hipDeviceAttributeMaxGridDimX',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca03db8df0e7a9fbdaae683d97e8ac9c87',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxgriddimy',['hipDeviceAttributeMaxGridDimY',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca5b5cc49972679c5ccf62b79425ee99df',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxgriddimz',['hipDeviceAttributeMaxGridDimZ',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6c206ac083999caf4640e5d91dae24f7',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxregistersperblock',['hipDeviceAttributeMaxRegistersPerBlock',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca82289b170192b6ea742be0efc6f95107',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxsharedmemoryperblock',['hipDeviceAttributeMaxSharedMemoryPerBlock',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca7bca3aa18b26d40eba043ae93e15c7e5',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxsharedmemorypermultiprocessor',['hipDeviceAttributeMaxSharedMemoryPerMultiprocessor',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cad3e7f3d01533b32e12211172fcf410ba',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxthreadsperblock',['hipDeviceAttributeMaxThreadsPerBlock',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca8327aa23782d9c994bdef33a6d62e02e',1,'hip_runtime_api.h']]], + ['hipdeviceattributemaxthreadspermultiprocessor',['hipDeviceAttributeMaxThreadsPerMultiProcessor',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caddc08922b491eb1f6a583833cbf4e2f0',1,'hip_runtime_api.h']]], + ['hipdeviceattributememorybuswidth',['hipDeviceAttributeMemoryBusWidth',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca848c1396fab6f20463c6aefb828b0870',1,'hip_runtime_api.h']]], + ['hipdeviceattributememoryclockrate',['hipDeviceAttributeMemoryClockRate',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6b68deafd65f036b30dc8051573eb000',1,'hip_runtime_api.h']]], + ['hipdeviceattributemultiprocessorcount',['hipDeviceAttributeMultiprocessorCount',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca5c1519870733ccf0b83f722678240e5f',1,'hip_runtime_api.h']]], + ['hipdeviceattributepcibusid',['hipDeviceAttributePciBusId',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca572b29c44f1322aa7657fdd784832f88',1,'hip_runtime_api.h']]], + ['hipdeviceattributepcideviceid',['hipDeviceAttributePciDeviceId',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca955d90286e87be9e3528f0b817ab32ff',1,'hip_runtime_api.h']]], + ['hipdeviceattributetotalconstantmemory',['hipDeviceAttributeTotalConstantMemory',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cac6089ac3a0f9c77cc382fb0eaa73ae9c',1,'hip_runtime_api.h']]], + ['hipdeviceattributewarpsize',['hipDeviceAttributeWarpSize',['../group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caffd94133e823247a6f1215343232f6ec',1,'hip_runtime_api.h']]], + ['hiperrorhostmemoryalreadyregistered',['hipErrorHostMemoryAlreadyRegistered',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a9d7173cea72aace620a83d502569de1b',1,'hip_runtime_api.h']]], + ['hiperrorhostmemorynotregistered',['hipErrorHostMemoryNotRegistered',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a6901476ca88eed786fb8be003d9661d9',1,'hip_runtime_api.h']]], + ['hiperrorinitializationerror',['hipErrorInitializationError',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a7e935ae88ee1f9ff3920156ac6864520',1,'hip_runtime_api.h']]], + ['hiperrorinvalidcontext',['hipErrorInvalidContext',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ad9d895f7f4dbf63a4586b2aab593c9fe',1,'hip_runtime_api.h']]], + ['hiperrorinvaliddevice',['hipErrorInvalidDevice',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d',1,'hip_runtime_api.h']]], + ['hiperrorinvaliddevicepointer',['hipErrorInvalidDevicePointer',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a37a93fcd2b0aed9bf52b82fa26031e6f',1,'hip_runtime_api.h']]], + ['hiperrorinvalidkernelfile',['hipErrorInvalidKernelFile',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ae508537d5e9a293bb1e63802d4a61380',1,'hip_runtime_api.h']]], + ['hiperrorinvalidmemcpydirection',['hipErrorInvalidMemcpyDirection',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ae35ad9fb66b7c33f21a021efe89975b0',1,'hip_runtime_api.h']]], + ['hiperrorinvalidresourcehandle',['hipErrorInvalidResourceHandle',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a88e525a7c8f35552dfada58e9f2f6d3a',1,'hip_runtime_api.h']]], + ['hiperrorinvalidvalue',['hipErrorInvalidValue',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83',1,'hip_runtime_api.h']]], + ['hiperrorlaunchfailure',['hipErrorLaunchFailure',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a3df72146e762c5a901d3af06027a1de9',1,'hip_runtime_api.h']]], + ['hiperrorlaunchoutofresources',['hipErrorLaunchOutOfResources',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a3ea57f211997a84fa1c582414bcabc47',1,'hip_runtime_api.h']]], + ['hiperrormapbufferobjectfailed',['hipErrorMapBufferObjectFailed',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ab4de2174991cc16a3e1986f5da25262b',1,'hip_runtime_api.h']]], + ['hiperrormemoryallocation',['hipErrorMemoryAllocation',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a8293288a10109874749afe2562db09f2',1,'hip_runtime_api.h']]], + ['hiperrornodevice',['hipErrorNoDevice',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ad4406972c318df36d231310a15131c24',1,'hip_runtime_api.h']]], + ['hiperrornotready',['hipErrorNotReady',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa9638063c8746a9d1fda2b2069a0a9f1',1,'hip_runtime_api.h']]], + ['hiperrorpeeraccessalreadyenabled',['hipErrorPeerAccessAlreadyEnabled',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a5399c146f91246f8b77abcd4ea30e7ac',1,'hip_runtime_api.h']]], + ['hiperrorpeeraccessnotenabled',['hipErrorPeerAccessNotEnabled',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a2ee0bf2e64840f253e4a1b12bbaf2d09',1,'hip_runtime_api.h']]], + ['hiperrorruntimememory',['hipErrorRuntimeMemory',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1159eb9a6be66bea740a8bfb61378723',1,'hip_runtime_api.h']]], + ['hiperrorruntimeother',['hipErrorRuntimeOther',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a44f847c5914be2177feac107dcb096d1',1,'hip_runtime_api.h']]], + ['hiperrortbd',['hipErrorTbd',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ab556409e11ddb0c4cf77a2f4fc91ea9e',1,'hip_runtime_api.h']]], + ['hiperrorunknown',['hipErrorUnknown',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073',1,'hip_runtime_api.h']]], + ['hipfiltermodepoint',['hipFilterModePoint',['../hcc__detail_2hip__texture_8h.html#aa2f0b6002b81d0a43a808cb880bb21e6a56ede038ab7c805ec4b5b61d2b678dfc',1,'hip_texture.h']]], + ['hipfunccachepreferequal',['hipFuncCachePreferEqual',['../group__GlobalDefs.html#gga86e5c5692645963a9a673e1aa88ba6caa0ddab0e840107634a152033103be44d7',1,'hip_runtime_api.h']]], + ['hipfunccachepreferl1',['hipFuncCachePreferL1',['../group__GlobalDefs.html#gga86e5c5692645963a9a673e1aa88ba6caa636a3c140db6b9d4a8bf7d5a61c398c5',1,'hip_runtime_api.h']]], + ['hipfunccacheprefernone',['hipFuncCachePreferNone',['../group__GlobalDefs.html#gga86e5c5692645963a9a673e1aa88ba6caa0813fbaa008ce1231ff9fed3911eb3af',1,'hip_runtime_api.h']]], + ['hipfunccacheprefershared',['hipFuncCachePreferShared',['../group__GlobalDefs.html#gga86e5c5692645963a9a673e1aa88ba6caa9b34337dfbadba25ed2aa270bbcabc43',1,'hip_runtime_api.h']]], + ['hipmemcpydefault',['hipMemcpyDefault',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18a4e37107e416f79a2edf2b6534163c823',1,'hip_runtime_api.h']]], + ['hipmemcpydevicetodevice',['hipMemcpyDeviceToDevice',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18abd05a09d3105e0ce25b34dd91cf83f88',1,'hip_runtime_api.h']]], + ['hipmemcpydevicetohost',['hipMemcpyDeviceToHost',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18aba2505e9ce1e5382f17730bc670917d1',1,'hip_runtime_api.h']]], + ['hipmemcpyhosttodevice',['hipMemcpyHostToDevice',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18aff32175ecb0c7113200286eff8211008',1,'hip_runtime_api.h']]], + ['hipmemcpyhosttohost',['hipMemcpyHostToHost',['../group__GlobalDefs.html#gga232e222db36b1fc672ba98054d036a18a9d66b705aa85a9c83f0f533cef70d0af',1,'hip_runtime_api.h']]], + ['hipreadmodeelementtype',['hipReadModeElementType',['../hcc__detail_2hip__texture_8h.html#a442e950774f7306dc33692e358c92c94a829645801202174d052d667ffa4e1b8d',1,'hip_texture.h']]], + ['hipsharedmembanksizedefault',['hipSharedMemBankSizeDefault',['../group__GlobalDefs.html#gga2e17b71d94ac350f2ccd914fd49d104eaf5b325c9b7bde878913f768eaba5014d',1,'hip_runtime_api.h']]], + ['hipsharedmembanksizeeightbyte',['hipSharedMemBankSizeEightByte',['../group__GlobalDefs.html#gga2e17b71d94ac350f2ccd914fd49d104ea64518b4f5a25f536c883330167e79258',1,'hip_runtime_api.h']]], + ['hipsharedmembanksizefourbyte',['hipSharedMemBankSizeFourByte',['../group__GlobalDefs.html#gga2e17b71d94ac350f2ccd914fd49d104ea0a95a6e0c33106c42d66ab9476ff954a',1,'hip_runtime_api.h']]], + ['hipsuccess',['hipSuccess',['../group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063',1,'hip_runtime_api.h']]] +]; diff --git a/docs/RuntimeAPI/html/search/files_0.html b/docs/RuntimeAPI/html/search/files_0.html new file mode 100644 index 0000000000..c7aa36c96f --- /dev/null +++ b/docs/RuntimeAPI/html/search/files_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/files_0.js b/docs/RuntimeAPI/html/search/files_0.js new file mode 100644 index 0000000000..31d22e4c27 --- /dev/null +++ b/docs/RuntimeAPI/html/search/files_0.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['hip_5fhcc_2ecpp',['hip_hcc.cpp',['../hip__hcc_8cpp.html',1,'']]], + ['hip_5fruntime_2eh',['hip_runtime.h',['../hcc__detail_2hip__runtime_8h.html',1,'']]], + ['hip_5fruntime_5fapi_2eh',['hip_runtime_api.h',['../hcc__detail_2hip__runtime__api_8h.html',1,'']]], + ['hip_5ftexture_2eh',['hip_texture.h',['../hcc__detail_2hip__texture_8h.html',1,'']]], + ['hip_5fvector_5ftypes_2eh',['hip_vector_types.h',['../hcc__detail_2hip__vector__types_8h.html',1,'']]], + ['host_5fdefines_2eh',['host_defines.h',['../host__defines_8h.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/functions_0.html b/docs/RuntimeAPI/html/search/functions_0.html new file mode 100644 index 0000000000..16a5a527a8 --- /dev/null +++ b/docs/RuntimeAPI/html/search/functions_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/functions_0.js b/docs/RuntimeAPI/html/search/functions_0.js new file mode 100644 index 0000000000..81e400d4c8 --- /dev/null +++ b/docs/RuntimeAPI/html/search/functions_0.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['_5f_5fthreadfence',['__threadfence',['../group__Fence.html#ga8ed093b29d5c05d46a1240e7a35a6d13',1,'hip_runtime.h']]], + ['_5f_5fthreadfence_5fblock',['__threadfence_block',['../group__Fence.html#ga675c8823d497b2fd91abc42085e5ae25',1,'hip_runtime.h']]], + ['_5f_5fthreadfence_5fsystem',['__threadfence_system',['../group__Fence.html#ga21e7328a2daaf9e376d10b5c6b3de0ae',1,'__threadfence_system(void): device_util.cpp'],['../group__Fence.html#ga21e7328a2daaf9e376d10b5c6b3de0ae',1,'__threadfence_system(void): device_util.cpp']]] +]; diff --git a/docs/RuntimeAPI/html/search/functions_1.html b/docs/RuntimeAPI/html/search/functions_1.html new file mode 100644 index 0000000000..3b4eacfebf --- /dev/null +++ b/docs/RuntimeAPI/html/search/functions_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/functions_1.js b/docs/RuntimeAPI/html/search/functions_1.js new file mode 100644 index 0000000000..d70b5aa8c0 --- /dev/null +++ b/docs/RuntimeAPI/html/search/functions_1.js @@ -0,0 +1,111 @@ +var searchData= +[ + ['hipchoosedevice',['hipChooseDevice',['../group__Device.html#gaf1e365e1d17cf40644d1470de4817c8e',1,'hipChooseDevice(int *device, const hipDeviceProp_t *prop): hip_device.cpp'],['../group__Device.html#gaf1e365e1d17cf40644d1470de4817c8e',1,'hipChooseDevice(int *device, const hipDeviceProp_t *prop): hip_device.cpp']]], + ['hipcreatechanneldesc',['hipCreateChannelDesc',['../group__Texture.html#gac9b0ae733fa849842342fab6d42c7b6f',1,'hipCreateChannelDesc(int x, int y, int z, int w, hipChannelFormatKind f): hip_memory.cpp'],['../group__Texture.html#gac9b0ae733fa849842342fab6d42c7b6f',1,'hipCreateChannelDesc(int x, int y, int z, int w, hipChannelFormatKind f): hip_memory.cpp']]], + ['hipctxcreate',['hipCtxCreate',['../group__Context.html#gab6dbcff5c5b1249a5ac5cf39ae9d08bc',1,'hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device): hip_context.cpp'],['../group__Context.html#gab6dbcff5c5b1249a5ac5cf39ae9d08bc',1,'hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device): hip_context.cpp']]], + ['hipctxdestroy',['hipCtxDestroy',['../group__Context.html#ga9a65fe43238ef303a6d97826c05fd14e',1,'hipCtxDestroy(hipCtx_t ctx): hip_context.cpp'],['../group__Context.html#ga9a65fe43238ef303a6d97826c05fd14e',1,'hipCtxDestroy(hipCtx_t ctx): hip_context.cpp']]], + ['hipctxdisablepeeraccess',['hipCtxDisablePeerAccess',['../group__Context.html#gaf48e4e9c3b6bbad5deaeff10d2e28b31',1,'hipCtxDisablePeerAccess(hipCtx_t peerCtx): hip_peer.cpp'],['../group__Context.html#gaf48e4e9c3b6bbad5deaeff10d2e28b31',1,'hipCtxDisablePeerAccess(hipCtx_t peerCtx): hip_peer.cpp']]], + ['hipctxenablepeeraccess',['hipCtxEnablePeerAccess',['../group__Context.html#ga834dfd99d72082fe8770142fa30b30e2',1,'hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags): hip_peer.cpp'],['../group__Context.html#ga834dfd99d72082fe8770142fa30b30e2',1,'hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags): hip_peer.cpp']]], + ['hipctxgetapiversion',['hipCtxGetApiVersion',['../group__Context.html#gabe5941e6798c71a8351b7d51311e7e8f',1,'hipCtxGetApiVersion(hipCtx_t ctx, int *apiVersion): hip_context.cpp'],['../group__Context.html#gabe5941e6798c71a8351b7d51311e7e8f',1,'hipCtxGetApiVersion(hipCtx_t ctx, int *apiVersion): hip_context.cpp']]], + ['hipctxgetcacheconfig',['hipCtxGetCacheConfig',['../group__Context.html#gab10373068faafd3042c9003e2e6d905a',1,'hipCtxGetCacheConfig(hipFuncCache_t *cacheConfig): hip_context.cpp'],['../group__Context.html#gab10373068faafd3042c9003e2e6d905a',1,'hipCtxGetCacheConfig(hipFuncCache_t *cacheConfig): hip_context.cpp']]], + ['hipctxgetcurrent',['hipCtxGetCurrent',['../group__Context.html#ga741786101d348fdbfa1f64546860357a',1,'hipCtxGetCurrent(hipCtx_t *ctx): hip_context.cpp'],['../group__Context.html#ga741786101d348fdbfa1f64546860357a',1,'hipCtxGetCurrent(hipCtx_t *ctx): hip_context.cpp']]], + ['hipctxgetdevice',['hipCtxGetDevice',['../group__Context.html#ga8aa32cf64272da929f23ecbafefefcee',1,'hipCtxGetDevice(hipDevice_t *device): hip_context.cpp'],['../group__Context.html#ga8aa32cf64272da929f23ecbafefefcee',1,'hipCtxGetDevice(hipDevice_t *device): hip_context.cpp']]], + ['hipctxgetflags',['hipCtxGetFlags',['../group__Context.html#ga12a7a993e10f775fbf61a0b14288ed1b',1,'hipCtxGetFlags(unsigned int *flags): hip_context.cpp'],['../group__Context.html#ga12a7a993e10f775fbf61a0b14288ed1b',1,'hipCtxGetFlags(unsigned int *flags): hip_context.cpp']]], + ['hipctxgetsharedmemconfig',['hipCtxGetSharedMemConfig',['../group__Context.html#ga3c78b22dd03435a7ca88621a45409565',1,'hipCtxGetSharedMemConfig(hipSharedMemConfig *pConfig): hip_context.cpp'],['../group__Context.html#ga3c78b22dd03435a7ca88621a45409565',1,'hipCtxGetSharedMemConfig(hipSharedMemConfig *pConfig): hip_context.cpp']]], + ['hipctxpopcurrent',['hipCtxPopCurrent',['../group__Context.html#ga2cc4ea5a6b78d9d7990a88a7863467d4',1,'hipCtxPopCurrent(hipCtx_t *ctx): hip_context.cpp'],['../group__Context.html#ga2cc4ea5a6b78d9d7990a88a7863467d4',1,'hipCtxPopCurrent(hipCtx_t *ctx): hip_context.cpp']]], + ['hipctxpushcurrent',['hipCtxPushCurrent',['../group__Context.html#ga9c9d92f29d68cacdea4c062c97e50a8a',1,'hipCtxPushCurrent(hipCtx_t ctx): hip_context.cpp'],['../group__Context.html#ga9c9d92f29d68cacdea4c062c97e50a8a',1,'hipCtxPushCurrent(hipCtx_t ctx): hip_context.cpp']]], + ['hipctxsetcacheconfig',['hipCtxSetCacheConfig',['../group__Context.html#ga7eacc656f1d1b6f5a683bea31be67a2f',1,'hipCtxSetCacheConfig(hipFuncCache_t cacheConfig): hip_context.cpp'],['../group__Context.html#ga7eacc656f1d1b6f5a683bea31be67a2f',1,'hipCtxSetCacheConfig(hipFuncCache_t cacheConfig): hip_context.cpp']]], + ['hipctxsetcurrent',['hipCtxSetCurrent',['../group__Context.html#ga834a192f70c2bfc0269c309436776feb',1,'hipCtxSetCurrent(hipCtx_t ctx): hip_context.cpp'],['../group__Context.html#ga834a192f70c2bfc0269c309436776feb',1,'hipCtxSetCurrent(hipCtx_t ctx): hip_context.cpp']]], + ['hipctxsetsharedmemconfig',['hipCtxSetSharedMemConfig',['../group__Context.html#gad5c1d4ced27f584a74ed550dd002fa5a',1,'hipCtxSetSharedMemConfig(hipSharedMemConfig config): hip_context.cpp'],['../group__Context.html#gad5c1d4ced27f584a74ed550dd002fa5a',1,'hipCtxSetSharedMemConfig(hipSharedMemConfig config): hip_context.cpp']]], + ['hipctxsynchronize',['hipCtxSynchronize',['../group__Context.html#gad45cd968e8e3dcfd24ef050cab2f41c8',1,'hipCtxSynchronize(void): hip_context.cpp'],['../group__Context.html#gad45cd968e8e3dcfd24ef050cab2f41c8',1,'hipCtxSynchronize(void): hip_context.cpp']]], + ['hipdevicecanaccesspeer',['hipDeviceCanAccessPeer',['../group__PeerToPeer.html#ga0a1c9ccd775758d9d7d5b5a1f525b719',1,'hipDeviceCanAccessPeer(int *canAccessPeer, int deviceId, int peerDeviceId): hip_peer.cpp'],['../group__PeerToPeer.html#ga0a1c9ccd775758d9d7d5b5a1f525b719',1,'hipDeviceCanAccessPeer(int *canAccessPeer, int deviceId, int peerDeviceId): hip_peer.cpp']]], + ['hipdevicecomputecapability',['hipDeviceComputeCapability',['../group__Driver.html#ga0a1cf94d2b571ca3279577d5af0d1672',1,'hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device): hip_device.cpp'],['../group__Driver.html#ga0a1cf94d2b571ca3279577d5af0d1672',1,'hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device): hip_device.cpp']]], + ['hipdevicedisablepeeraccess',['hipDeviceDisablePeerAccess',['../group__PeerToPeer.html#ga85030c72824fb60aaddc7374ab60481b',1,'hipDeviceDisablePeerAccess(int peerDeviceId): hip_peer.cpp'],['../group__PeerToPeer.html#ga85030c72824fb60aaddc7374ab60481b',1,'hipDeviceDisablePeerAccess(int peerDeviceId): hip_peer.cpp']]], + ['hipdeviceenablepeeraccess',['hipDeviceEnablePeerAccess',['../group__PeerToPeer.html#ga0caca59034134d7a7bb893cc1caa653e',1,'hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags): hip_peer.cpp'],['../group__PeerToPeer.html#ga0caca59034134d7a7bb893cc1caa653e',1,'hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags): hip_peer.cpp']]], + ['hipdeviceget',['hipDeviceGet',['../group__Driver.html#gadf6c74aaf7c22fea80e9ac3400d43704',1,'hipDeviceGet(hipDevice_t *device, int ordinal): hip_context.cpp'],['../group__Driver.html#gadf6c74aaf7c22fea80e9ac3400d43704',1,'hipDeviceGet(hipDevice_t *device, int deviceId): hip_context.cpp']]], + ['hipdevicegetattribute',['hipDeviceGetAttribute',['../group__Device.html#ga7080a145a4239a7276e0dc22062026c1',1,'hipDeviceGetAttribute(int *pi, hipDeviceAttribute_t attr, int deviceId): hip_device.cpp'],['../group__Device.html#ga7080a145a4239a7276e0dc22062026c1',1,'hipDeviceGetAttribute(int *pi, hipDeviceAttribute_t attr, int device): hip_device.cpp']]], + ['hipdevicegetbypcibusid',['hipDeviceGetByPCIBusId',['../group__Driver.html#gafe08d5632ebd24edc26a19da380b2120',1,'hipDeviceGetByPCIBusId(int *device, const int *pciBusId): hip_device.cpp'],['../group__Driver.html#gafe08d5632ebd24edc26a19da380b2120',1,'hipDeviceGetByPCIBusId(int *device, const int *pciBusId): hip_device.cpp']]], + ['hipdevicegetcacheconfig',['hipDeviceGetCacheConfig',['../group__Device.html#ga37057f9830ad6fab7ce5f05f6d3c89ab',1,'hipDeviceGetCacheConfig(hipFuncCache_t *cacheConfig): hip_device.cpp'],['../group__Device.html#ga37057f9830ad6fab7ce5f05f6d3c89ab',1,'hipDeviceGetCacheConfig(hipFuncCache_t *cacheConfig): hip_device.cpp']]], + ['hipdevicegetlimit',['hipDeviceGetLimit',['../group__Device.html#gaa72baeb520f1d52fe17817e852937218',1,'hipDeviceGetLimit(size_t *pValue, hipLimit_t limit): hip_device.cpp'],['../group__Device.html#gaa72baeb520f1d52fe17817e852937218',1,'hipDeviceGetLimit(size_t *pValue, hipLimit_t limit): hip_device.cpp']]], + ['hipdevicegetname',['hipDeviceGetName',['../group__Driver.html#ga24df15e180a7b2b351cd362e5b7d2dac',1,'hipDeviceGetName(char *name, int len, hipDevice_t device): hip_device.cpp'],['../group__Driver.html#ga24df15e180a7b2b351cd362e5b7d2dac',1,'hipDeviceGetName(char *name, int len, hipDevice_t device): hip_device.cpp']]], + ['hipdevicegetpcibusid',['hipDeviceGetPCIBusId',['../group__Driver.html#gaaa961c8ec8047903617f4245fa50256a',1,'hipDeviceGetPCIBusId(char *pciBusId, int len, int device): hip_device.cpp'],['../group__Driver.html#gaaa961c8ec8047903617f4245fa50256a',1,'hipDeviceGetPCIBusId(char *pciBusId, int len, int device): hip_device.cpp']]], + ['hipdevicegetsharedmemconfig',['hipDeviceGetSharedMemConfig',['../group__Device.html#ga1bb08f774a34a468d969a8a04791c9bb',1,'hipDeviceGetSharedMemConfig(hipSharedMemConfig *pConfig): hip_device.cpp'],['../group__Device.html#ga1bb08f774a34a468d969a8a04791c9bb',1,'hipDeviceGetSharedMemConfig(hipSharedMemConfig *pConfig): hip_device.cpp']]], + ['hipdevicereset',['hipDeviceReset',['../group__Device.html#ga8d57161ae56a8edc46eeda447417bf6c',1,'hipDeviceReset(void): hip_device.cpp'],['../group__Device.html#ga8d57161ae56a8edc46eeda447417bf6c',1,'hipDeviceReset(void): hip_device.cpp']]], + ['hipdevicesetcacheconfig',['hipDeviceSetCacheConfig',['../group__Device.html#gaada3d30a46ae06f68cf1574f496b86ee',1,'hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig): hip_device.cpp'],['../group__Device.html#gaada3d30a46ae06f68cf1574f496b86ee',1,'hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig): hip_device.cpp']]], + ['hipdevicesetsharedmemconfig',['hipDeviceSetSharedMemConfig',['../group__Device.html#ga9b1f279084e76691cedfbfadf9c717ee',1,'hipDeviceSetSharedMemConfig(hipSharedMemConfig config): hip_device.cpp'],['../group__Device.html#ga9b1f279084e76691cedfbfadf9c717ee',1,'hipDeviceSetSharedMemConfig(hipSharedMemConfig config): hip_device.cpp']]], + ['hipdevicesynchronize',['hipDeviceSynchronize',['../group__Device.html#gaefdc2847fb1d6c3fb1354e827a191ebd',1,'hipDeviceSynchronize(void): hip_device.cpp'],['../group__Device.html#gaefdc2847fb1d6c3fb1354e827a191ebd',1,'hipDeviceSynchronize(void): hip_device.cpp']]], + ['hipdevicetotalmem',['hipDeviceTotalMem',['../group__Driver.html#ga8991e535d0ef1ead0524e73364623041',1,'hipDeviceTotalMem(size_t *bytes, hipDevice_t device): hip_device.cpp'],['../group__Driver.html#ga8991e535d0ef1ead0524e73364623041',1,'hipDeviceTotalMem(size_t *bytes, hipDevice_t device): hip_device.cpp']]], + ['hipdrivergetversion',['hipDriverGetVersion',['../group__Driver.html#gaf6c342f52d2a29a0aca5cdd89b4dd47c',1,'hipDriverGetVersion(int *driverVersion): hip_context.cpp'],['../group__Driver.html#gaf6c342f52d2a29a0aca5cdd89b4dd47c',1,'hipDriverGetVersion(int *driverVersion): hip_context.cpp']]], + ['hipeventcreate',['hipEventCreate',['../group__Event.html#ga5df2309c9f29ca4c8e669db658d411b4',1,'hipEventCreate(hipEvent_t *event): hip_event.cpp'],['../group__Event.html#ga5df2309c9f29ca4c8e669db658d411b4',1,'hipEventCreate(hipEvent_t *event): hip_event.cpp']]], + ['hipeventcreatewithflags',['hipEventCreateWithFlags',['../group__Event.html#gae86a5acb1b22b61bc9ecb9c28fc71b75',1,'hipEventCreateWithFlags(hipEvent_t *event, unsigned flags): hip_event.cpp'],['../group__Event.html#gae86a5acb1b22b61bc9ecb9c28fc71b75',1,'hipEventCreateWithFlags(hipEvent_t *event, unsigned flags): hip_event.cpp']]], + ['hipeventdestroy',['hipEventDestroy',['../group__Event.html#ga83260357dce0c39e8c6a3c74ec97484c',1,'hipEventDestroy(hipEvent_t event): hip_event.cpp'],['../group__Event.html#ga83260357dce0c39e8c6a3c74ec97484c',1,'hipEventDestroy(hipEvent_t event): hip_event.cpp']]], + ['hipeventelapsedtime',['hipEventElapsedTime',['../group__Event.html#gad4128b815cb475c8e13c7e66ff6250b7',1,'hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop): hip_event.cpp'],['../group__Event.html#gad4128b815cb475c8e13c7e66ff6250b7',1,'hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop): hip_event.cpp']]], + ['hipeventquery',['hipEventQuery',['../group__Event.html#ga5d12d7b798b5ceb5932d1ac21f5ac776',1,'hipEventQuery(hipEvent_t event): hip_event.cpp'],['../group__Event.html#ga5d12d7b798b5ceb5932d1ac21f5ac776',1,'hipEventQuery(hipEvent_t event): hip_event.cpp']]], + ['hipeventrecord',['hipEventRecord',['../group__Event.html#ga553b6f7a8e7b7dd9536d8a64c24d7e29',1,'hipEventRecord(hipEvent_t event, hipStream_t stream): hip_event.cpp'],['../group__Event.html#ga553b6f7a8e7b7dd9536d8a64c24d7e29',1,'hipEventRecord(hipEvent_t event, hipStream_t stream): hip_event.cpp']]], + ['hipeventsynchronize',['hipEventSynchronize',['../group__Event.html#ga1f72d98ba5d6f7dc3da54e0c41fe38b1',1,'hipEventSynchronize(hipEvent_t event): hip_event.cpp'],['../group__Event.html#ga1f72d98ba5d6f7dc3da54e0c41fe38b1',1,'hipEventSynchronize(hipEvent_t event): hip_event.cpp']]], + ['hipfree',['hipFree',['../group__Memory.html#ga740d08da65cae1441ba32f8fedb863d1',1,'hipFree(void *ptr): hip_memory.cpp'],['../group__Memory.html#ga740d08da65cae1441ba32f8fedb863d1',1,'hipFree(void *ptr): hip_memory.cpp']]], + ['hipfreearray',['hipFreeArray',['../hcc__detail_2hip__texture_8h.html#ae29935073517245c69bc64790dd2747a',1,'hip_memory.cpp']]], + ['hipfreehost',['hipFreeHost',['../group__Memory.html#gad2164cc3d49da53052f4b83b789e90c9',1,'hipFreeHost(void *ptr) __attribute__((deprecated("use hipHostFree instead"))): hip_memory.cpp'],['../group__Memory.html#gad2164cc3d49da53052f4b83b789e90c9',1,'hipFreeHost(void *ptr): hip_memory.cpp']]], + ['hipfuncsetcacheconfig',['hipFuncSetCacheConfig',['../group__Device.html#ga82f0637f09eb1082f6fd025f76c2c6f5',1,'hipFuncSetCacheConfig(hipFuncCache_t config): hip_device.cpp'],['../group__Device.html#ga82f0637f09eb1082f6fd025f76c2c6f5',1,'hipFuncSetCacheConfig(hipFuncCache_t cacheConfig): hip_device.cpp']]], + ['hipgetdevice',['hipGetDevice',['../group__Device.html#ga7e0e2e8c5f78e3c7449764657c254e0a',1,'hipGetDevice(int *deviceId): hip_device.cpp'],['../group__Device.html#ga7e0e2e8c5f78e3c7449764657c254e0a',1,'hipGetDevice(int *deviceId): hip_device.cpp']]], + ['hipgetdevicecount',['hipGetDeviceCount',['../group__Device.html#ga8555d5c76d88c50ddbf54ae70b568394',1,'hipGetDeviceCount(int *count): hip_device.cpp'],['../group__Device.html#ga8555d5c76d88c50ddbf54ae70b568394',1,'hipGetDeviceCount(int *count): hip_device.cpp']]], + ['hipgetdeviceproperties',['hipGetDeviceProperties',['../group__Device.html#ga32208513b7cd491f0cb5fc884053f790',1,'hipGetDeviceProperties(hipDeviceProp_t *prop, int deviceId): hip_device.cpp'],['../group__Device.html#ga32208513b7cd491f0cb5fc884053f790',1,'hipGetDeviceProperties(hipDeviceProp_t *props, int device): hip_device.cpp']]], + ['hipgeterrorname',['hipGetErrorName',['../group__Error.html#ga88c474d77635523dbf6ca67be7b56999',1,'hipGetErrorName(hipError_t hip_error): hip_error.cpp'],['../group__Error.html#ga88c474d77635523dbf6ca67be7b56999',1,'hipGetErrorName(hipError_t hip_error): hip_error.cpp']]], + ['hipgeterrorstring',['hipGetErrorString',['../group__Error.html#ga1421a2ee561f30d5b1dbed3ecb28b264',1,'hipGetErrorString(hipError_t hipError): hip_error.cpp'],['../group__Error.html#ga1421a2ee561f30d5b1dbed3ecb28b264',1,'hipGetErrorString(hipError_t hip_error): hip_error.cpp']]], + ['hipgetlasterror',['hipGetLastError',['../group__Error.html#ga533daeb9114d7fc2db8d867adf9e419b',1,'hipGetLastError(void): hip_error.cpp'],['../group__Error.html#ga533daeb9114d7fc2db8d867adf9e419b',1,'hipGetLastError(): hip_error.cpp']]], + ['hiphostalloc',['hipHostAlloc',['../group__Memory.html#gac5ae7f11cefc7085f39ee7868e71724a',1,'hipHostAlloc(void **ptr, size_t size, unsigned int flags) __attribute__((deprecated("use hipHostMalloc instead"))): hip_memory.cpp'],['../group__Memory.html#gac5ae7f11cefc7085f39ee7868e71724a',1,'hipHostAlloc(void **ptr, size_t sizeBytes, unsigned int flags): hip_memory.cpp']]], + ['hiphostfree',['hipHostFree',['../group__Memory.html#ga2e543f58ee4544e317cd695d6d82e0a3',1,'hipHostFree(void *ptr): hip_memory.cpp'],['../group__Memory.html#ga2e543f58ee4544e317cd695d6d82e0a3',1,'hipHostFree(void *ptr): hip_memory.cpp']]], + ['hiphostgetdevicepointer',['hipHostGetDevicePointer',['../group__Memory.html#ga8fa7a0478020b835a24785cd6bb89725',1,'hip_runtime_api.h']]], + ['hiphostgetflags',['hipHostGetFlags',['../group__Memory.html#ga4d26915873b3e3534ceb4dc310f8709a',1,'hipHostGetFlags(unsigned int *flagsPtr, void *hostPtr): hip_memory.cpp'],['../group__Memory.html#ga4d26915873b3e3534ceb4dc310f8709a',1,'hipHostGetFlags(unsigned int *flagsPtr, void *hostPtr): hip_memory.cpp']]], + ['hiphostmalloc',['hipHostMalloc',['../group__Memory.html#gaad40bc7d97ccc799403ef5a9a8c246e1',1,'hipHostMalloc(void **ptr, size_t size, unsigned int flags): hip_memory.cpp'],['../group__Memory.html#gaad40bc7d97ccc799403ef5a9a8c246e1',1,'hipHostMalloc(void **ptr, size_t sizeBytes, unsigned int flags): hip_memory.cpp']]], + ['hiphostregister',['hipHostRegister',['../group__Memory.html#gab8258f051e1a1f7385f794a15300e674',1,'hipHostRegister(void *hostPtr, size_t sizeBytes, unsigned int flags): hip_memory.cpp'],['../group__Memory.html#gab8258f051e1a1f7385f794a15300e674',1,'hipHostRegister(void *hostPtr, size_t sizeBytes, unsigned int flags): hip_memory.cpp']]], + ['hiphostunregister',['hipHostUnregister',['../group__Memory.html#ga4c9e1810b9f5858d36c4d28c91c86924',1,'hipHostUnregister(void *hostPtr): hip_memory.cpp'],['../group__Memory.html#ga4c9e1810b9f5858d36c4d28c91c86924',1,'hipHostUnregister(void *hostPtr): hip_memory.cpp']]], + ['hipinit',['hipInit',['../group__Driver.html#ga01baa652dda5815c594d047060496caa',1,'hipInit(unsigned int flags): hip_context.cpp'],['../group__Driver.html#ga01baa652dda5815c594d047060496caa',1,'hipInit(unsigned int flags): hip_context.cpp']]], + ['hipipcclosememhandle',['hipIpcCloseMemHandle',['../group__API.html#gac2db0688a6a471e17ca631977e199da7',1,'hipIpcCloseMemHandle(void *devPtr): hip_memory.cpp'],['../group__API.html#gac2db0688a6a471e17ca631977e199da7',1,'hipIpcCloseMemHandle(void *devPtr): hip_memory.cpp']]], + ['hipipcgetmemhandle',['hipIpcGetMemHandle',['../group__API.html#gafd8c80f7e3b6426a630fff768409be70',1,'hipIpcGetMemHandle(hipIpcMemHandle_t *handle, void *devPtr): hip_memory.cpp'],['../group__API.html#gafd8c80f7e3b6426a630fff768409be70',1,'hipIpcGetMemHandle(hipIpcMemHandle_t *handle, void *devPtr): hip_memory.cpp']]], + ['hipipcopenmemhandle',['hipIpcOpenMemHandle',['../group__API.html#ga2ada334c986e10805d58167e260cb0df',1,'hipIpcOpenMemHandle(void **devPtr, hipIpcMemHandle_t handle, unsigned int flags): hip_memory.cpp'],['../group__API.html#ga2ada334c986e10805d58167e260cb0df',1,'hipIpcOpenMemHandle(void **devPtr, hipIpcMemHandle_t handle, unsigned int flags): hip_memory.cpp']]], + ['hipmalloc',['hipMalloc',['../group__Memory.html#ga4c6fcfe80010069d2792780d00dcead2',1,'hipMalloc(void **ptr, size_t size): hip_memory.cpp'],['../group__Memory.html#ga4c6fcfe80010069d2792780d00dcead2',1,'hipMalloc(void **ptr, size_t sizeBytes): hip_memory.cpp']]], + ['hipmallocarray',['hipMallocArray',['../hcc__detail_2hip__texture_8h.html#aea2f071ae2e4a0847f6aa42d1ef56129',1,'hip_memory.cpp']]], + ['hipmallochost',['hipMallocHost',['../group__Memory.html#gad3d3cdf82eb0058fc9eac1f939cd9d30',1,'hipMallocHost(void **ptr, size_t size) __attribute__((deprecated("use hipHostMalloc instead"))): hip_memory.cpp'],['../group__Memory.html#gad3d3cdf82eb0058fc9eac1f939cd9d30',1,'hipMallocHost(void **ptr, size_t sizeBytes): hip_memory.cpp']]], + ['hipmallocpitch',['hipMallocPitch',['../group__Memory.html#ga805c7320498926e444616fe090c727ee',1,'hipMallocPitch(void **ptr, size_t *pitch, size_t width, size_t height): hip_memory.cpp'],['../group__Memory.html#ga805c7320498926e444616fe090c727ee',1,'hipMallocPitch(void **ptr, size_t *pitch, size_t width, size_t height): hip_memory.cpp']]], + ['hipmemcpy',['hipMemcpy',['../group__Memory.html#gac1a055d288302edd641c6d7416858e1e',1,'hipMemcpy(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind): hip_memory.cpp'],['../group__Memory.html#gac1a055d288302edd641c6d7416858e1e',1,'hipMemcpy(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind): hip_memory.cpp']]], + ['hipmemcpy2d',['hipMemcpy2D',['../hcc__detail_2hip__texture_8h.html#a8af4597ff0cd17247d8a857c4d8bfa8a',1,'hip_memory.cpp']]], + ['hipmemcpy2dtoarray',['hipMemcpy2DToArray',['../hcc__detail_2hip__texture_8h.html#ab08b0bd6cdbb57e79df40ef1cd0374e0',1,'hip_memory.cpp']]], + ['hipmemcpyasync',['hipMemcpyAsync',['../group__Memory.html#gad55fa9f5980b711bc93c52820149ba18',1,'hipMemcpyAsync(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gad55fa9f5980b711bc93c52820149ba18',1,'hipMemcpyAsync(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream): hip_memory.cpp']]], + ['hipmemcpydtod',['hipMemcpyDtoD',['../group__Memory.html#ga814f245b8918f173c1f2f8c1480f7f93',1,'hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes): hip_memory.cpp'],['../group__Memory.html#ga814f245b8918f173c1f2f8c1480f7f93',1,'hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes): hip_memory.cpp']]], + ['hipmemcpydtodasync',['hipMemcpyDtoDAsync',['../group__Memory.html#gad3bba6016cba62f0e933cdfb4c312d27',1,'hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gad3bba6016cba62f0e933cdfb4c312d27',1,'hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp']]], + ['hipmemcpydtoh',['hipMemcpyDtoH',['../group__Memory.html#gae61f4e35ff1b9643c6328bc45d091c3f',1,'hipMemcpyDtoH(void *dst, hipDeviceptr_t src, size_t sizeBytes): hip_memory.cpp'],['../group__Memory.html#gae61f4e35ff1b9643c6328bc45d091c3f',1,'hipMemcpyDtoH(void *dst, hipDeviceptr_t src, size_t sizeBytes): hip_memory.cpp']]], + ['hipmemcpydtohasync',['hipMemcpyDtoHAsync',['../group__Memory.html#gad69da1994a646b843fb1fa465dbeb623',1,'hipMemcpyDtoHAsync(void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gad69da1994a646b843fb1fa465dbeb623',1,'hipMemcpyDtoHAsync(void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp']]], + ['hipmemcpyhtod',['hipMemcpyHtoD',['../group__Memory.html#gaa415ecdd2535e1eb618ed8a31a6f03af',1,'hipMemcpyHtoD(hipDeviceptr_t dst, void *src, size_t sizeBytes): hip_memory.cpp'],['../group__Memory.html#gaa415ecdd2535e1eb618ed8a31a6f03af',1,'hipMemcpyHtoD(hipDeviceptr_t dst, void *src, size_t sizeBytes): hip_memory.cpp']]], + ['hipmemcpyhtodasync',['hipMemcpyHtoDAsync',['../group__Memory.html#gae3e76acb34bed5e3b19b4c1822975bcd',1,'hipMemcpyHtoDAsync(hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gae3e76acb34bed5e3b19b4c1822975bcd',1,'hipMemcpyHtoDAsync(hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream): hip_memory.cpp']]], + ['hipmemcpypeer',['hipMemcpyPeer',['../group__PeerToPeer.html#ga5512f45e25c08052667c8ffe7162333b',1,'hipMemcpyPeer(void *dst, int dstDeviceId, const void *src, int srcDeviceId, size_t sizeBytes): hip_peer.cpp'],['../group__PeerToPeer.html#ga5512f45e25c08052667c8ffe7162333b',1,'hipMemcpyPeer(void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes): hip_peer.cpp']]], + ['hipmemcpypeerasync',['hipMemcpyPeerAsync',['../group__PeerToPeer.html#ga216f951370c931d22e80c089ab724ed9',1,'hipMemcpyPeerAsync(void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream): hip_peer.cpp'],['../group__PeerToPeer.html#ga216f951370c931d22e80c089ab724ed9',1,'hipMemcpyPeerAsync(void *dst, int dstDevice, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream): hip_peer.cpp']]], + ['hipmemcpytoarray',['hipMemcpyToArray',['../hcc__detail_2hip__texture_8h.html#a2e631f0b6757b47b74cdaa2911784be9',1,'hip_memory.cpp']]], + ['hipmemcpytosymbol',['hipMemcpyToSymbol',['../group__Memory.html#ga131ac5c1ba04e186112491cb9bf964bc',1,'hipMemcpyToSymbol(const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind): hip_memory.cpp'],['../group__Memory.html#ga131ac5c1ba04e186112491cb9bf964bc',1,'hipMemcpyToSymbol(const char *symbolName, const void *src, size_t count, size_t offset, hipMemcpyKind kind): hip_memory.cpp']]], + ['hipmemcpytosymbolasync',['hipMemcpyToSymbolAsync',['../group__Memory.html#ga7dd66b9e8e0e7159177b42a250fe23c4',1,'hipMemcpyToSymbolAsync(const char *symbolName, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#ga7dd66b9e8e0e7159177b42a250fe23c4',1,'hipMemcpyToSymbolAsync(const char *symbolName, const void *src, size_t count, size_t offset, hipMemcpyKind kind, hipStream_t stream): hip_memory.cpp']]], + ['hipmemgetaddressrange',['hipMemGetAddressRange',['../group__PeerToPeer.html#gac7d9132f6e3d102e9b512020e5654f38',1,'hipMemGetAddressRange(hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr): hip_memory.cpp'],['../group__PeerToPeer.html#gac7d9132f6e3d102e9b512020e5654f38',1,'hipMemGetAddressRange(hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr): hip_memory.cpp']]], + ['hipmemgetinfo',['hipMemGetInfo',['../group__Memory.html#ga311c3e246a21590de14478b8bd063be2',1,'hipMemGetInfo(size_t *free, size_t *total): hip_memory.cpp'],['../group__Memory.html#ga311c3e246a21590de14478b8bd063be2',1,'hipMemGetInfo(size_t *free, size_t *total): hip_memory.cpp']]], + ['hipmemset',['hipMemset',['../group__Memory.html#gac7441e74affcce4b8b69dba996c5ebc4',1,'hipMemset(void *dst, int value, size_t sizeBytes): hip_memory.cpp'],['../group__Memory.html#gac7441e74affcce4b8b69dba996c5ebc4',1,'hipMemset(void *dst, int value, size_t sizeBytes): hip_memory.cpp']]], + ['hipmemsetasync',['hipMemsetAsync',['../group__Memory.html#gae7d90e14c387e49f10db597f12915c54',1,'hipMemsetAsync(void *dst, int value, size_t sizeBytes, hipStream_t stream): hip_memory.cpp'],['../group__Memory.html#gae7d90e14c387e49f10db597f12915c54',1,'hipMemsetAsync(void *dst, int value, size_t sizeBytes, hipStream_t stream): hip_memory.cpp']]], + ['hipmodulegetfunction',['hipModuleGetFunction',['../group__Driver.html#ga9648b457bb837838cb936b417b56a65d',1,'hipModuleGetFunction(hipFunction_t *function, hipModule_t module, const char *kname): hip_module.cpp'],['../group__Driver.html#ga9648b457bb837838cb936b417b56a65d',1,'hipModuleGetFunction(hipFunction_t *hfunc, hipModule_t hmod, const char *name): hip_module.cpp']]], + ['hipmodulegetglobal',['hipModuleGetGlobal',['../group__Driver.html#ga3e425a680285f495e776f096e9632c89',1,'hipModuleGetGlobal(hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name): hip_module.cpp'],['../group__Driver.html#ga3e425a680285f495e776f096e9632c89',1,'hipModuleGetGlobal(hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name): hip_module.cpp']]], + ['hipmodulelaunchkernel',['hipModuleLaunchKernel',['../group__Driver.html#ga2e4de5937aa8171e9eda16c881ed0674',1,'hip_runtime_api.h']]], + ['hipmoduleload',['hipModuleLoad',['../group__Driver.html#ga31d806d976e91d36bd990ae3004d8760',1,'hipModuleLoad(hipModule_t *module, const char *fname): hip_module.cpp'],['../group__Driver.html#ga31d806d976e91d36bd990ae3004d8760',1,'hipModuleLoad(hipModule_t *module, const char *fname): hip_module.cpp']]], + ['hipmoduleloaddata',['hipModuleLoadData',['../group__Driver.html#gaabdbd73e952a741e861d01109c4790f3',1,'hipModuleLoadData(hipModule_t *module, const void *image): hip_module.cpp'],['../group__Driver.html#gaabdbd73e952a741e861d01109c4790f3',1,'hipModuleLoadData(hipModule_t *module, const void *image): hip_module.cpp']]], + ['hipmoduleunload',['hipModuleUnload',['../group__Driver.html#gae58e345f55bb3ec13dca80d2df88e0ed',1,'hipModuleUnload(hipModule_t module): hip_module.cpp'],['../group__Driver.html#gae58e345f55bb3ec13dca80d2df88e0ed',1,'hipModuleUnload(hipModule_t hmod): hip_module.cpp']]], + ['hippeekatlasterror',['hipPeekAtLastError',['../group__Error.html#ga1dd660bc739f7e13edd34615660f0148',1,'hipPeekAtLastError(void): hip_error.cpp'],['../group__Error.html#ga1dd660bc739f7e13edd34615660f0148',1,'hipPeekAtLastError(): hip_error.cpp']]], + ['hippointergetattributes',['hipPointerGetAttributes',['../group__Memory.html#ga3d68ba64959615d4ab84f10caa12433b',1,'hipPointerGetAttributes(hipPointerAttribute_t *attributes, void *ptr): hip_memory.cpp'],['../group__Memory.html#ga3d68ba64959615d4ab84f10caa12433b',1,'hipPointerGetAttributes(hipPointerAttribute_t *attributes, void *ptr): hip_memory.cpp']]], + ['hipprofilerstart',['hipProfilerStart',['../group__Profiler.html#ga40aa20d731f9c8f0586127d589759e1d',1,'hipProfilerStart(): hip_hcc.cpp'],['../group__Profiler.html#ga40aa20d731f9c8f0586127d589759e1d',1,'hipProfilerStart(): hip_hcc.cpp']]], + ['hipprofilerstop',['hipProfilerStop',['../group__Profiler.html#ga777994cae0f7bdef24131fc1f3ed626e',1,'hipProfilerStop(): hip_hcc.cpp'],['../group__Profiler.html#ga777994cae0f7bdef24131fc1f3ed626e',1,'hipProfilerStop(): hip_hcc.cpp']]], + ['hipruntimegetversion',['hipRuntimeGetVersion',['../group__Driver.html#gae8b7ba34d2e11e334650aa51a4dd87ee',1,'hipRuntimeGetVersion(int *runtimeVersion): hip_context.cpp'],['../group__Driver.html#gae8b7ba34d2e11e334650aa51a4dd87ee',1,'hipRuntimeGetVersion(int *runtimeVersion): hip_context.cpp']]], + ['hipsetdevice',['hipSetDevice',['../group__Device.html#ga43c1e7f15925eeb762195ccb5e063eae',1,'hipSetDevice(int deviceId): hip_device.cpp'],['../group__Device.html#ga43c1e7f15925eeb762195ccb5e063eae',1,'hipSetDevice(int deviceId): hip_device.cpp']]], + ['hipsetdeviceflags',['hipSetDeviceFlags',['../group__Device.html#ga6e54db382768827e84725632018307aa',1,'hip_runtime_api.h']]], + ['hipstreamaddcallback',['hipStreamAddCallback',['../group__Stream.html#ga3e098cd7478828b2104abb41a7bb00d3',1,'hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags): hip_stream.cpp'],['../group__Stream.html#ga3e098cd7478828b2104abb41a7bb00d3',1,'hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags): hip_stream.cpp']]], + ['hipstreamcreate',['hipStreamCreate',['../group__Stream.html#gaff5b62d6e9502d80879f7176f4d03102',1,'hipStreamCreate(hipStream_t *stream): hip_stream.cpp'],['../group__Stream.html#gaff5b62d6e9502d80879f7176f4d03102',1,'hipStreamCreate(hipStream_t *stream): hip_stream.cpp']]], + ['hipstreamcreatewithflags',['hipStreamCreateWithFlags',['../group__Stream.html#gaf2382e3cc6632332a8983a0f58e43494',1,'hipStreamCreateWithFlags(hipStream_t *stream, unsigned int flags): hip_stream.cpp'],['../group__Stream.html#gaf2382e3cc6632332a8983a0f58e43494',1,'hipStreamCreateWithFlags(hipStream_t *stream, unsigned int flags): hip_stream.cpp']]], + ['hipstreamdestroy',['hipStreamDestroy',['../group__Stream.html#ga3076a3499ed2c7821311006100bb95ec',1,'hipStreamDestroy(hipStream_t stream): hip_stream.cpp'],['../group__Stream.html#ga3076a3499ed2c7821311006100bb95ec',1,'hipStreamDestroy(hipStream_t stream): hip_stream.cpp']]], + ['hipstreamgetflags',['hipStreamGetFlags',['../group__Stream.html#ga3249555a26439591b8873f70b39bb116',1,'hipStreamGetFlags(hipStream_t stream, unsigned int *flags): hip_stream.cpp'],['../group__Stream.html#ga3249555a26439591b8873f70b39bb116',1,'hipStreamGetFlags(hipStream_t stream, unsigned int *flags): hip_stream.cpp']]], + ['hipstreamquery',['hipStreamQuery',['../group__Stream.html#ga925b39ff78d3b5fd458bd9e2cade9f4e',1,'hipStreamQuery(hipStream_t stream): hip_stream.cpp'],['../group__Stream.html#ga925b39ff78d3b5fd458bd9e2cade9f4e',1,'hipStreamQuery(hipStream_t stream): hip_stream.cpp']]], + ['hipstreamsynchronize',['hipStreamSynchronize',['../group__Stream.html#gabbfb9f573a6ebe8c478605ecb5504a74',1,'hipStreamSynchronize(hipStream_t stream): hip_stream.cpp'],['../group__Stream.html#gabbfb9f573a6ebe8c478605ecb5504a74',1,'hipStreamSynchronize(hipStream_t stream): hip_stream.cpp']]], + ['hipstreamwaitevent',['hipStreamWaitEvent',['../group__Stream.html#gacdd84c8f8ef1539c96c57c1d5bcae633',1,'hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags): hip_stream.cpp'],['../group__Stream.html#gacdd84c8f8ef1539c96c57c1d5bcae633',1,'hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags): hip_stream.cpp']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_0.html b/docs/RuntimeAPI/html/search/groups_0.html new file mode 100644 index 0000000000..2090afa206 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_0.js b/docs/RuntimeAPI/html/search/groups_0.js new file mode 100644 index 0000000000..41450aa73c --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['control',['Control',['../group__Profiler.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_1.html b/docs/RuntimeAPI/html/search/groups_1.html new file mode 100644 index 0000000000..3ad8a3ba5e --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_1.js b/docs/RuntimeAPI/html/search/groups_1.js new file mode 100644 index 0000000000..9f4a599ed0 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_1.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['device_20management',['Device Management',['../group__Device.html',1,'']]], + ['device_20memory_20access',['Device Memory Access',['../group__PeerToPeer.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_2.html b/docs/RuntimeAPI/html/search/groups_2.html new file mode 100644 index 0000000000..361832c940 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_2.js b/docs/RuntimeAPI/html/search/groups_2.js new file mode 100644 index 0000000000..c9fd17e83e --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_2.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['error_20handling',['Error Handling',['../group__Error.html',1,'']]], + ['event_20management',['Event Management',['../group__Event.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_3.html b/docs/RuntimeAPI/html/search/groups_3.html new file mode 100644 index 0000000000..f42200a1c1 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_3.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_3.js b/docs/RuntimeAPI/html/search/groups_3.js new file mode 100644 index 0000000000..04e0d8aba5 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_3.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['fence_20functions',['Fence Functions',['../group__Fence.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_4.html b/docs/RuntimeAPI/html/search/groups_4.html new file mode 100644 index 0000000000..b07fdf95ae --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_4.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_4.js b/docs/RuntimeAPI/html/search/groups_4.js new file mode 100644 index 0000000000..529e9394c3 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_4.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['global_20enum_20and_20defines',['Global enum and defines',['../group__GlobalDefs.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_5.html b/docs/RuntimeAPI/html/search/groups_5.html new file mode 100644 index 0000000000..35324c03fa --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_5.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_5.js b/docs/RuntimeAPI/html/search/groups_5.js new file mode 100644 index 0000000000..178e3f55de --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_5.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['hip_20api',['HIP API',['../group__API.html',1,'']]], + ['hcc_2dspecific_20accessors',['HCC-Specific Accessors',['../group__HCC__Specific.html',1,'']]], + ['hip_20environment_20variables',['HIP Environment Variables',['../group__HIP-ENV.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_6.html b/docs/RuntimeAPI/html/search/groups_6.html new file mode 100644 index 0000000000..323140233c --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_6.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_6.js b/docs/RuntimeAPI/html/search/groups_6.js new file mode 100644 index 0000000000..f99f43b337 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_6.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['initialization_20and_20version',['Initialization and Version',['../group__Driver.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_7.html b/docs/RuntimeAPI/html/search/groups_7.html new file mode 100644 index 0000000000..27334b6a7d --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_7.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_7.js b/docs/RuntimeAPI/html/search/groups_7.js new file mode 100644 index 0000000000..0541757e52 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_7.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['management',['Management',['../group__Context.html',1,'']]], + ['memory_20management',['Memory Management',['../group__Memory.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_8.html b/docs/RuntimeAPI/html/search/groups_8.html new file mode 100644 index 0000000000..863d13654f --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_8.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_8.js b/docs/RuntimeAPI/html/search/groups_8.js new file mode 100644 index 0000000000..7cc1c54c23 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_8.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['stream_20management',['Stream Management',['../group__Stream.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/groups_9.html b/docs/RuntimeAPI/html/search/groups_9.html new file mode 100644 index 0000000000..e42b2804e7 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_9.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/groups_9.js b/docs/RuntimeAPI/html/search/groups_9.js new file mode 100644 index 0000000000..dec0aef6b9 --- /dev/null +++ b/docs/RuntimeAPI/html/search/groups_9.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['texture_20reference_20management',['Texture Reference Management',['../group__Texture.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/mag_sel.png b/docs/RuntimeAPI/html/search/mag_sel.png new file mode 100644 index 0000000000..81f6040a20 Binary files /dev/null and b/docs/RuntimeAPI/html/search/mag_sel.png differ diff --git a/docs/RuntimeAPI/html/search/nomatches.html b/docs/RuntimeAPI/html/search/nomatches.html new file mode 100644 index 0000000000..b1ded27e9a --- /dev/null +++ b/docs/RuntimeAPI/html/search/nomatches.html @@ -0,0 +1,12 @@ + + + + + + + +
+
No Matches
+
+ + diff --git a/docs/RuntimeAPI/html/search/pages_0.html b/docs/RuntimeAPI/html/search/pages_0.html new file mode 100644 index 0000000000..c51c834506 --- /dev/null +++ b/docs/RuntimeAPI/html/search/pages_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/pages_0.js b/docs/RuntimeAPI/html/search/pages_0.js new file mode 100644 index 0000000000..8d42650d49 --- /dev/null +++ b/docs/RuntimeAPI/html/search/pages_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['bug_20list',['Bug List',['../bug.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/pages_1.html b/docs/RuntimeAPI/html/search/pages_1.html new file mode 100644 index 0000000000..2a98fce174 --- /dev/null +++ b/docs/RuntimeAPI/html/search/pages_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/pages_1.js b/docs/RuntimeAPI/html/search/pages_1.js new file mode 100644 index 0000000000..038da5410f --- /dev/null +++ b/docs/RuntimeAPI/html/search/pages_1.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['deprecated_20list',['Deprecated List',['../deprecated.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/pages_2.html b/docs/RuntimeAPI/html/search/pages_2.html new file mode 100644 index 0000000000..0711a0b418 --- /dev/null +++ b/docs/RuntimeAPI/html/search/pages_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/pages_2.js b/docs/RuntimeAPI/html/search/pages_2.js new file mode 100644 index 0000000000..09f9fa0389 --- /dev/null +++ b/docs/RuntimeAPI/html/search/pages_2.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['heterogeneous_2dcomputing_20interface_20for_20portability_20_28hip_29',['Heterogeneous-computing Interface for Portability (HIP)',['../index.html',1,'']]] +]; diff --git a/docs/RuntimeAPI/html/search/related_0.html b/docs/RuntimeAPI/html/search/related_0.html new file mode 100644 index 0000000000..b6476349f4 --- /dev/null +++ b/docs/RuntimeAPI/html/search/related_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/related_0.js b/docs/RuntimeAPI/html/search/related_0.js new file mode 100644 index 0000000000..6f5dc6598c --- /dev/null +++ b/docs/RuntimeAPI/html/search/related_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['hipstreamquery',['hipStreamQuery',['../classihipStream__t.html#a46bba2e3bfbb0915a08fb608aed31858',1,'ihipStream_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/search.css b/docs/RuntimeAPI/html/search/search.css new file mode 100644 index 0000000000..4d7612ff63 --- /dev/null +++ b/docs/RuntimeAPI/html/search/search.css @@ -0,0 +1,271 @@ +/*---------------- Search Box */ + +#FSearchBox { + float: left; +} + +#MSearchBox { + white-space : nowrap; + position: absolute; + float: none; + display: inline; + margin-top: 8px; + right: 0px; + width: 170px; + z-index: 102; + background-color: white; +} + +#MSearchBox .left +{ + display:block; + position:absolute; + left:10px; + width:20px; + height:19px; + background:url('search_l.png') no-repeat; + background-position:right; +} + +#MSearchSelect { + display:block; + position:absolute; + width:20px; + height:19px; +} + +.left #MSearchSelect { + left:4px; +} + +.right #MSearchSelect { + right:5px; +} + +#MSearchField { + display:block; + position:absolute; + height:19px; + background:url('search_m.png') repeat-x; + border:none; + width:111px; + margin-left:20px; + padding-left:4px; + color: #909090; + outline: none; + font: 9pt Arial, Verdana, sans-serif; +} + +#FSearchBox #MSearchField { + margin-left:15px; +} + +#MSearchBox .right { + display:block; + position:absolute; + right:10px; + top:0px; + width:20px; + height:19px; + background:url('search_r.png') no-repeat; + background-position:left; +} + +#MSearchClose { + display: none; + position: absolute; + top: 4px; + background : none; + border: none; + margin: 0px 4px 0px 0px; + padding: 0px 0px; + outline: none; +} + +.left #MSearchClose { + left: 6px; +} + +.right #MSearchClose { + right: 2px; +} + +.MSearchBoxActive #MSearchField { + color: #000000; +} + +/*---------------- Search filter selection */ + +#MSearchSelectWindow { + display: none; + position: absolute; + left: 0; top: 0; + border: 1px solid #90A5CE; + background-color: #F9FAFC; + z-index: 1; + padding-top: 4px; + padding-bottom: 4px; + -moz-border-radius: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + -webkit-border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} + +.SelectItem { + font: 8pt Arial, Verdana, sans-serif; + padding-left: 2px; + padding-right: 12px; + border: 0px; +} + +span.SelectionMark { + margin-right: 4px; + font-family: monospace; + outline-style: none; + text-decoration: none; +} + +a.SelectItem { + display: block; + outline-style: none; + color: #000000; + text-decoration: none; + padding-left: 6px; + padding-right: 12px; +} + +a.SelectItem:focus, +a.SelectItem:active { + color: #000000; + outline-style: none; + text-decoration: none; +} + +a.SelectItem:hover { + color: #FFFFFF; + background-color: #3D578C; + outline-style: none; + text-decoration: none; + cursor: pointer; + display: block; +} + +/*---------------- Search results window */ + +iframe#MSearchResults { + width: 60ex; + height: 15em; +} + +#MSearchResultsWindow { + display: none; + position: absolute; + left: 0; top: 0; + border: 1px solid #000; + background-color: #EEF1F7; +} + +/* ----------------------------------- */ + + +#SRIndex { + clear:both; + padding-bottom: 15px; +} + +.SREntry { + font-size: 10pt; + padding-left: 1ex; +} + +.SRPage .SREntry { + font-size: 8pt; + padding: 1px 5px; +} + +body.SRPage { + margin: 5px 2px; +} + +.SRChildren { + padding-left: 3ex; padding-bottom: .5em +} + +.SRPage .SRChildren { + display: none; +} + +.SRSymbol { + font-weight: bold; + color: #425E97; + font-family: Arial, Verdana, sans-serif; + text-decoration: none; + outline: none; +} + +a.SRScope { + display: block; + color: #425E97; + font-family: Arial, Verdana, sans-serif; + text-decoration: none; + outline: none; +} + +a.SRSymbol:focus, a.SRSymbol:active, +a.SRScope:focus, a.SRScope:active { + text-decoration: underline; +} + +span.SRScope { + padding-left: 4px; +} + +.SRPage .SRStatus { + padding: 2px 5px; + font-size: 8pt; + font-style: italic; +} + +.SRResult { + display: none; +} + +DIV.searchresults { + margin-left: 10px; + margin-right: 10px; +} + +/*---------------- External search page results */ + +.searchresult { + background-color: #F0F3F8; +} + +.pages b { + color: white; + padding: 5px 5px 3px 5px; + background-image: url("../tab_a.png"); + background-repeat: repeat-x; + text-shadow: 0 1px 1px #000000; +} + +.pages { + line-height: 17px; + margin-left: 4px; + text-decoration: none; +} + +.hl { + font-weight: bold; +} + +#searchresults { + margin-bottom: 20px; +} + +.searchpages { + margin-top: 10px; +} + diff --git a/docs/RuntimeAPI/html/search/search.js b/docs/RuntimeAPI/html/search/search.js new file mode 100644 index 0000000000..f85f411038 --- /dev/null +++ b/docs/RuntimeAPI/html/search/search.js @@ -0,0 +1,815 @@ +// Search script generated by doxygen +// Copyright (C) 2009 by Dimitri van Heesch. + +// The code in this file is loosly based on main.js, part of Natural Docs, +// which is Copyright (C) 2003-2008 Greg Valure +// Natural Docs is licensed under the GPL. + +var indexSectionsWithContent = +{ + 0: "_abcdefghilmnprstuwxyz", + 1: "_cdfhilpstu", + 2: "h", + 3: "_h", + 4: "_achilmnprstwxyz", + 5: "dh", + 6: "h", + 7: "h", + 8: "h", + 9: "_h", + 10: "cdefghimst", + 11: "bdh" +}; + +var indexSectionNames = +{ + 0: "all", + 1: "classes", + 2: "files", + 3: "functions", + 4: "variables", + 5: "typedefs", + 6: "enums", + 7: "enumvalues", + 8: "related", + 9: "defines", + 10: "groups", + 11: "pages" +}; + +function convertToId(search) +{ + var result = ''; + for (i=0;i do a search + { + this.Search(); + } + } + + this.OnSearchSelectKey = function(evt) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==40 && this.searchIndex0) // Up + { + this.searchIndex--; + this.OnSelectItem(this.searchIndex); + } + else if (e.keyCode==13 || e.keyCode==27) + { + this.OnSelectItem(this.searchIndex); + this.CloseSelectionWindow(); + this.DOMSearchField().focus(); + } + return false; + } + + // --------- Actions + + // Closes the results window. + this.CloseResultsWindow = function() + { + this.DOMPopupSearchResultsWindow().style.display = 'none'; + this.DOMSearchClose().style.display = 'none'; + this.Activate(false); + } + + this.CloseSelectionWindow = function() + { + this.DOMSearchSelectWindow().style.display = 'none'; + } + + // Performs a search. + this.Search = function() + { + this.keyTimeout = 0; + + // strip leading whitespace + var searchValue = this.DOMSearchField().value.replace(/^ +/, ""); + + var code = searchValue.toLowerCase().charCodeAt(0); + var idxChar = searchValue.substr(0, 1).toLowerCase(); + if ( 0xD800 <= code && code <= 0xDBFF && searchValue > 1) // surrogate pair + { + idxChar = searchValue.substr(0, 2); + } + + var resultsPage; + var resultsPageWithSearch; + var hasResultsPage; + + var idx = indexSectionsWithContent[this.searchIndex].indexOf(idxChar); + if (idx!=-1) + { + var hexCode=idx.toString(16); + resultsPage = this.resultsPath + '/' + indexSectionNames[this.searchIndex] + '_' + hexCode + '.html'; + resultsPageWithSearch = resultsPage+'?'+escape(searchValue); + hasResultsPage = true; + } + else // nothing available for this search term + { + resultsPage = this.resultsPath + '/nomatches.html'; + resultsPageWithSearch = resultsPage; + hasResultsPage = false; + } + + window.frames.MSearchResults.location = resultsPageWithSearch; + var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow(); + + if (domPopupSearchResultsWindow.style.display!='block') + { + var domSearchBox = this.DOMSearchBox(); + this.DOMSearchClose().style.display = 'inline'; + if (this.insideFrame) + { + var domPopupSearchResults = this.DOMPopupSearchResults(); + domPopupSearchResultsWindow.style.position = 'relative'; + domPopupSearchResultsWindow.style.display = 'block'; + var width = document.body.clientWidth - 8; // the -8 is for IE :-( + domPopupSearchResultsWindow.style.width = width + 'px'; + domPopupSearchResults.style.width = width + 'px'; + } + else + { + var domPopupSearchResults = this.DOMPopupSearchResults(); + var left = getXPos(domSearchBox) + 150; // domSearchBox.offsetWidth; + var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1; + domPopupSearchResultsWindow.style.display = 'block'; + left -= domPopupSearchResults.offsetWidth; + domPopupSearchResultsWindow.style.top = top + 'px'; + domPopupSearchResultsWindow.style.left = left + 'px'; + } + } + + this.lastSearchValue = searchValue; + this.lastResultsPage = resultsPage; + } + + // -------- Activation Functions + + // Activates or deactivates the search panel, resetting things to + // their default values if necessary. + this.Activate = function(isActive) + { + if (isActive || // open it + this.DOMPopupSearchResultsWindow().style.display == 'block' + ) + { + this.DOMSearchBox().className = 'MSearchBoxActive'; + + var searchField = this.DOMSearchField(); + + if (searchField.value == this.searchLabel) // clear "Search" term upon entry + { + searchField.value = ''; + this.searchActive = true; + } + } + else if (!isActive) // directly remove the panel + { + this.DOMSearchBox().className = 'MSearchBoxInactive'; + this.DOMSearchField().value = this.searchLabel; + this.searchActive = false; + this.lastSearchValue = '' + this.lastResultsPage = ''; + } + } +} + +// ----------------------------------------------------------------------- + +// The class that handles everything on the search results page. +function SearchResults(name) +{ + // The number of matches from the last run of . + this.lastMatchCount = 0; + this.lastKey = 0; + this.repeatOn = false; + + // Toggles the visibility of the passed element ID. + this.FindChildElement = function(id) + { + var parentElement = document.getElementById(id); + var element = parentElement.firstChild; + + while (element && element!=parentElement) + { + if (element.nodeName == 'DIV' && element.className == 'SRChildren') + { + return element; + } + + if (element.nodeName == 'DIV' && element.hasChildNodes()) + { + element = element.firstChild; + } + else if (element.nextSibling) + { + element = element.nextSibling; + } + else + { + do + { + element = element.parentNode; + } + while (element && element!=parentElement && !element.nextSibling); + + if (element && element!=parentElement) + { + element = element.nextSibling; + } + } + } + } + + this.Toggle = function(id) + { + var element = this.FindChildElement(id); + if (element) + { + if (element.style.display == 'block') + { + element.style.display = 'none'; + } + else + { + element.style.display = 'block'; + } + } + } + + // Searches for the passed string. If there is no parameter, + // it takes it from the URL query. + // + // Always returns true, since other documents may try to call it + // and that may or may not be possible. + this.Search = function(search) + { + if (!search) // get search word from URL + { + search = window.location.search; + search = search.substring(1); // Remove the leading '?' + search = unescape(search); + } + + search = search.replace(/^ +/, ""); // strip leading spaces + search = search.replace(/ +$/, ""); // strip trailing spaces + search = search.toLowerCase(); + search = convertToId(search); + + var resultRows = document.getElementsByTagName("div"); + var matches = 0; + + var i = 0; + while (i < resultRows.length) + { + var row = resultRows.item(i); + if (row.className == "SRResult") + { + var rowMatchName = row.id.toLowerCase(); + rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); // strip 'sr123_' + + if (search.length<=rowMatchName.length && + rowMatchName.substr(0, search.length)==search) + { + row.style.display = 'block'; + matches++; + } + else + { + row.style.display = 'none'; + } + } + i++; + } + document.getElementById("Searching").style.display='none'; + if (matches == 0) // no results + { + document.getElementById("NoMatches").style.display='block'; + } + else // at least one result + { + document.getElementById("NoMatches").style.display='none'; + } + this.lastMatchCount = matches; + return true; + } + + // return the first item with index index or higher that is visible + this.NavNext = function(index) + { + var focusItem; + while (1) + { + var focusName = 'Item'+index; + focusItem = document.getElementById(focusName); + if (focusItem && focusItem.parentNode.parentNode.style.display=='block') + { + break; + } + else if (!focusItem) // last element + { + break; + } + focusItem=null; + index++; + } + return focusItem; + } + + this.NavPrev = function(index) + { + var focusItem; + while (1) + { + var focusName = 'Item'+index; + focusItem = document.getElementById(focusName); + if (focusItem && focusItem.parentNode.parentNode.style.display=='block') + { + break; + } + else if (!focusItem) // last element + { + break; + } + focusItem=null; + index--; + } + return focusItem; + } + + this.ProcessKeys = function(e) + { + if (e.type == "keydown") + { + this.repeatOn = false; + this.lastKey = e.keyCode; + } + else if (e.type == "keypress") + { + if (!this.repeatOn) + { + if (this.lastKey) this.repeatOn = true; + return false; // ignore first keypress after keydown + } + } + else if (e.type == "keyup") + { + this.lastKey = 0; + this.repeatOn = false; + } + return this.lastKey!=0; + } + + this.Nav = function(evt,itemIndex) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==13) return true; + if (!this.ProcessKeys(e)) return false; + + if (this.lastKey==38) // Up + { + var newIndex = itemIndex-1; + var focusItem = this.NavPrev(newIndex); + if (focusItem) + { + var child = this.FindChildElement(focusItem.parentNode.parentNode.id); + if (child && child.style.display == 'block') // children visible + { + var n=0; + var tmpElem; + while (1) // search for last child + { + tmpElem = document.getElementById('Item'+newIndex+'_c'+n); + if (tmpElem) + { + focusItem = tmpElem; + } + else // found it! + { + break; + } + n++; + } + } + } + if (focusItem) + { + focusItem.focus(); + } + else // return focus to search field + { + parent.document.getElementById("MSearchField").focus(); + } + } + else if (this.lastKey==40) // Down + { + var newIndex = itemIndex+1; + var focusItem; + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem && elem.style.display == 'block') // children visible + { + focusItem = document.getElementById('Item'+itemIndex+'_c0'); + } + if (!focusItem) focusItem = this.NavNext(newIndex); + if (focusItem) focusItem.focus(); + } + else if (this.lastKey==39) // Right + { + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem) elem.style.display = 'block'; + } + else if (this.lastKey==37) // Left + { + var item = document.getElementById('Item'+itemIndex); + var elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem) elem.style.display = 'none'; + } + else if (this.lastKey==27) // Escape + { + parent.searchBox.CloseResultsWindow(); + parent.document.getElementById("MSearchField").focus(); + } + else if (this.lastKey==13) // Enter + { + return true; + } + return false; + } + + this.NavChild = function(evt,itemIndex,childIndex) + { + var e = (evt) ? evt : window.event; // for IE + if (e.keyCode==13) return true; + if (!this.ProcessKeys(e)) return false; + + if (this.lastKey==38) // Up + { + if (childIndex>0) + { + var newIndex = childIndex-1; + document.getElementById('Item'+itemIndex+'_c'+newIndex).focus(); + } + else // already at first child, jump to parent + { + document.getElementById('Item'+itemIndex).focus(); + } + } + else if (this.lastKey==40) // Down + { + var newIndex = childIndex+1; + var elem = document.getElementById('Item'+itemIndex+'_c'+newIndex); + if (!elem) // last child, jump to parent next parent + { + elem = this.NavNext(itemIndex+1); + } + if (elem) + { + elem.focus(); + } + } + else if (this.lastKey==27) // Escape + { + parent.searchBox.CloseResultsWindow(); + parent.document.getElementById("MSearchField").focus(); + } + else if (this.lastKey==13) // Enter + { + return true; + } + return false; + } +} + +function setKeyActions(elem,action) +{ + elem.setAttribute('onkeydown',action); + elem.setAttribute('onkeypress',action); + elem.setAttribute('onkeyup',action); +} + +function setClassAttr(elem,attr) +{ + elem.setAttribute('class',attr); + elem.setAttribute('className',attr); +} + +function createResults() +{ + var results = document.getElementById("SRResults"); + for (var e=0; e + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/typedefs_0.js b/docs/RuntimeAPI/html/search/typedefs_0.js new file mode 100644 index 0000000000..8cfe168754 --- /dev/null +++ b/docs/RuntimeAPI/html/search/typedefs_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['dim3',['dim3',['../group__GlobalDefs.html#gacb37281795c3567d0b10a61c056d512b',1,'hip_runtime_api.h']]] +]; diff --git a/docs/RuntimeAPI/html/search/typedefs_1.html b/docs/RuntimeAPI/html/search/typedefs_1.html new file mode 100644 index 0000000000..455fe2b2b9 --- /dev/null +++ b/docs/RuntimeAPI/html/search/typedefs_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/typedefs_1.js b/docs/RuntimeAPI/html/search/typedefs_1.js new file mode 100644 index 0000000000..ab13806a51 --- /dev/null +++ b/docs/RuntimeAPI/html/search/typedefs_1.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['hipfunccache_5ft',['hipFuncCache_t',['../group__GlobalDefs.html#ga7effbca2af70714feaa3330bf1a77a72',1,'hip_runtime_api.h']]], + ['hipmemcpykind',['hipMemcpyKind',['../group__GlobalDefs.html#ga0c04e67413ce030817361f02673e5c85',1,'hip_runtime_api.h']]], + ['hipsharedmemconfig',['hipSharedMemConfig',['../group__GlobalDefs.html#ga6b1ca424fa26a5fb718937d662eaee7f',1,'hip_runtime_api.h']]], + ['hipstreamcallback_5ft',['hipStreamCallback_t',['../group__Stream.html#gadd389da2e3926a8ff17658d029015dcd',1,'hip_runtime_api.h']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_0.html b/docs/RuntimeAPI/html/search/variables_0.html new file mode 100644 index 0000000000..1b8adc9b33 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_0.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_0.js b/docs/RuntimeAPI/html/search/variables_0.js new file mode 100644 index 0000000000..12df77b8fe --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['_5fcomputeunits',['_computeUnits',['../classihipDevice__t.html#a655e03136394df32571a52707aa371c5',1,'ihipDevice_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_1.html b/docs/RuntimeAPI/html/search/variables_1.html new file mode 100644 index 0000000000..78f63cd1eb --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_1.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_1.js b/docs/RuntimeAPI/html/search/variables_1.js new file mode 100644 index 0000000000..2fba32867b --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_1.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['arch',['arch',['../structhipDeviceProp__t.html#afc58158e44bef6ad26f2be401434b049',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_2.html b/docs/RuntimeAPI/html/search/variables_2.html new file mode 100644 index 0000000000..ea80d20140 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_2.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_2.js b/docs/RuntimeAPI/html/search/variables_2.js new file mode 100644 index 0000000000..82dc751418 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_2.js @@ -0,0 +1,8 @@ +var searchData= +[ + ['canmaphostmemory',['canMapHostMemory',['../structhipDeviceProp__t.html#ac2143f5448607d1a02a9e8783fcf06a1',1,'hipDeviceProp_t']]], + ['clockinstructionrate',['clockInstructionRate',['../structhipDeviceProp__t.html#a6fbf3b08a1a08ae700f1a06265f6666b',1,'hipDeviceProp_t']]], + ['clockrate',['clockRate',['../structhipDeviceProp__t.html#a1dd15bee43692b8649dfbdc1adbaaf96',1,'hipDeviceProp_t']]], + ['computemode',['computeMode',['../structhipDeviceProp__t.html#ae7d9216f8583a703359d0b9373823f5d',1,'hipDeviceProp_t']]], + ['concurrentkernels',['concurrentKernels',['../structhipDeviceProp__t.html#ad8461a28caf9c38c58cf358583b5bee3',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_3.html b/docs/RuntimeAPI/html/search/variables_3.html new file mode 100644 index 0000000000..0dca26f47b --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_3.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_3.js b/docs/RuntimeAPI/html/search/variables_3.js new file mode 100644 index 0000000000..0fba3440bc --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_3.js @@ -0,0 +1,20 @@ +var searchData= +[ + ['has3dgrid',['has3dGrid',['../structhipDeviceArch__t.html#aa5e22d295cce0d9a34ee6e7e7e378c26',1,'hipDeviceArch_t']]], + ['hasdoubles',['hasDoubles',['../structhipDeviceArch__t.html#a2d624e3d85e615b71d1182f8912893b4',1,'hipDeviceArch_t']]], + ['hasdynamicparallelism',['hasDynamicParallelism',['../structhipDeviceArch__t.html#a9114bfc718bf0648b54ff9a319a36b35',1,'hipDeviceArch_t']]], + ['hasfloatatomicadd',['hasFloatAtomicAdd',['../structhipDeviceArch__t.html#a2321d6ef74aac91c044f3289d25b2d41',1,'hipDeviceArch_t']]], + ['hasfunnelshift',['hasFunnelShift',['../structhipDeviceArch__t.html#aaec4f2d983d4602858fae8e9ddeee3ff',1,'hipDeviceArch_t']]], + ['hasglobalfloatatomicexch',['hasGlobalFloatAtomicExch',['../structhipDeviceArch__t.html#a8f213ae9a4729dff1c636ac5de0e2fa2',1,'hipDeviceArch_t']]], + ['hasglobalint32atomics',['hasGlobalInt32Atomics',['../structhipDeviceArch__t.html#a8d00c3ab98869b602c714fe7abe68e93',1,'hipDeviceArch_t']]], + ['hasglobalint64atomics',['hasGlobalInt64Atomics',['../structhipDeviceArch__t.html#ad5aa54dbab22dbcd8cf98f57a96c6636',1,'hipDeviceArch_t']]], + ['hassharedfloatatomicexch',['hasSharedFloatAtomicExch',['../structhipDeviceArch__t.html#aff005558b4edabd27b27f286ac5b2f2b',1,'hipDeviceArch_t']]], + ['hassharedint32atomics',['hasSharedInt32Atomics',['../structhipDeviceArch__t.html#a1596330b1cb9cc73f142aee11b2ab853',1,'hipDeviceArch_t']]], + ['hassharedint64atomics',['hasSharedInt64Atomics',['../structhipDeviceArch__t.html#a00c2b930fcdcad9ea7b54b449db13966',1,'hipDeviceArch_t']]], + ['hassurfacefuncs',['hasSurfaceFuncs',['../structhipDeviceArch__t.html#a9eb2462148686d4c048b69b6e09f835e',1,'hipDeviceArch_t']]], + ['hassyncthreadsext',['hasSyncThreadsExt',['../structhipDeviceArch__t.html#ade6a3b21ad5f344dcd92c52102c274ba',1,'hipDeviceArch_t']]], + ['hasthreadfencesystem',['hasThreadFenceSystem',['../structhipDeviceArch__t.html#ac2818e3b91cba8beb36741e9867bb887',1,'hipDeviceArch_t']]], + ['haswarpballot',['hasWarpBallot',['../structhipDeviceArch__t.html#af1e934a8a5106995bcc256287585564c',1,'hipDeviceArch_t']]], + ['haswarpshuffle',['hasWarpShuffle',['../structhipDeviceArch__t.html#a3d922e8fc97ca1e8ecc39600b138fa2d',1,'hipDeviceArch_t']]], + ['haswarpvote',['hasWarpVote',['../structhipDeviceArch__t.html#a35bde017352eca1d4e0eceb3bf79f274',1,'hipDeviceArch_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_4.html b/docs/RuntimeAPI/html/search/variables_4.html new file mode 100644 index 0000000000..400e8e9b41 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_4.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_4.js b/docs/RuntimeAPI/html/search/variables_4.js new file mode 100644 index 0000000000..f7bbc877f4 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_4.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['ipc_5fhandle',['ipc_handle',['../classihipIpcMemHandle__t.html#af2142ab7d9f820acbad7638428509d42',1,'ihipIpcMemHandle_t']]], + ['ismultigpuboard',['isMultiGpuBoard',['../structhipDeviceProp__t.html#a9bb19b2b0cdee8977ed63964532d639d',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_5.html b/docs/RuntimeAPI/html/search/variables_5.html new file mode 100644 index 0000000000..7f1241f94b --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_5.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_5.js b/docs/RuntimeAPI/html/search/variables_5.js new file mode 100644 index 0000000000..41a7c59602 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_5.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['l2cachesize',['l2CacheSize',['../structhipDeviceProp__t.html#a24404decccc16833973c803ced6f3a51',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_6.html b/docs/RuntimeAPI/html/search/variables_6.html new file mode 100644 index 0000000000..7536df8d5a --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_6.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_6.js b/docs/RuntimeAPI/html/search/variables_6.js new file mode 100644 index 0000000000..8fc226ebc6 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_6.js @@ -0,0 +1,13 @@ +var searchData= +[ + ['major',['major',['../structhipDeviceProp__t.html#aec9e4173c2e34cc232300c415dbd5e4f',1,'hipDeviceProp_t']]], + ['maxgridsize',['maxGridSize',['../structhipDeviceProp__t.html#ae529c23929f592120081fed31d877a55',1,'hipDeviceProp_t']]], + ['maxsharedmemorypermultiprocessor',['maxSharedMemoryPerMultiProcessor',['../structhipDeviceProp__t.html#aa1a32a7f387f6da845db7b228711fce8',1,'hipDeviceProp_t']]], + ['maxthreadsdim',['maxThreadsDim',['../structhipDeviceProp__t.html#a8ebba6fc12f80c9a9cf9b9193f0da465',1,'hipDeviceProp_t']]], + ['maxthreadsperblock',['maxThreadsPerBlock',['../structhipDeviceProp__t.html#af971cf1ca3ec1f68ad09036c0cc672e0',1,'hipDeviceProp_t']]], + ['maxthreadspermultiprocessor',['maxThreadsPerMultiProcessor',['../structhipDeviceProp__t.html#a23a39f4fd795addb3b125e9c3f6295ea',1,'hipDeviceProp_t']]], + ['memorybuswidth',['memoryBusWidth',['../structhipDeviceProp__t.html#a1d710ce8bd34daf66f892a66a2273132',1,'hipDeviceProp_t']]], + ['memoryclockrate',['memoryClockRate',['../structhipDeviceProp__t.html#a6db0ab8e7e8cc13c84d7bb7f70226d5e',1,'hipDeviceProp_t']]], + ['minor',['minor',['../structhipDeviceProp__t.html#abb51208e2509a7a1d107f0da69108938',1,'hipDeviceProp_t']]], + ['multiprocessorcount',['multiProcessorCount',['../structhipDeviceProp__t.html#add8d9d2ad52aece9fd1dbe25c18d9d57',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_7.html b/docs/RuntimeAPI/html/search/variables_7.html new file mode 100644 index 0000000000..66186a6994 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_7.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_7.js b/docs/RuntimeAPI/html/search/variables_7.js new file mode 100644 index 0000000000..124bf0ddb8 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_7.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['name',['name',['../structhipDeviceProp__t.html#a5b44bf8fa46faefcde989942b1d11a5e',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_8.html b/docs/RuntimeAPI/html/search/variables_8.html new file mode 100644 index 0000000000..aa13bf24a5 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_8.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_8.js b/docs/RuntimeAPI/html/search/variables_8.js new file mode 100644 index 0000000000..71b6a5df56 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_8.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['pcibusid',['pciBusID',['../structhipDeviceProp__t.html#a1350f64d49b717ed3a06458f7549ccb0',1,'hipDeviceProp_t']]], + ['pcideviceid',['pciDeviceID',['../structhipDeviceProp__t.html#ae6aa845dc2d540f85098ea30be35f4eb',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_9.html b/docs/RuntimeAPI/html/search/variables_9.html new file mode 100644 index 0000000000..78cc249f7d --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_9.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_9.js b/docs/RuntimeAPI/html/search/variables_9.js new file mode 100644 index 0000000000..44ba50e0b7 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_9.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['regsperblock',['regsPerBlock',['../structhipDeviceProp__t.html#a73c1c21648a901799ff6bef83c11135b',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_a.html b/docs/RuntimeAPI/html/search/variables_a.html new file mode 100644 index 0000000000..592abaa33c --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_a.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_a.js b/docs/RuntimeAPI/html/search/variables_a.js new file mode 100644 index 0000000000..a582d60c6a --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_a.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['sharedmemperblock',['sharedMemPerBlock',['../structhipDeviceProp__t.html#a3b9138678a0795c2677eddcfb1c67156',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_b.html b/docs/RuntimeAPI/html/search/variables_b.html new file mode 100644 index 0000000000..78052a1e03 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_b.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_b.js b/docs/RuntimeAPI/html/search/variables_b.js new file mode 100644 index 0000000000..b356d6e142 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_b.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['totalconstmem',['totalConstMem',['../structhipDeviceProp__t.html#a29880232c56120be3455ce00d5379665',1,'hipDeviceProp_t']]], + ['totalglobalmem',['totalGlobalMem',['../structhipDeviceProp__t.html#acedd6a2d23423441e4bf51c4a1b719f9',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_c.html b/docs/RuntimeAPI/html/search/variables_c.html new file mode 100644 index 0000000000..b2260e465b --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_c.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_c.js b/docs/RuntimeAPI/html/search/variables_c.js new file mode 100644 index 0000000000..46a1400a7b --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_c.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['warpsize',['warpSize',['../structhipDeviceProp__t.html#af3357d33c004608bf05bc21a352be81b',1,'hipDeviceProp_t']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_d.html b/docs/RuntimeAPI/html/search/variables_d.html new file mode 100644 index 0000000000..f47799968f --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_d.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_d.js b/docs/RuntimeAPI/html/search/variables_d.js new file mode 100644 index 0000000000..250c203caf --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_d.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['x',['x',['../structdim3.html#ac866c05f83a28dac20a153fc65b3b16c',1,'dim3']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_e.html b/docs/RuntimeAPI/html/search/variables_e.html new file mode 100644 index 0000000000..1165006622 --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_e.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_e.js b/docs/RuntimeAPI/html/search/variables_e.js new file mode 100644 index 0000000000..133dd9dc6e --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_e.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['y',['y',['../structdim3.html#a83e60e072f7e8bdfde6ac05053cbb370',1,'dim3']]] +]; diff --git a/docs/RuntimeAPI/html/search/variables_f.html b/docs/RuntimeAPI/html/search/variables_f.html new file mode 100644 index 0000000000..537dd7c28e --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_f.html @@ -0,0 +1,26 @@ + + + + + + + + + +
+
Loading...
+
+ +
Searching...
+
No Matches
+ +
+ + diff --git a/docs/RuntimeAPI/html/search/variables_f.js b/docs/RuntimeAPI/html/search/variables_f.js new file mode 100644 index 0000000000..e8bf38b99c --- /dev/null +++ b/docs/RuntimeAPI/html/search/variables_f.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['z',['z',['../structdim3.html#a866e38993ecc4e76fd47311236c16b04',1,'dim3']]] +]; diff --git a/docs/RuntimeAPI/html/structDbName-members.html b/docs/RuntimeAPI/html/structDbName-members.html new file mode 100644 index 0000000000..7ea2987d5f --- /dev/null +++ b/docs/RuntimeAPI/html/structDbName-members.html @@ -0,0 +1,103 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
DbName Member List
+
+
+ +

This is the complete list of members for DbName, including all inherited members.

+ + + +
_color (defined in DbName)DbName
_shortName (defined in DbName)DbName
+ + + + diff --git a/docs/RuntimeAPI/html/structDbName.html b/docs/RuntimeAPI/html/structDbName.html new file mode 100644 index 0000000000..5d14f3369c --- /dev/null +++ b/docs/RuntimeAPI/html/structDbName.html @@ -0,0 +1,114 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: DbName Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
DbName Struct Reference
+
+
+ + + + + + +

+Public Attributes

+const char * _color
 
+const char * _shortName
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structLockedBase-members.html b/docs/RuntimeAPI/html/structLockedBase-members.html new file mode 100644 index 0000000000..6672fa92f6 --- /dev/null +++ b/docs/RuntimeAPI/html/structLockedBase-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
LockedBase< MUTEX_TYPE > Member List
+
+
+ +

This is the complete list of members for LockedBase< MUTEX_TYPE >, including all inherited members.

+ + + + +
_mutex (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >
lock() (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >inline
unlock() (defined in LockedBase< MUTEX_TYPE >)LockedBase< MUTEX_TYPE >inline
+ + + + diff --git a/docs/RuntimeAPI/html/structLockedBase.html b/docs/RuntimeAPI/html/structLockedBase.html new file mode 100644 index 0000000000..3dfbff92a4 --- /dev/null +++ b/docs/RuntimeAPI/html/structLockedBase.html @@ -0,0 +1,131 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: LockedBase< MUTEX_TYPE > Struct Template Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
LockedBase< MUTEX_TYPE > Struct Template Reference
+
+
+
+Inheritance diagram for LockedBase< MUTEX_TYPE >:
+
+
+ + +ihipCtxCriticalBase_t< MUTEX_TYPE > +ihipStreamCriticalBase_t< MUTEX_TYPE > + +
+ + + + + + +

+Public Member Functions

+void lock ()
 
+void unlock ()
 
+ + + +

+Public Attributes

+MUTEX_TYPE _mutex
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structLockedBase.png b/docs/RuntimeAPI/html/structLockedBase.png new file mode 100644 index 0000000000..41977d7d58 Binary files /dev/null and b/docs/RuntimeAPI/html/structLockedBase.png differ diff --git a/docs/RuntimeAPI/html/structProfTrigger-members.html b/docs/RuntimeAPI/html/structProfTrigger-members.html new file mode 100644 index 0000000000..7467446c8d --- /dev/null +++ b/docs/RuntimeAPI/html/structProfTrigger-members.html @@ -0,0 +1,106 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
ProfTrigger Member List
+
+
+ +

This is the complete list of members for ProfTrigger, including all inherited members.

+ + + + + + +
add(uint64_t trigger) (defined in ProfTrigger)ProfTriggerinline
MAX_TRIGGER (defined in ProfTrigger)ProfTriggerstatic
nextTrigger() (defined in ProfTrigger)ProfTriggerinline
print(int tid) (defined in ProfTrigger)ProfTriggerinline
sort() (defined in ProfTrigger)ProfTriggerinline
+ + + + diff --git a/docs/RuntimeAPI/html/structProfTrigger.html b/docs/RuntimeAPI/html/structProfTrigger.html new file mode 100644 index 0000000000..a62d6dfb48 --- /dev/null +++ b/docs/RuntimeAPI/html/structProfTrigger.html @@ -0,0 +1,127 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ProfTrigger Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
ProfTrigger Struct Reference
+
+
+ + + + + + + + + + +

+Public Member Functions

+void print (int tid)
 
+uint64_t nextTrigger ()
 
+void add (uint64_t trigger)
 
+void sort ()
 
+ + + +

+Static Public Attributes

+static const uint64_t MAX_TRIGGER = std::numeric_limits<uint64_t>::max()
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/struct____half-members.html b/docs/RuntimeAPI/html/struct____half-members.html new file mode 100644 index 0000000000..5eb5166825 --- /dev/null +++ b/docs/RuntimeAPI/html/struct____half-members.html @@ -0,0 +1,102 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
__half Member List
+
+
+ +

This is the complete list of members for __half, including all inherited members.

+ + +
x (defined in __half)__half
+ + + + diff --git a/docs/RuntimeAPI/html/struct____half.html b/docs/RuntimeAPI/html/struct____half.html new file mode 100644 index 0000000000..73172bbe87 --- /dev/null +++ b/docs/RuntimeAPI/html/struct____half.html @@ -0,0 +1,111 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: __half Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
__half Struct Reference
+
+
+ + + + +

+Public Attributes

+unsigned x: 16
 
+
The documentation for this struct was generated from the following file:
    +
  • /home/rocm/hip/include/hip/hcc_detail/hip_fp16.h
  • +
+
+ + + + diff --git a/docs/RuntimeAPI/html/structchar3-members.html b/docs/RuntimeAPI/html/structchar3-members.html new file mode 100644 index 0000000000..84f58bd6c8 --- /dev/null +++ b/docs/RuntimeAPI/html/structchar3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
char3 Member List
+
+
+ +

This is the complete list of members for char3, including all inherited members.

+ + + + +
x (defined in char3)char3
y (defined in char3)char3
z (defined in char3)char3
+ + + + diff --git a/docs/RuntimeAPI/html/structchar3.html b/docs/RuntimeAPI/html/structchar3.html new file mode 100644 index 0000000000..e6b4a355e6 --- /dev/null +++ b/docs/RuntimeAPI/html/structchar3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: char3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
char3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+signed char x
 
+signed char y
 
+signed char z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structchar4-members.html b/docs/RuntimeAPI/html/structchar4-members.html new file mode 100644 index 0000000000..37df9b2b9b --- /dev/null +++ b/docs/RuntimeAPI/html/structchar4-members.html @@ -0,0 +1,106 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
char4 Member List
+
+
+ +

This is the complete list of members for char4, including all inherited members.

+ + + + + + +
val (defined in char4)char4
w (defined in char4)char4
x (defined in char4)char4
y (defined in char4)char4
z (defined in char4)char4
+ + + + diff --git a/docs/RuntimeAPI/html/structchar4.html b/docs/RuntimeAPI/html/structchar4.html new file mode 100644 index 0000000000..ea4aff9f7a --- /dev/null +++ b/docs/RuntimeAPI/html/structchar4.html @@ -0,0 +1,127 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: char4 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
char4 Struct Reference
+
+
+ + + + + + + + + + + + + + + +

+Public Attributes

+union {
+   signed char   x
 
+   signed char   y
 
+   signed char   z
 
+   signed char   w
 
+   unsigned int   val
 
}; 
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structdim3-members.html b/docs/RuntimeAPI/html/structdim3-members.html new file mode 100644 index 0000000000..231fa8d0f9 --- /dev/null +++ b/docs/RuntimeAPI/html/structdim3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
dim3 Member List
+
+
+ +

This is the complete list of members for dim3, including all inherited members.

+ + + + +
xdim3
ydim3
zdim3
+ + + + diff --git a/docs/RuntimeAPI/html/structdim3.html b/docs/RuntimeAPI/html/structdim3.html new file mode 100644 index 0000000000..a93484f438 --- /dev/null +++ b/docs/RuntimeAPI/html/structdim3.html @@ -0,0 +1,124 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: dim3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+ +
+ +

#include <hip_runtime_api.h>

+ + + + + + + + + + + +

+Public Attributes

+uint32_t x
 x
 
+uint32_t y
 y
 
+uint32_t z
 z
 
+

Detailed Description

+

Struct for data in 3D

+

The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structdouble1-members.html b/docs/RuntimeAPI/html/structdouble1-members.html new file mode 100644 index 0000000000..39e0794417 --- /dev/null +++ b/docs/RuntimeAPI/html/structdouble1-members.html @@ -0,0 +1,102 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
double1 Member List
+
+
+ +

This is the complete list of members for double1, including all inherited members.

+ + +
x (defined in double1)double1
+ + + + diff --git a/docs/RuntimeAPI/html/structdouble1.html b/docs/RuntimeAPI/html/structdouble1.html new file mode 100644 index 0000000000..2c80f23d2d --- /dev/null +++ b/docs/RuntimeAPI/html/structdouble1.html @@ -0,0 +1,111 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: double1 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
double1 Struct Reference
+
+
+ + + + +

+Public Attributes

+double x
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structdouble3-members.html b/docs/RuntimeAPI/html/structdouble3-members.html new file mode 100644 index 0000000000..5dac28d9cf --- /dev/null +++ b/docs/RuntimeAPI/html/structdouble3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
double3 Member List
+
+
+ +

This is the complete list of members for double3, including all inherited members.

+ + + + +
x (defined in double3)double3
y (defined in double3)double3
z (defined in double3)double3
+ + + + diff --git a/docs/RuntimeAPI/html/structdouble3.html b/docs/RuntimeAPI/html/structdouble3.html new file mode 100644 index 0000000000..6ad945ab3b --- /dev/null +++ b/docs/RuntimeAPI/html/structdouble3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: double3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
double3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+double x
 
+double y
 
+double z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structfloat1-members.html b/docs/RuntimeAPI/html/structfloat1-members.html new file mode 100644 index 0000000000..ac66596d17 --- /dev/null +++ b/docs/RuntimeAPI/html/structfloat1-members.html @@ -0,0 +1,102 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
float1 Member List
+
+
+ +

This is the complete list of members for float1, including all inherited members.

+ + +
x (defined in float1)float1
+ + + + diff --git a/docs/RuntimeAPI/html/structfloat1.html b/docs/RuntimeAPI/html/structfloat1.html new file mode 100644 index 0000000000..33b66ec49f --- /dev/null +++ b/docs/RuntimeAPI/html/structfloat1.html @@ -0,0 +1,111 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: float1 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
float1 Struct Reference
+
+
+ + + + +

+Public Attributes

+float x
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structfloat3-members.html b/docs/RuntimeAPI/html/structfloat3-members.html new file mode 100644 index 0000000000..20edd625b0 --- /dev/null +++ b/docs/RuntimeAPI/html/structfloat3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
float3 Member List
+
+
+ +

This is the complete list of members for float3, including all inherited members.

+ + + + +
x (defined in float3)float3
y (defined in float3)float3
z (defined in float3)float3
+ + + + diff --git a/docs/RuntimeAPI/html/structfloat3.html b/docs/RuntimeAPI/html/structfloat3.html new file mode 100644 index 0000000000..edcb5b0788 --- /dev/null +++ b/docs/RuntimeAPI/html/structfloat3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: float3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
float3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+float x
 
+float y
 
+float z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structhipArray-members.html b/docs/RuntimeAPI/html/structhipArray-members.html new file mode 100644 index 0000000000..395a5a1ada --- /dev/null +++ b/docs/RuntimeAPI/html/structhipArray-members.html @@ -0,0 +1,105 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
hipArray Member List
+
+
+ +

This is the complete list of members for hipArray, including all inherited members.

+ + + + + +
data (defined in hipArray)hipArray
f (defined in hipArray)hipArray
height (defined in hipArray)hipArray
width (defined in hipArray)hipArray
+ + + + diff --git a/docs/RuntimeAPI/html/structhipArray.html b/docs/RuntimeAPI/html/structhipArray.html new file mode 100644 index 0000000000..feba6e7a2d --- /dev/null +++ b/docs/RuntimeAPI/html/structhipArray.html @@ -0,0 +1,120 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: hipArray Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
hipArray Struct Reference
+
+
+ + + + + + + + + + +

+Public Attributes

+unsigned int width
 
+unsigned int height
 
+hipChannelFormatKind f
 
+void * data
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structhipChannelFormatDesc-members.html b/docs/RuntimeAPI/html/structhipChannelFormatDesc-members.html new file mode 100644 index 0000000000..276fe8b79b --- /dev/null +++ b/docs/RuntimeAPI/html/structhipChannelFormatDesc-members.html @@ -0,0 +1,106 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
hipChannelFormatDesc Member List
+
+
+ +

This is the complete list of members for hipChannelFormatDesc, including all inherited members.

+ + + + + + +
f (defined in hipChannelFormatDesc)hipChannelFormatDesc
w (defined in hipChannelFormatDesc)hipChannelFormatDesc
x (defined in hipChannelFormatDesc)hipChannelFormatDesc
y (defined in hipChannelFormatDesc)hipChannelFormatDesc
z (defined in hipChannelFormatDesc)hipChannelFormatDesc
+ + + + diff --git a/docs/RuntimeAPI/html/structhipChannelFormatDesc.html b/docs/RuntimeAPI/html/structhipChannelFormatDesc.html new file mode 100644 index 0000000000..98bf065336 --- /dev/null +++ b/docs/RuntimeAPI/html/structhipChannelFormatDesc.html @@ -0,0 +1,123 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: hipChannelFormatDesc Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
hipChannelFormatDesc Struct Reference
+
+
+ + + + + + + + + + + + +

+Public Attributes

+int x
 
+int y
 
+int z
 
+int w
 
+hipChannelFormatKind f
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structhipDeviceArch__t-members.html b/docs/RuntimeAPI/html/structhipDeviceArch__t-members.html new file mode 100644 index 0000000000..0810a6ca90 --- /dev/null +++ b/docs/RuntimeAPI/html/structhipDeviceArch__t-members.html @@ -0,0 +1,118 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
hipDeviceArch_t Member List
+
+ + + + + diff --git a/docs/RuntimeAPI/html/structhipDeviceArch__t.html b/docs/RuntimeAPI/html/structhipDeviceArch__t.html new file mode 100644 index 0000000000..7c66d3cbc9 --- /dev/null +++ b/docs/RuntimeAPI/html/structhipDeviceArch__t.html @@ -0,0 +1,176 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: hipDeviceArch_t Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
hipDeviceArch_t Struct Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+unsigned hasGlobalInt32Atomics: 1
 32-bit integer atomics for global memory.
 
+unsigned hasGlobalFloatAtomicExch: 1
 32-bit float atomic exch for global memory.
 
+unsigned hasSharedInt32Atomics: 1
 32-bit integer atomics for shared memory.
 
+unsigned hasSharedFloatAtomicExch: 1
 32-bit float atomic exch for shared memory.
 
+unsigned hasFloatAtomicAdd: 1
 32-bit float atomic add in global and shared memory.
 
+unsigned hasGlobalInt64Atomics: 1
 64-bit integer atomics for global memory.
 
+unsigned hasSharedInt64Atomics: 1
 64-bit integer atomics for shared memory.
 
+unsigned hasDoubles: 1
 Double-precision floating point.
 
+unsigned hasWarpVote: 1
 Warp vote instructions (__any, __all).
 
+unsigned hasWarpBallot: 1
 Warp ballot instructions (__ballot).
 
+unsigned hasWarpShuffle: 1
 Warp shuffle operations. (__shfl_*).
 
+unsigned hasFunnelShift: 1
 Funnel two words into one with shift&mask caps.
 
+unsigned hasThreadFenceSystem: 1
 __threadfence_system.
 
+unsigned hasSyncThreadsExt: 1
 __syncthreads_count, syncthreads_and, syncthreads_or.
 
+unsigned hasSurfaceFuncs: 1
 Surface functions.
 
+unsigned has3dGrid: 1
 Grid and group dims are 3D (rather than 2D).
 
+unsigned hasDynamicParallelism: 1
 Dynamic parallelism.
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structhipDeviceProp__t-members.html b/docs/RuntimeAPI/html/structhipDeviceProp__t-members.html new file mode 100644 index 0000000000..1bdc39fa96 --- /dev/null +++ b/docs/RuntimeAPI/html/structhipDeviceProp__t-members.html @@ -0,0 +1,127 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
hipDeviceProp_t Member List
+
+ + + + + diff --git a/docs/RuntimeAPI/html/structhipDeviceProp__t.html b/docs/RuntimeAPI/html/structhipDeviceProp__t.html new file mode 100644 index 0000000000..c3ec16cdec --- /dev/null +++ b/docs/RuntimeAPI/html/structhipDeviceProp__t.html @@ -0,0 +1,216 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: hipDeviceProp_t Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
hipDeviceProp_t Struct Reference
+
+
+ +

#include <hip_runtime_api.h>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+char name [256]
 Device name.
 
+size_t totalGlobalMem
 Size of global memory region (in bytes).
 
+size_t sharedMemPerBlock
 Size of shared memory region (in bytes).
 
+int regsPerBlock
 Registers per block.
 
+int warpSize
 Warp size.
 
+int maxThreadsPerBlock
 Max work items per work group or workgroup max size.
 
+int maxThreadsDim [3]
 Max number of threads in each dimension (XYZ) of a block.
 
+int maxGridSize [3]
 Max grid dimensions (XYZ).
 
+int clockRate
 Max clock frequency of the multiProcessors in khz.
 
+int memoryClockRate
 Max global memory clock frequency in khz.
 
+int memoryBusWidth
 Global memory bus width in bits.
 
+size_t totalConstMem
 Size of shared memory region (in bytes).
 
+int major
 Major compute capability. On HCC, this is an approximation and features may differ from CUDA CC. See the arch feature flags for portable ways to query feature caps.
 
+int minor
 Minor compute capability. On HCC, this is an approximation and features may differ from CUDA CC. See the arch feature flags for portable ways to query feature caps.
 
+int multiProcessorCount
 Number of multi-processors (compute units).
 
+int l2CacheSize
 L2 cache size.
 
+int maxThreadsPerMultiProcessor
 Maximum resident threads per multi-processor.
 
+int computeMode
 Compute mode.
 
+int clockInstructionRate
 Frequency in khz of the timer used by the device-side "clock*" instructions. New for HIP.
 
+hipDeviceArch_t arch
 Architectural feature flags. New for HIP.
 
+int concurrentKernels
 Device can possibly execute multiple kernels concurrently.
 
+int pciBusID
 PCI Bus ID.
 
+int pciDeviceID
 PCI Device ID.
 
+size_t maxSharedMemoryPerMultiProcessor
 Maximum Shared Memory Per Multiprocessor.
 
+int isMultiGpuBoard
 1 if device is on a multi-GPU board, 0 if not.
 
+int canMapHostMemory
 Check whether HIP can map host memory.
 
+

Detailed Description

+

hipDeviceProp

+

The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structhipDoubleComplex-members.html b/docs/RuntimeAPI/html/structhipDoubleComplex-members.html new file mode 100644 index 0000000000..8af91a6348 --- /dev/null +++ b/docs/RuntimeAPI/html/structhipDoubleComplex-members.html @@ -0,0 +1,103 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
hipDoubleComplex Member List
+
+
+ +

This is the complete list of members for hipDoubleComplex, including all inherited members.

+ + + +
x (defined in hipDoubleComplex)hipDoubleComplex
y (defined in hipDoubleComplex)hipDoubleComplex
+ + + + diff --git a/docs/RuntimeAPI/html/structhipDoubleComplex.html b/docs/RuntimeAPI/html/structhipDoubleComplex.html new file mode 100644 index 0000000000..96315b9ef2 --- /dev/null +++ b/docs/RuntimeAPI/html/structhipDoubleComplex.html @@ -0,0 +1,114 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: hipDoubleComplex Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
hipDoubleComplex Struct Reference
+
+
+ + + + + + +

+Public Attributes

+double x
 
+double y
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structhipFloatComplex-members.html b/docs/RuntimeAPI/html/structhipFloatComplex-members.html new file mode 100644 index 0000000000..1cf90de8f3 --- /dev/null +++ b/docs/RuntimeAPI/html/structhipFloatComplex-members.html @@ -0,0 +1,103 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
hipFloatComplex Member List
+
+
+ +

This is the complete list of members for hipFloatComplex, including all inherited members.

+ + + +
x (defined in hipFloatComplex)hipFloatComplex
y (defined in hipFloatComplex)hipFloatComplex
+ + + + diff --git a/docs/RuntimeAPI/html/structhipFloatComplex.html b/docs/RuntimeAPI/html/structhipFloatComplex.html new file mode 100644 index 0000000000..14bb04fc9f --- /dev/null +++ b/docs/RuntimeAPI/html/structhipFloatComplex.html @@ -0,0 +1,114 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: hipFloatComplex Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
hipFloatComplex Struct Reference
+
+
+ + + + + + +

+Public Attributes

+float x
 
+float y
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structhipPointerAttribute__t-members.html b/docs/RuntimeAPI/html/structhipPointerAttribute__t-members.html new file mode 100644 index 0000000000..b600b4fa3f --- /dev/null +++ b/docs/RuntimeAPI/html/structhipPointerAttribute__t-members.html @@ -0,0 +1,107 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
hipPointerAttribute_t Member List
+
+
+ +

This is the complete list of members for hipPointerAttribute_t, including all inherited members.

+ + + + + + + +
allocationFlags (defined in hipPointerAttribute_t)hipPointerAttribute_t
device (defined in hipPointerAttribute_t)hipPointerAttribute_t
devicePointer (defined in hipPointerAttribute_t)hipPointerAttribute_t
hostPointer (defined in hipPointerAttribute_t)hipPointerAttribute_t
isManaged (defined in hipPointerAttribute_t)hipPointerAttribute_t
memoryType (defined in hipPointerAttribute_t)hipPointerAttribute_t
+ + + + diff --git a/docs/RuntimeAPI/html/structhipPointerAttribute__t.html b/docs/RuntimeAPI/html/structhipPointerAttribute__t.html new file mode 100644 index 0000000000..6c6fb0d5b9 --- /dev/null +++ b/docs/RuntimeAPI/html/structhipPointerAttribute__t.html @@ -0,0 +1,130 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: hipPointerAttribute_t Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
hipPointerAttribute_t Struct Reference
+
+
+ +

#include <hip_runtime_api.h>

+ + + + + + + + + + + + + + +

+Public Attributes

+enum hipMemoryType memoryType
 
+int device
 
+void * devicePointer
 
+void * hostPointer
 
+int isManaged
 
+unsigned allocationFlags
 
+

Detailed Description

+

Pointer attributes

+

The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structihipEvent__t-members.html b/docs/RuntimeAPI/html/structihipEvent__t-members.html new file mode 100644 index 0000000000..0ed940c02e --- /dev/null +++ b/docs/RuntimeAPI/html/structihipEvent__t-members.html @@ -0,0 +1,106 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
ihipEvent_t Member List
+
+
+ +

This is the complete list of members for ihipEvent_t, including all inherited members.

+ + + + + + +
_flags (defined in ihipEvent_t)ihipEvent_t
_marker (defined in ihipEvent_t)ihipEvent_t
_state (defined in ihipEvent_t)ihipEvent_t
_stream (defined in ihipEvent_t)ihipEvent_t
_timestamp (defined in ihipEvent_t)ihipEvent_t
+ + + + diff --git a/docs/RuntimeAPI/html/structihipEvent__t.html b/docs/RuntimeAPI/html/structihipEvent__t.html new file mode 100644 index 0000000000..7092e3dc44 --- /dev/null +++ b/docs/RuntimeAPI/html/structihipEvent__t.html @@ -0,0 +1,123 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ihipEvent_t Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
ihipEvent_t Struct Reference
+
+
+ + + + + + + + + + + + +

+Public Attributes

+hipEventStatus_t _state
 
+hipStream_t _stream
 
+unsigned _flags
 
+hc::completion_future _marker
 
+uint64_t _timestamp
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structint3-members.html b/docs/RuntimeAPI/html/structint3-members.html new file mode 100644 index 0000000000..fc82310b40 --- /dev/null +++ b/docs/RuntimeAPI/html/structint3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
int3 Member List
+
+
+ +

This is the complete list of members for int3, including all inherited members.

+ + + + +
x (defined in int3)int3
y (defined in int3)int3
z (defined in int3)int3
+ + + + diff --git a/docs/RuntimeAPI/html/structint3.html b/docs/RuntimeAPI/html/structint3.html new file mode 100644 index 0000000000..57b6e81773 --- /dev/null +++ b/docs/RuntimeAPI/html/structint3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: int3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
int3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+signed int x
 
+signed int y
 
+signed int z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structlong3-members.html b/docs/RuntimeAPI/html/structlong3-members.html new file mode 100644 index 0000000000..001b1cf117 --- /dev/null +++ b/docs/RuntimeAPI/html/structlong3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
long3 Member List
+
+
+ +

This is the complete list of members for long3, including all inherited members.

+ + + + +
x (defined in long3)long3
y (defined in long3)long3
z (defined in long3)long3
+ + + + diff --git a/docs/RuntimeAPI/html/structlong3.html b/docs/RuntimeAPI/html/structlong3.html new file mode 100644 index 0000000000..15f9630874 --- /dev/null +++ b/docs/RuntimeAPI/html/structlong3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: long3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
long3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+long int x
 
+long int y
 
+long int z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structlonglong3-members.html b/docs/RuntimeAPI/html/structlonglong3-members.html new file mode 100644 index 0000000000..d9b512c754 --- /dev/null +++ b/docs/RuntimeAPI/html/structlonglong3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
longlong3 Member List
+
+
+ +

This is the complete list of members for longlong3, including all inherited members.

+ + + + +
x (defined in longlong3)longlong3
y (defined in longlong3)longlong3
z (defined in longlong3)longlong3
+ + + + diff --git a/docs/RuntimeAPI/html/structlonglong3.html b/docs/RuntimeAPI/html/structlonglong3.html new file mode 100644 index 0000000000..2167c4f811 --- /dev/null +++ b/docs/RuntimeAPI/html/structlonglong3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: longlong3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
longlong3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+long long int x
 
+long long int y
 
+long long int z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structshort3-members.html b/docs/RuntimeAPI/html/structshort3-members.html new file mode 100644 index 0000000000..e16bf8b5c3 --- /dev/null +++ b/docs/RuntimeAPI/html/structshort3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
short3 Member List
+
+
+ +

This is the complete list of members for short3, including all inherited members.

+ + + + +
x (defined in short3)short3
y (defined in short3)short3
z (defined in short3)short3
+ + + + diff --git a/docs/RuntimeAPI/html/structshort3.html b/docs/RuntimeAPI/html/structshort3.html new file mode 100644 index 0000000000..f5075a1305 --- /dev/null +++ b/docs/RuntimeAPI/html/structshort3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: short3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
short3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+signed short x
 
+signed short y
 
+signed short z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structstruct__float-members.html b/docs/RuntimeAPI/html/structstruct__float-members.html new file mode 100644 index 0000000000..5a3aab1708 --- /dev/null +++ b/docs/RuntimeAPI/html/structstruct__float-members.html @@ -0,0 +1,103 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
struct_float Member List
+
+
+ +

This is the complete list of members for struct_float, including all inherited members.

+ + + +
f (defined in struct_float)struct_float
u (defined in struct_float)struct_float
+ + + + diff --git a/docs/RuntimeAPI/html/structstruct__float.html b/docs/RuntimeAPI/html/structstruct__float.html new file mode 100644 index 0000000000..438a7868d7 --- /dev/null +++ b/docs/RuntimeAPI/html/structstruct__float.html @@ -0,0 +1,118 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: struct_float Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
struct_float Struct Reference
+
+
+ + + + + + + + + +

+Public Attributes

+union {
+   float   f
 
+   unsigned   u
 
}; 
 
+
The documentation for this struct was generated from the following file:
    +
  • /home/rocm/hip/src/hip_fp16.cpp
  • +
+
+ + + + diff --git a/docs/RuntimeAPI/html/structtextureReference-members.html b/docs/RuntimeAPI/html/structtextureReference-members.html new file mode 100644 index 0000000000..09b0950f1f --- /dev/null +++ b/docs/RuntimeAPI/html/structtextureReference-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
textureReference Member List
+
+
+ +

This is the complete list of members for textureReference, including all inherited members.

+ + + + +
channelDesc (defined in textureReference)textureReference
filterMode (defined in textureReference)textureReference
normalized (defined in textureReference)textureReference
+ + + + diff --git a/docs/RuntimeAPI/html/structtextureReference.html b/docs/RuntimeAPI/html/structtextureReference.html new file mode 100644 index 0000000000..23cdba0ce7 --- /dev/null +++ b/docs/RuntimeAPI/html/structtextureReference.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: textureReference Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
textureReference Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+hipTextureFilterMode filterMode
 
+bool normalized
 
+hipChannelFormatDesc channelDesc
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structuchar3-members.html b/docs/RuntimeAPI/html/structuchar3-members.html new file mode 100644 index 0000000000..8a71a7aad5 --- /dev/null +++ b/docs/RuntimeAPI/html/structuchar3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
uchar3 Member List
+
+
+ +

This is the complete list of members for uchar3, including all inherited members.

+ + + + +
x (defined in uchar3)uchar3
y (defined in uchar3)uchar3
z (defined in uchar3)uchar3
+ + + + diff --git a/docs/RuntimeAPI/html/structuchar3.html b/docs/RuntimeAPI/html/structuchar3.html new file mode 100644 index 0000000000..dce48635b2 --- /dev/null +++ b/docs/RuntimeAPI/html/structuchar3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: uchar3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
uchar3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+unsigned char x
 
+unsigned char y
 
+unsigned char z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structuchar4-members.html b/docs/RuntimeAPI/html/structuchar4-members.html new file mode 100644 index 0000000000..1dba273012 --- /dev/null +++ b/docs/RuntimeAPI/html/structuchar4-members.html @@ -0,0 +1,106 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
uchar4 Member List
+
+
+ +

This is the complete list of members for uchar4, including all inherited members.

+ + + + + + +
val (defined in uchar4)uchar4
w (defined in uchar4)uchar4
x (defined in uchar4)uchar4
y (defined in uchar4)uchar4
z (defined in uchar4)uchar4
+ + + + diff --git a/docs/RuntimeAPI/html/structuchar4.html b/docs/RuntimeAPI/html/structuchar4.html new file mode 100644 index 0000000000..c4a79303d6 --- /dev/null +++ b/docs/RuntimeAPI/html/structuchar4.html @@ -0,0 +1,127 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: uchar4 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
uchar4 Struct Reference
+
+
+ + + + + + + + + + + + + + + +

+Public Attributes

+union {
+   unsigned char   x
 
+   unsigned char   y
 
+   unsigned char   z
 
+   unsigned char   w
 
+   unsigned int   val
 
}; 
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structuint3-members.html b/docs/RuntimeAPI/html/structuint3-members.html new file mode 100644 index 0000000000..1d2bc9ffd4 --- /dev/null +++ b/docs/RuntimeAPI/html/structuint3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
uint3 Member List
+
+
+ +

This is the complete list of members for uint3, including all inherited members.

+ + + + +
x (defined in uint3)uint3
y (defined in uint3)uint3
z (defined in uint3)uint3
+ + + + diff --git a/docs/RuntimeAPI/html/structuint3.html b/docs/RuntimeAPI/html/structuint3.html new file mode 100644 index 0000000000..efbd9f5194 --- /dev/null +++ b/docs/RuntimeAPI/html/structuint3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: uint3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
uint3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+unsigned int x
 
+unsigned int y
 
+unsigned int z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structulong3-members.html b/docs/RuntimeAPI/html/structulong3-members.html new file mode 100644 index 0000000000..59ae827ac7 --- /dev/null +++ b/docs/RuntimeAPI/html/structulong3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
ulong3 Member List
+
+
+ +

This is the complete list of members for ulong3, including all inherited members.

+ + + + +
x (defined in ulong3)ulong3
y (defined in ulong3)ulong3
z (defined in ulong3)ulong3
+ + + + diff --git a/docs/RuntimeAPI/html/structulong3.html b/docs/RuntimeAPI/html/structulong3.html new file mode 100644 index 0000000000..490a0233a0 --- /dev/null +++ b/docs/RuntimeAPI/html/structulong3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ulong3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
ulong3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+unsigned long x
 
+unsigned long y
 
+unsigned long z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structulonglong3-members.html b/docs/RuntimeAPI/html/structulonglong3-members.html new file mode 100644 index 0000000000..99328e4c6c --- /dev/null +++ b/docs/RuntimeAPI/html/structulonglong3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
ulonglong3 Member List
+
+
+ +

This is the complete list of members for ulonglong3, including all inherited members.

+ + + + +
x (defined in ulonglong3)ulonglong3
y (defined in ulonglong3)ulonglong3
z (defined in ulonglong3)ulonglong3
+ + + + diff --git a/docs/RuntimeAPI/html/structulonglong3.html b/docs/RuntimeAPI/html/structulonglong3.html new file mode 100644 index 0000000000..5906b64824 --- /dev/null +++ b/docs/RuntimeAPI/html/structulonglong3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ulonglong3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
ulonglong3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+unsigned long long int x
 
+unsigned long long int y
 
+unsigned long long int z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/structushort3-members.html b/docs/RuntimeAPI/html/structushort3-members.html new file mode 100644 index 0000000000..05559529c4 --- /dev/null +++ b/docs/RuntimeAPI/html/structushort3-members.html @@ -0,0 +1,104 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: Member List + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+
+
ushort3 Member List
+
+
+ +

This is the complete list of members for ushort3, including all inherited members.

+ + + + +
x (defined in ushort3)ushort3
y (defined in ushort3)ushort3
z (defined in ushort3)ushort3
+ + + + diff --git a/docs/RuntimeAPI/html/structushort3.html b/docs/RuntimeAPI/html/structushort3.html new file mode 100644 index 0000000000..2a24ed4382 --- /dev/null +++ b/docs/RuntimeAPI/html/structushort3.html @@ -0,0 +1,117 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: ushort3 Struct Reference + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ +
+
+ +
+
ushort3 Struct Reference
+
+
+ + + + + + + + +

+Public Attributes

+unsigned short x
 
+unsigned short y
 
+unsigned short z
 
+
The documentation for this struct was generated from the following file: +
+ + + + diff --git a/docs/RuntimeAPI/html/sync_off.png b/docs/RuntimeAPI/html/sync_off.png new file mode 100644 index 0000000000..3b443fc628 Binary files /dev/null and b/docs/RuntimeAPI/html/sync_off.png differ diff --git a/docs/RuntimeAPI/html/sync_on.png b/docs/RuntimeAPI/html/sync_on.png new file mode 100644 index 0000000000..e08320fb64 Binary files /dev/null and b/docs/RuntimeAPI/html/sync_on.png differ diff --git a/docs/RuntimeAPI/html/tab_a.png b/docs/RuntimeAPI/html/tab_a.png new file mode 100644 index 0000000000..3b725c41c5 Binary files /dev/null and b/docs/RuntimeAPI/html/tab_a.png differ diff --git a/docs/RuntimeAPI/html/tab_b.png b/docs/RuntimeAPI/html/tab_b.png new file mode 100644 index 0000000000..e2b4a8638c Binary files /dev/null and b/docs/RuntimeAPI/html/tab_b.png differ diff --git a/docs/RuntimeAPI/html/tab_h.png b/docs/RuntimeAPI/html/tab_h.png new file mode 100644 index 0000000000..fd5cb70548 Binary files /dev/null and b/docs/RuntimeAPI/html/tab_h.png differ diff --git a/docs/RuntimeAPI/html/tab_s.png b/docs/RuntimeAPI/html/tab_s.png new file mode 100644 index 0000000000..ab478c95b6 Binary files /dev/null and b/docs/RuntimeAPI/html/tab_s.png differ diff --git a/docs/RuntimeAPI/html/tabs.css b/docs/RuntimeAPI/html/tabs.css new file mode 100644 index 0000000000..9cf578f23a --- /dev/null +++ b/docs/RuntimeAPI/html/tabs.css @@ -0,0 +1,60 @@ +.tabs, .tabs2, .tabs3 { + background-image: url('tab_b.png'); + width: 100%; + z-index: 101; + font-size: 13px; + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; +} + +.tabs2 { + font-size: 10px; +} +.tabs3 { + font-size: 9px; +} + +.tablist { + margin: 0; + padding: 0; + display: table; +} + +.tablist li { + float: left; + display: table-cell; + background-image: url('tab_b.png'); + line-height: 36px; + list-style: none; +} + +.tablist a { + display: block; + padding: 0 20px; + font-weight: bold; + background-image:url('tab_s.png'); + background-repeat:no-repeat; + background-position:right; + color: #283A5D; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + text-decoration: none; + outline: none; +} + +.tabs3 .tablist a { + padding: 0 10px; +} + +.tablist a:hover { + background-image: url('tab_h.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); + text-decoration: none; +} + +.tablist li.current a { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} diff --git a/docs/RuntimeAPI/html/trace__helper_8h_source.html b/docs/RuntimeAPI/html/trace__helper_8h_source.html new file mode 100644 index 0000000000..dcd5ea1eb7 --- /dev/null +++ b/docs/RuntimeAPI/html/trace__helper_8h_source.html @@ -0,0 +1,238 @@ + + + + + + +HIP: Heterogenous-computing Interface for Portability: /home/rocm/hip/src/trace_helper.h Source File + + + + + + + + + +
+
+ + + + + + +
+
HIP: Heterogenous-computing Interface for Portability +
+
+
+ + + + + + + + + +
+ +
+ + +
+
+
+
trace_helper.h
+
+
+
1 /*
+
2 Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
+
3 
+
4 Permission is hereby granted, free of charge, to any person obtaining a copy
+
5 of this software and associated documentation files (the "Software"), to deal
+
6 in the Software without restriction, including without limitation the rights
+
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+
8 copies of the Software, and to permit persons to whom the Software is
+
9 furnished to do so, subject to the following conditions:
+
10 
+
11 The above copyright notice and this permission notice shall be included in
+
12 all copies or substantial portions of the Software.
+
13 
+
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+
20 THE SOFTWARE.
+
21 */
+
22 
+
23 //#pragma once
+
24 
+
25 #ifndef TRACE_HELPER_H
+
26 #define TRACE_HELPER_H
+
27 
+
28 #include <iostream>
+
29 #include <iomanip>
+
30 #include <string>
+
31 
+
32 //---
+
33 // Helper functions to convert HIP function arguments into strings.
+
34 // Handles POD data types as well as enumerations (ie hipMemcpyKind).
+
35 // The implementation uses C++11 variadic templates and template specialization.
+
36 // The hipMemcpyKind example below is a good example that shows how to implement conversion for a new HSA type.
+
37 
+
38 
+
39 // Handy macro to convert an enumeration to a stringified version of same:
+
40 #define CASE_STR(x) case x: return #x;
+
41 
+
42 
+
43 // Building block functions:
+
44 template <typename T>
+
45 inline std::string ToHexString(T v)
+
46 {
+
47  std::ostringstream ss;
+
48  ss << "0x" << std::hex << v;
+
49  return ss.str();
+
50 };
+
51 
+
52 
+
53 //---
+
54 // Template overloads for ToString to handle specific types
+
55 
+
56 // This is the default which works for most types:
+
57 template <typename T>
+
58 inline std::string ToString(T v)
+
59 {
+
60  std::ostringstream ss;
+
61  ss << v;
+
62  return ss.str();
+
63 };
+
64 
+
65 
+
66 // hipEvent_t specialization. TODO - maybe add an event ID for debug?
+
67 template <>
+
68 inline std::string ToString(hipEvent_t v)
+
69 {
+
70  std::ostringstream ss;
+
71  ss << v;
+
72  return ss.str();
+
73 };
+
74 
+
75 
+
76 
+
77 // hipStream_t
+
78 template <>
+
79 inline std::string ToString(hipStream_t v)
+
80 {
+
81  std::ostringstream ss;
+
82  if (v == NULL) {
+
83  ss << "stream:<null>";
+
84  } else {
+
85  ss << *v;
+
86  }
+
87 
+
88  return ss.str();
+
89 };
+
90 
+
91 // hipMemcpyKind specialization
+
92 template <>
+
93 inline std::string ToString(hipMemcpyKind v)
+
94 {
+
95  switch(v) {
+
96  CASE_STR(hipMemcpyHostToHost);
+
97  CASE_STR(hipMemcpyHostToDevice);
+
98  CASE_STR(hipMemcpyDeviceToHost);
+
99  CASE_STR(hipMemcpyDeviceToDevice);
+
100  CASE_STR(hipMemcpyDefault);
+
101  default : return ToHexString(v);
+
102  };
+
103 };
+
104 
+
105 
+
106 template <>
+
107 inline std::string ToString(hipError_t v)
+
108 {
+
109  return ihipErrorString(v);
+
110 };
+
111 
+
112 
+
113 // Catch empty arguments case
+
114 inline std::string ToString()
+
115 {
+
116  return ("");
+
117 }
+
118 
+
119 
+
120 //---
+
121 // C++11 variadic template - peels off first argument, converts to string, and calls itself again to peel the next arg.
+
122 // Strings are automatically separated by comma+space.
+
123 template <typename T, typename... Args>
+
124 inline std::string ToString(T first, Args... args)
+
125 {
+
126  return ToString(first) + ", " + ToString(args...) ;
+
127 }
+
128 
+
129 #endif
+
Host-to-Device Copy.
Definition: hip_runtime_api.h:167
+
Device-to-Host Copy.
Definition: hip_runtime_api.h:168
+
hipError_t
Definition: hip_runtime_api.h:152
+
hipMemcpyKind
Definition: hip_runtime_api.h:165
+
Device-to-Device Copy.
Definition: hip_runtime_api.h:169
+
Definition: hip_hcc.h:558
+
Runtime will automatically determine copy-kind based on virtual addresses.
Definition: hip_runtime_api.h:170
+
Definition: hip_hcc.h:463
+
Host-to-Host Copy.
Definition: hip_runtime_api.h:166
+
+ + + +