HIP: Heterogenous-computing Interface for Portability
Classes | Macros
hip_runtime.h File Reference

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

class  Coordinates< f >
 

Macros

#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
 

Detailed Description

Contains definitions of APIs for HIP runtime.