Brick Library 0.1
Performance-portable stencil datalayout & codegen
Loading...
Searching...
No Matches
Macros
brick-hip.h File Reference

For using bricklib with HIP. Directs the functions used in brick-gpu.h to corresponding HIP functions. More...

#include <hip/hip_runtime.h>
#include "brick-gpu.h"
Include dependency graph for brick-hip.h:

Go to the source code of this file.

Macros

#define gpuMalloc(p, s)   hipMalloc(p, s)
 
#define gpuMemcpy(d, p, s, k)   hipMemcpy(d, p, s, k)
 
#define gpuFree(p)   hipFree(p)
 
#define gpuGetErrorString(e)   hipGetErrorString(e)
 
#define gpuDeviceSynchronize()   hipDeviceSynchronize()
 
#define gpuMemcpyToSymbol(p, d, s)   hipMemcpyToSymbol(p, d, s, hipMemcpyHostToDevice)
 
#define gpuDeviceSetCacheConfig(c)   hipDeviceSetCacheConfig(c)
 
#define gpuFuncCachePreferL1   hipFuncCachePreferL1
 
#define gpuSuccess   hipSuccess
 
#define gpuMemcpyKind   hipMemcpyKind
 
#define gpuMemcpyHostToDevice   hipMemcpyHostToDevice
 
#define gpuMemcpyDeviceToHost   hipMemcpyDeviceToHost
 
#define gpuExecKernel(f, b, t, a...)   hipLaunchKernelGGL(f, b, t, 0, 0, a)
 
#define blockIdx_x   hipBlockIdx_x
 
#define blockIdx_y   hipBlockIdx_y
 
#define blockIdx_z   hipBlockIdx_z
 
#define threadIdx_x   hipThreadIdx_x
 
#define threadIdx_y   hipThreadIdx_y
 
#define threadIdx_z   hipThreadIdx_z
 

Detailed Description

For using bricklib with HIP. Directs the functions used in brick-gpu.h to corresponding HIP functions.

Macro Definition Documentation

◆ blockIdx_x

#define blockIdx_x   hipBlockIdx_x

◆ blockIdx_y

#define blockIdx_y   hipBlockIdx_y

◆ blockIdx_z

#define blockIdx_z   hipBlockIdx_z

◆ gpuDeviceSetCacheConfig

#define gpuDeviceSetCacheConfig (   c)    hipDeviceSetCacheConfig(c)

◆ gpuDeviceSynchronize

#define gpuDeviceSynchronize ( )    hipDeviceSynchronize()

◆ gpuExecKernel

#define gpuExecKernel (   f,
  b,
  t,
  a... 
)    hipLaunchKernelGGL(f, b, t, 0, 0, a)

◆ gpuFree

#define gpuFree (   p)    hipFree(p)

◆ gpuFuncCachePreferL1

#define gpuFuncCachePreferL1   hipFuncCachePreferL1

◆ gpuGetErrorString

#define gpuGetErrorString (   e)    hipGetErrorString(e)

◆ gpuMalloc

#define gpuMalloc (   p,
 
)    hipMalloc(p, s)

◆ gpuMemcpy

#define gpuMemcpy (   d,
  p,
  s,
 
)    hipMemcpy(d, p, s, k)

◆ gpuMemcpyDeviceToHost

#define gpuMemcpyDeviceToHost   hipMemcpyDeviceToHost

◆ gpuMemcpyHostToDevice

#define gpuMemcpyHostToDevice   hipMemcpyHostToDevice

◆ gpuMemcpyKind

#define gpuMemcpyKind   hipMemcpyKind

◆ gpuMemcpyToSymbol

#define gpuMemcpyToSymbol (   p,
  d,
 
)    hipMemcpyToSymbol(p, d, s, hipMemcpyHostToDevice)

◆ gpuSuccess

#define gpuSuccess   hipSuccess

◆ threadIdx_x

#define threadIdx_x   hipThreadIdx_x

◆ threadIdx_y

#define threadIdx_y   hipThreadIdx_y

◆ threadIdx_z

#define threadIdx_z   hipThreadIdx_z