|
|
void | error_check (hsa_status_t hsa_error_code, int line_num, std::string str) |
| |
|
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 | ihipInit () |
| |
|
INLINE bool | ihipIsValidDevice (unsigned deviceIndex) |
| |
|
INLINE ihipDevice_t * | ihipGetTlsDefaultDevice () |
| |
|
INLINE ihipDevice_t * | ihipGetDevice (int deviceId) |
| |
|
void | ihipWaitNullStream (ihipDevice_t *device) |
| |
|
hipStream_t | ihipSyncAndResolveStream (hipStream_t stream) |
| |
|
bool | ihipCheckCommandSwitchSync (hipStream_t stream, ihipCommand_t new_command, hc::completion_future *marker) |
| |
|
hc::accelerator_view * | ihipLaunchKernel (hipStream_t stream) |
| |
| hipError_t | hipGetDevice (int *device) |
| | 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 | hipDeviceSetCacheConfig (hipFuncCache cacheConfig) |
| | Set L1/Shared cache partition. More...
|
| |
| hipError_t | hipDeviceGetCacheConfig (hipFuncCache *cacheConfig) |
| | Set Cache configuration for a specific function. More...
|
| |
| hipError_t | hipFuncSetCacheConfig (hipFuncCache cacheConfig) |
| | Set Cache configuration for a specific function. More...
|
| |
| hipError_t | hipDeviceSetSharedMemConfig (hipSharedMemConfig config) |
| | Set Shared memory bank configuration. More...
|
| |
| hipError_t | hipDeviceGetSharedMemConfig (hipSharedMemConfig *pConfig) |
| | Get Shared memory bank configuration. More...
|
| |
| hipError_t | hipSetDevice (int device) |
| | Set default device to be used for subsequent hip API calls from this thread. More...
|
| |
| hipError_t | hipDeviceSynchronize (void) |
| | Blocks until the default device has completed all preceding requested tasks. More...
|
| |
| hipError_t | hipDeviceReset (void) |
| | Destroy all resources and reset all state on the default device in the current process. More...
|
| |
| hipError_t | hipDeviceGetAttribute (int *pi, hipDeviceAttribute_t attr, int device) |
| | Query device attribute. More...
|
| |
| hipError_t | hipDeviceGetProperties (hipDeviceProp_t *props, int device) |
| | Returns device properties. More...
|
| |
| hipError_t | hipGetLastError () |
| | Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess. More...
|
| |
|
hipError_t | hipPeakAtLastError () |
| |
| const char * | hipGetErrorName (hipError_t hip_error) |
| | Return name of the specified error code in text form. More...
|
| |
| const char * | hipGetErrorString (hipError_t hip_error) |
| | Return handy text string message to explain the error which occurred. More...
|
| |
| hipError_t | hipStreamCreateWithFlags (hipStream_t *stream, unsigned int flags) |
| | Create an asynchronous stream. 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 | hipStreamSynchronize (hipStream_t stream) |
| | Wait for all commands in stream to complete. More...
|
| |
| hipError_t | hipStreamDestroy (hipStream_t stream) |
| | Destroys the specified stream. More...
|
| |
| hipError_t | hipStreamGetFlags (hipStream_t stream, unsigned int *flags) |
| | Return flags associated with this stream. More...
|
| |
| hipError_t | hipEventCreateWithFlags (hipEvent_t *event, unsigned flags) |
| | Create an event with the specified flags. More...
|
| |
| 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...
|
| |
|
void | ihipSetTs (hipEvent_t e) |
| |
| 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...
|
| |
|
template<typename T > |
| hc::completion_future | ihipMemcpyKernel (hipStream_t stream, T *c, const T *a, size_t sizeBytes) |
| |
|
template<typename T > |
| hc::completion_future | ihipMemsetKernel (hipStream_t stream, T *ptr, T val, size_t sizeBytes) |
| |
| hipError_t | hipMalloc (void **ptr, size_t sizeBytes) |
| | Allocate memory on the default accelerator. More...
|
| |
| hipError_t | hipMallocHost (void **ptr, size_t sizeBytes) |
| | Allocate pinned host memory. More...
|
| |
| hipError_t | hipMemcpyToSymbol (const char *symbolName, const void *src, size_t count, 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 | hipMemcpy (void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind) |
| | Copy data from src to dst. 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 | 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 | hipMemset (void *dst, int value, size_t sizeBytes) |
| | Copy data from src to dst asynchronously. More...
|
| |
|
hipError_t | hipMemGetInfo (size_t *free, size_t *total) |
| |
| hipError_t | hipFree (void *ptr) |
| | Free memory allocated by the hcc hip memory allocation API. This API performs an implicit hipDeviceSynchronize() call. More...
|
| |
| hipError_t | hipFreeHost (void *ptr) |
| | Free memory allocated by the hcc hip host memory allocation API. More...
|
| |
| hipError_t | hipDeviceCanAccessPeer (int *canAccessPeer, int device, int peerDevice) |
| | Determine if a device can access a peer's memory. More...
|
| |
| hipError_t | hipDeviceDisablePeerAccess (int peerDevice) |
| | Disables registering memory on peerDevice for direct access from the current device. More...
|
| |
| hipError_t | hipDeviceEnablePeerAccess (int peerDevice, unsigned int flags) |
| | Enables registering memory on peerDevice for direct access from the current device. More...
|
| |
| hipError_t | hipMemcpyPeer (void *dst, int dstDevice, const void *src, int srcDevice, 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 | hipDriverGetVersion (int *driverVersion) |
| | Returns the approximate HIP driver version. More...
|
| |
| hipError_t | hipHccGetAccelerator (int deviceId, hc::accelerator *acc) |
| | Return hc::accelerator associated with the specified deviceId. More...
|
| |
| hipError_t | hipHccGetAcceleratorView (hipStream_t stream, hc::accelerator_view **av) |
| | Return hc::accelerator_view associated with the specified stream. More...
|
| |
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.