|
HIP: Heterogenous-computing Interface for Portability
|
#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 <hc.hpp>#include <hc_am.hpp>#include "hip_runtime.h"#include "hcc_detail/hip_hcc.h"#include "hsa_ext_amd.h"#include "hcc_detail/trace_helper.h"Macros | |
| #define | HIP_HCC |
| #define | DeviceErrorCheck(x) if (x != HSA_STATUS_SUCCESS) { return hipErrorInvalidDevice; } |
| #define | ErrorCheck(x) error_check(x, __LINE__, __FILE__) |
| #define | READ_ENV_I(_build, _ENV_VAR, _ENV_VAR2, _description) |
Functions | |
| const char * | ihipErrorString (hipError_t hip_error) |
| bool | ihipIsValidDevice (unsigned deviceIndex) |
| 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 () |
| ihipDevice_t * | ihipGetTlsDefaultDevice () |
| ihipDevice_t * | ihipGetDevice (int deviceId) |
| hipStream_t | ihipSyncAndResolveStream (hipStream_t stream) |
| hipStream_t | ihipPreLaunchKernel (hipStream_t stream, hc::accelerator_view **av) |
| void | ihipPostLaunchKernel (hipStream_t stream, hc::completion_future &kernelFuture) |
| void | ihipSetTs (hipEvent_t e) |
| hipError_t | hipHccGetAccelerator (int deviceId, hc::accelerator *acc) |
| hipError_t | hipHccGetAcceleratorView (hipStream_t stream, hc::accelerator_view **av) |
Variables | |
| const int | release = 1 |
| int | HIP_LAUNCH_BLOCKING = 0 |
| int | HIP_PRINT_ENV = 0 |
| int | HIP_TRACE_API = 0 |
| int | HIP_ATP_MARKER = 0 |
| int | HIP_DB = 0 |
| int | HIP_STAGING_SIZE = 64 |
| int | HIP_STAGING_BUFFERS = 2 |
| int | HIP_PININPLACE = 0 |
| int | HIP_STREAM_SIGNALS = 2 |
| int | HIP_VISIBLE_DEVICES = 0 |
| int | HIP_DISABLE_HW_KERNEL_DEP = 0 |
| int | HIP_DISABLE_HW_COPY_DEP = 0 |
| thread_local int | tls_defaultDevice = 0 |
| thread_local hipError_t | tls_lastHipError = hipSuccess |
| std::once_flag | hip_initialized |
| ihipDevice_t * | g_devices |
| bool | g_visible_device = false |
| unsigned | g_deviceCnt |
| std::vector< int > | g_hip_visible_devices |
| hsa_agent_t | g_cpu_agent |
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.
| #define READ_ENV_I | ( | _build, | |
| _ENV_VAR, | |||
| _ENV_VAR2, | |||
| _description | |||
| ) |
| hipError_t hipHccGetAccelerator | ( | int | deviceId, |
| hc::accelerator * | acc | ||
| ) |
| hipError_t hipHccGetAcceleratorView | ( | hipStream_t | stream, |
| hc::accelerator_view ** | av | ||
| ) |
1.8.6