Brick Library 0.1
Performance-portable stencil datalayout & codegen
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)
 

Detailed Description

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

Macro Definition Documentation

◆ 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