Brick Library 0.1
Performance-portable stencil datalayout & codegen
Loading...
Searching...
No Matches
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)
 
#define blockIdx_x   cudaBlockIdx.x
 
#define blockIdx_y   cudaBlockIdx.y
 
#define blockIdx_z   cudaBlockIdx.z
 
#define threadIdx_x   cudaThreadIdx.x
 
#define threadIdx_y   cudaThreadIdx.y
 
#define threadIdx_z   cudaThreadIdx.z
 

Detailed Description

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

Macro Definition Documentation

◆ blockIdx_x

#define blockIdx_x   cudaBlockIdx.x

◆ blockIdx_y

#define blockIdx_y   cudaBlockIdx.y

◆ blockIdx_z

#define blockIdx_z   cudaBlockIdx.z

◆ 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

◆ threadIdx_x

#define threadIdx_x   cudaThreadIdx.x

◆ threadIdx_y

#define threadIdx_y   cudaThreadIdx.y

◆ threadIdx_z

#define threadIdx_z   cudaThreadIdx.z