From f27790a883ee86d89d04090e58fa6eb410d00143 Mon Sep 17 00:00:00 2001 From: John Mellor-Crummey Date: Sun, 12 Nov 2017 18:33:09 -0600 Subject: [PATCH] switch from Cilk to OpenMP. Fix #if that control programming model selection. --- cmake/Modules/FindCilk.cmake | 4 ++-- parseAPI/src/Parser.C | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmake/Modules/FindCilk.cmake b/cmake/Modules/FindCilk.cmake index 6bc621e488..84c2a41454 100644 --- a/cmake/Modules/FindCilk.cmake +++ b/cmake/Modules/FindCilk.cmake @@ -7,8 +7,8 @@ # CILK_DEFINITIONS - Compiler switches required for using cilk # -#set(CILK_DEFINITIONS -fopenmp) -set(CILK_DEFINITIONS -fcilkplus) +set(CILK_DEFINITIONS -fopenmp) +#set(CILK_DEFINITIONS -fcilkplus) #find_library (CILK_LIBRARIES diff --git a/parseAPI/src/Parser.C b/parseAPI/src/Parser.C index ec84805de2..25d1665acd 100644 --- a/parseAPI/src/Parser.C +++ b/parseAPI/src/Parser.C @@ -58,7 +58,8 @@ #include #include -#define USE_CILK 1 +#define USE_CILK 0 +#define USE_OPENMP 1 using namespace std; using namespace Dyninst; @@ -620,7 +621,7 @@ Parser::ProcessFrames } } } -#elsif USE_CILK +#elif USE_CILK { int nthreads = __cilkrts_get_nworkers(); for (;;) { @@ -805,7 +806,7 @@ void Parser::cleanup_frames() { delete pf; } } -#elsif USE_CILK +#elif USE_CILK cilk_for(unsigned i=0; i < frames.size(); ++i) { ParseFrame *pf = frames[i]; if (pf) {