From 25bf6cda71894f36b2a91c7fbd6b685ada99b0b0 Mon Sep 17 00:00:00 2001 From: "zhangyunming1990@gmail.com" Date: Mon, 26 Aug 2019 10:45:51 -0400 Subject: [PATCH] fixing issues to make it mostly work with gcc compilers instead of icpc --- autotune/graphit_autotuner.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autotune/graphit_autotuner.py b/autotune/graphit_autotuner.py index 1f894575..a541e061 100644 --- a/autotune/graphit_autotuner.py +++ b/autotune/graphit_autotuner.py @@ -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'])) @@ -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'