This commit is contained in:
evghenii
2013-11-13 21:17:21 +01:00
parent 42cfe97427
commit c81821ed28
2 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ int main(int argc, char *argv[]) {
minISPC = std::min(minISPC, dt); minISPC = std::min(minISPC, dt);
} }
printf("[mandelbrot ispc+tasks]:\t[%.3f] million cycles\n", minISPC); fprintf(stderr,"[mandelbrot ispc+tasks]:\t[%.3f] million cycles\n", minISPC);
writePPM(buf, width, height, "mandelbrot-ispc.ppm"); writePPM(buf, width, height, "mandelbrot-ispc.ppm");

View File

@@ -96,8 +96,8 @@ mandelbrot_ispc(uniform float x0, uniform float y0,
uniform int maxIterations, uniform int output[]) { uniform int maxIterations, uniform int output[]) {
uniform float dx = (x1 - x0) / width; uniform float dx = (x1 - x0) / width;
uniform float dy = (y1 - y0) / height; uniform float dy = (y1 - y0) / height;
const uniform int xspan = 32; /* make sure it is big enough to avoid false-sharing */ const uniform int xspan = 64; /* make sure it is big enough to avoid false-sharing */
const uniform int yspan = 4; const uniform int yspan = 8;
#if 1 #if 1