00001
00021 #ifndef GALOIS_GALOIS_H
00022 #define GALOIS_GALOIS_H
00023 #include "Galois/Runtime/ParallelWork.h"
00024
00025 namespace Galois {
00026
00032 unsigned int setMaxThreads(unsigned int num);
00033
00034 template<typename WLTy, typename IterTy, typename Function>
00035 void for_each(IterTy b, IterTy e, Function f, const char* loopname = 0) {
00036 GaloisRuntime::for_each_impl<WLTy>(b, e, f, loopname);
00037 }
00038
00039 template<typename IterTy, typename Function>
00040 void for_each(IterTy b, IterTy e, Function f, const char* loopname = 0) {
00041 typedef GaloisRuntime::WorkList::ChunkedFIFO<256> WLTy;
00042 for_each<WLTy, IterTy, Function>(b, e, f, loopname);
00043 }
00044
00045 }
00046 #endif