added workable .cu files for stencil & mandelbrot

This commit is contained in:
Evghenii
2013-11-08 10:00:49 +01:00
parent cb7cbec0d5
commit 426afc7377
10 changed files with 645 additions and 160 deletions

View File

@@ -1,8 +1,8 @@
#include <stdio.h>
#define blockIndex0 (blockIdx.x)
#define blockIndex0 (blockIdx.x*4 + (threadIdx.x >> 5))
#define blockIndex1 (blockIdx.y)
#define vectorWidth (32)
#define vectorIndex (threadIdx.x & (vectorWidth-1))
#define vectorIndex (threadIdx.x & 31)
int __device__ __forceinline__
mandel(float c_re, float c_im, int count)