Brick Library 0.1
Performance-portable stencil datalayout & codegen
Macros
brick-cuda.h File Reference

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

#include <cuda_runtime.h>
#include "brick-gpu.h"
Include dependency graph for brick-cuda.h:

Go to the source code of this file.

Macros

#define gpuMalloc(p, s)   cudaMalloc(p, s)
 
#define gpuMemcpy(d, p, s, k)   cudaMemcpy(d, p, s, k)
 
#define gpuMemcpyKind   cudaMemcpyKind
 
#define gpuMemcpyHostToDevice   cudaMemcpyHostToDevice
 
#define gpuMemcpyDeviceToHost   cudaMemcpyDeviceToHost
 
#define gpuFree(p)   cudaFree(p)
 
#define gpuGetErrorString(e)   cudaGetErrorString(e)
 
#define gpuSuccess   cudaSuccess
 
#define gpuDeviceSynchronize()   cudaDeviceSynchronize()
 
#define gpuMemcpyToSymbol(p, d, s)   cudaMemcpyToSymbol(p, d, s)
 
#define gpuDeviceSetCacheConfig(c)   cudaDeviceSetCacheConfig(c)
 
#define gpuFuncCachePreferL1   cudaFuncCachePreferL1
 
#define gpuExecKernel(f, b, t, a...)   f<<<b,t>>>(a)
 

Detailed Description

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

Macro Definition Documentation

◆ gpuDeviceSetCacheConfig

#define gpuDeviceSetCacheConfig (   c)    cudaDeviceSetCacheConfig(c)

◆ gpuDeviceSynchronize

#define gpuDeviceSynchronize ( )    cudaDeviceSynchronize()

◆ gpuExecKernel

#define gpuExecKernel (   f,
  b,
  t,
  a... 
)    f<<<b,t>>>(a)

◆ gpuFree

#define gpuFree (   p)    cudaFree(p)

◆ gpuFuncCachePreferL1

#define gpuFuncCachePreferL1   cudaFuncCachePreferL1

◆ gpuGetErrorString

#define gpuGetErrorString (   e)    cudaGetErrorString(e)

◆ gpuMalloc

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

◆ gpuMemcpy

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

◆ gpuMemcpyDeviceToHost

#define gpuMemcpyDeviceToHost   cudaMemcpyDeviceToHost

◆ gpuMemcpyHostToDevice

#define gpuMemcpyHostToDevice   cudaMemcpyHostToDevice

◆ gpuMemcpyKind

#define gpuMemcpyKind   cudaMemcpyKind

◆ gpuMemcpyToSymbol

#define gpuMemcpyToSymbol (   p,
  d,
 
)    cudaMemcpyToSymbol(p, d, s)

◆ gpuSuccess

#define gpuSuccess   cudaSuccess