Skip to content

Commit

Permalink
switch from Cilk to OpenMP. Fix #if that control programming model se…
Browse files Browse the repository at this point in the history
…lection.
  • Loading branch information
jmellorcrummey committed Nov 13, 2017
1 parent 9d64ee6 commit f27790a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/FindCilk.cmake
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions parseAPI/src/Parser.C
Expand Up @@ -58,7 +58,8 @@
#include <boost/timer/timer.hpp>
#include <fstream>

#define USE_CILK 1
#define USE_CILK 0
#define USE_OPENMP 1

using namespace std;
using namespace Dyninst;
Expand Down Expand Up @@ -620,7 +621,7 @@ Parser::ProcessFrames
}
}
}
#elsif USE_CILK
#elif USE_CILK
{
int nthreads = __cilkrts_get_nworkers();
for (;;) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f27790a

Please sign in to comment.