HIP: Heterogenous-computing Interface for Portability
|
Contains definitions of APIs for HIP runtime. More...
#include <hip/hcc_detail/hip_common.h>
#include <math.h>
#include <string.h>
#include <stddef.h>
#include "grid_launch.h"
#include "hc_printf.hpp"
#include <hip/hcc_detail/hip_memory.h>
Go to the source code of this file.
Classes | |
struct | hip_impl::GroupId |
struct | hip_impl::GroupSize |
struct | hip_impl::NumGroups |
struct | hip_impl::WorkitemId |
struct | Coordinates< F > |
struct | Coordinates< F >::X |
struct | Coordinates< F >::Y |
struct | Coordinates< F >::Z |
Macros | |
#define | __HIP_ENABLE_DEVICE_MALLOC__ 0 |
#define | hipLaunchParm grid_launch_parm |
#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 |
Functions | |
__device__ std::uint32_t | operator* (Coordinates< hip_impl::NumGroups >::X, Coordinates< hip_impl::GroupSize >::X) noexcept |
__device__ std::uint32_t | operator* (Coordinates< hip_impl::GroupSize >::X, Coordinates< hip_impl::NumGroups >::X) noexcept |
__device__ std::uint32_t | operator* (Coordinates< hip_impl::NumGroups >::Y, Coordinates< hip_impl::GroupSize >::Y) noexcept |
__device__ std::uint32_t | operator* (Coordinates< hip_impl::GroupSize >::Y, Coordinates< hip_impl::NumGroups >::Y) noexcept |
__device__ std::uint32_t | operator* (Coordinates< hip_impl::NumGroups >::Z, Coordinates< hip_impl::GroupSize >::Z) noexcept |
__device__ std::uint32_t | operator* (Coordinates< hip_impl::GroupSize >::Z, Coordinates< hip_impl::NumGroups >::Z) noexcept |
Contains definitions of APIs for HIP runtime.