From c81821ed28cc0f7194996ba2968358693f30df53 Mon Sep 17 00:00:00 2001 From: evghenii Date: Wed, 13 Nov 2013 21:17:21 +0100 Subject: [PATCH] +1 --- examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.cpp | 2 +- examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.ispc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.cpp b/examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.cpp index f6741cbd..6cfabf6f 100644 --- a/examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.cpp +++ b/examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.cpp @@ -131,7 +131,7 @@ int main(int argc, char *argv[]) { 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"); diff --git a/examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.ispc b/examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.ispc index aeff4773..83b2f27f 100644 --- a/examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.ispc +++ b/examples_cuda/mandelbrot_tasks3d/mandelbrot_tasks3d.ispc @@ -96,8 +96,8 @@ mandelbrot_ispc(uniform float x0, uniform float y0, uniform int maxIterations, uniform int output[]) { uniform float dx = (x1 - x0) / width; uniform float dy = (y1 - y0) / height; - const uniform int xspan = 32; /* make sure it is big enough to avoid false-sharing */ - const uniform int yspan = 4; + const uniform int xspan = 64; /* make sure it is big enough to avoid false-sharing */ + const uniform int yspan = 8; #if 1