Skip to content

Commit

Permalink
compile fix for ancient tbb versions without task_arean support
Browse files Browse the repository at this point in the history
  • Loading branch information
cbenthin committed Nov 21, 2016
1 parent ad2afaa commit 4714fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernels/bvh/bvh_builder_twolevel.cpp
Expand Up @@ -137,7 +137,7 @@ namespace embree
/* compute PrimRefs */
prims.resize(refs.size());

#if defined(TASKING_TBB) && defined(__AVX512F__)
#if defined(TASKING_TBB) && defined(__AVX512F__) && USE_TASK_ARENA
tbb::task_arena limited(32);
limited.execute([&]
#endif
Expand Down Expand Up @@ -186,7 +186,7 @@ namespace embree
bvh->set(root,LBBox3fa(pinfo.geomBounds),numPrimitives);
}
}
#if defined(TASKING_TBB) && defined(__AVX512F__)
#if defined(TASKING_TBB) && defined(__AVX512F__) && USE_TASK_ARENA
);
#endif

Expand Down

0 comments on commit 4714fd1

Please sign in to comment.