From 8fee9836193c6321dd2d43ee30a6c2a773d4098e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 15 Nov 2010 05:32:49 +0000 Subject: patch from Dan Eicher to support intel C++ compiler for CMake on *nix. --- source/blender/nodes/intern/CMP_nodes/CMP_defocus.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_defocus.c') diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c b/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c index 5c25bffa5d9..a18ae13b438 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c @@ -378,7 +378,11 @@ static void defocus_blur(bNode *node, CompBuf *new, CompBuf *img, CompBuf *zbuf, //------------------------------------------------------------------ // main loop +#ifdef __INTEL_COMPILER /* icc doesn't like the compound statement -- internal error: 0_1506 */ + #pragma omp parallel for private(y) if(!nqd->preview) schedule(guided) +#else #pragma omp parallel for private(y) if(!nqd->preview && img->y*img->x > 16384) schedule(guided) +#endif for (y=0; yy; y++) { unsigned int p, p4, zp, cp, cp4; float *ctcol, u, v, ct_crad, cR2=0; -- cgit v1.2.3