Skip to content

Commit

Permalink
fixing issues to make it mostly work with gcc compilers instead of icpc
Browse files Browse the repository at this point in the history
  • Loading branch information
yunmingzhang17 committed Aug 26, 2019
1 parent ee1eaaf commit 25bf6cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autotune/graphit_autotuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ def manipulator(self):
manipulator.add_parameter(
EnumParameter('direction',
['SparsePush','DensePull', 'SparsePush-DensePull', 'DensePush-SparsePush']))


#'edge-aware-dynamic-vertex-parallel' not supported with the latest g++ cilk implementation
if self.enable_parallel_tuning:
manipulator.add_parameter(EnumParameter('parallelization',['dynamic-vertex-parallel','edge-aware-dynamic-vertex-parallel']))
manipulator.add_parameter(EnumParameter('parallelization',['dynamic-vertex-parallel']))
else:
manipulator.add_parameter(EnumParameter('parallelization', ['serial']))

Expand Down Expand Up @@ -202,7 +203,7 @@ def compile(self, cfg, id):
compile_cpp_cmd = serial_compiler + ' -std=gnu++1y -I ../src/runtime_lib/ -O3 test.cpp -o test'
else:
# if parallel icpc compiler is supported and needed
compile_cpp_cmd = par_compiler + ' -std=gnu++1y -DCILK -I ../src/runtime_lib/ -O3 test.cpp -o test'
compile_cpp_cmd = par_compiler + ' -std=gnu++1y -DCILK -fcilkplus -I ../src/runtime_lib/ -O3 test.cpp -o test'
else:
#add the additional flags for NUMA
compile_cpp_cmd = 'g++ -std=gnu++1y -DOPENMP -lnuma -DNUMA -fopenmp -I ../src/runtime_lib/ -O3 test.cpp -o test'
Expand Down

0 comments on commit 25bf6cd

Please sign in to comment.