HIP: Heterogenous-computing Interface for Portability
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
hip_runtime.h File Reference

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

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

Go to the source code of this file.

Macros

#define CUDA_SUCCESS   hipSuccess
 
#define hipLaunchParm   grid_launch_parm
 
#define __launch_bounds__(requiredMaxThreadsPerBlock, minBlocksPerMultiprocessor)
 
#define clock_t   long long int
 
#define hipThreadIdx_x   (amp_get_local_id(2))
 
#define hipThreadIdx_y   (amp_get_local_id(1))
 
#define hipThreadIdx_z   (amp_get_local_id(0))
 
#define hipBlockIdx_x   (hc_get_group_id(2))
 
#define hipBlockIdx_y   (hc_get_group_id(1))
 
#define hipBlockIdx_z   (hc_get_group_id(0))
 
#define hipBlockDim_x   (amp_get_local_size(2))
 
#define hipBlockDim_y   (amp_get_local_size(1))
 
#define hipBlockDim_z   (amp_get_local_size(0))
 
#define hipGridDim_x   (hc_get_num_groups(2))
 
#define hipGridDim_y   (hc_get_num_groups(1))
 
#define hipGridDim_z   (hc_get_num_groups(0))
 
#define __syncthreads()   hc_barrier(CLK_LOCAL_MEM_FENCE)
 
#define HIP_KERNEL_NAME(...)   __VA_ARGS__
 

Functions

__device__ long long int clock64 ()
 
__device__ clock_t clock ()
 

Variables

int HIP_TRACE_API
 
const int warpSize
 

Detailed Description

Contains definitions of APIs for HIP runtime.

Macro Definition Documentation

#define hipThreadIdx_x   (amp_get_local_id(2))

Kernel launching