Updated the task system in the example directory to support:

Cilk (cilk_for), OpenMP (#pragma omp parallel for), TBB(tbb::task_group and tbb::parallel_for)
as well as a new pthreads-based model that fully subscribes the machine (good for KNC).
With major contributions from Ingo Wald and James Brodman.
This commit is contained in:
Jean-Luc Duprat
2012-08-28 11:13:12 -07:00
parent 21719df6fd
commit 09bb36f58c
2 changed files with 539 additions and 46 deletions

3
ispc.h
View File

@@ -51,6 +51,9 @@
#elif defined(__APPLE__)
#define ISPC_IS_APPLE
#endif
#if defined(__KNC__)
#define ISPC_IS_KNC
#endif
#include <stdint.h>
#include <stdlib.h>