cheshirekow  v0.1.0
fakecuda.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
3  *
4  * This file is part of mpblocks.
5  *
6  * mpblocks is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * mpblocks is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with mpblocks. If not, see <http://www.gnu.org/licenses/>.
18  */
27 #ifndef MPBLOCKS_CUDA_FAKECUDA_H_
28 #define MPBLOCKS_CUDA_FAKECUDA_H_
29 
30 
31 #ifndef __CUDACC__
32 
33 #define __global__
34 #define __device__
35 #define __constant__
36 #define __shared__
37 #define __host__
38 #define __forceinline__
39 
40 void __syncthreads();
41 
42 struct Dim3
43 {
44  int x,y,z;
45 };
46 
47 extern Dim3 threadIdx;
48 extern Dim3 blockIdx;
49 extern Dim3 blockDim;
50 extern Dim3 gridDim;
51 
52 #endif
53 
54 
55 
56 #endif // FAKECUDA_H_
int x
Definition: fakecuda.h:44
Definition: fakecuda.h:42
Dim3 gridDim
int y
Definition: fakecuda.h:44
Dim3 threadIdx
int z
Definition: fakecuda.h:44
Dim3 blockIdx
Dim3 blockDim
void __syncthreads()