Brick Library 0.1
Performance-portable stencil datalayout & codegen
brick-cuda.h
Go to the documentation of this file.
1
7#ifndef BRICK_BRICK_CUDA_H
8#define BRICK_BRICK_CUDA_H
9
10#include <cuda_runtime.h>
11
12#define gpuMalloc(p, s) cudaMalloc(p, s)
13#define gpuMemcpy(d, p, s, k) cudaMemcpy(d, p, s, k)
14#define gpuMemcpyKind cudaMemcpyKind
15#define gpuMemcpyHostToDevice cudaMemcpyHostToDevice
16#define gpuMemcpyDeviceToHost cudaMemcpyDeviceToHost
17#define gpuFree(p) cudaFree(p)
18#define gpuGetErrorString(e) cudaGetErrorString(e)
19#define gpuSuccess cudaSuccess
20#define gpuDeviceSynchronize() cudaDeviceSynchronize()
21#define gpuMemcpyToSymbol(p, d, s) cudaMemcpyToSymbol(p, d, s)
22#define gpuDeviceSetCacheConfig(c) cudaDeviceSetCacheConfig(c)
23#define gpuFuncCachePreferL1 cudaFuncCachePreferL1
24#define gpuExecKernel(f, b, t, a...) f<<<b,t>>>(a)
25
26#include "brick-gpu.h"
27
28#endif // BRICK_BRICK_CUDA_H
This file should not be directly included. It defines instructions for using bricklib with a GPU,...