parameters: (self, cfg,  id)
return_statement: return self.call_program(compile_cpp_cmd)
docstring: Compile a given configuration in parallel
docstring_summary: Compile a given configuration in parallel
docstring_tokens: Compile a given configuration in parallel
function: def compile(self, cfg,  id):
          """                                                                          
          Compile a given configuration in parallel                                    
          """
  
  
          #compile the schedule file along with the original algorithm file
          compile_graphit_cmd = 'python ' + py_graphitc_file +  ' -a  {algo_file} -f {schedule_file} -i ../include/ -l ../build/lib/libgraphitlib.a  -o test.cpp'.format(algo_file=self.args.algo_file, schedule_file=self.new_schedule_file_name) 
  
          if not self.use_NUMA:
              if not self.enable_parallel_tuning:
                  # if parallel icpc compiler is not needed (only tuning serial schedules)
                  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 -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'
  
          if self.use_eager_update:
              compile_cpp_cmd = 'g++ -std=gnu++1y -DOPENMP -fopenmp -I ../src/runtime_lib/ -O3  test.cpp -o test'
          
  
          print(compile_graphit_cmd)
          print(compile_cpp_cmd)
          try:
              self.call_program(compile_graphit_cmd)
          except:
              print ("fail to compile .gt file")
          return self.call_program(compile_cpp_cmd)
function_tokens: def compile ( self , cfg , id ) : #compile the schedule file along with the original algorithm file compile_graphit_cmd = 'python ' + py_graphitc_file + ' -a  {algo_file} -f {schedule_file} -i ../include/ -l ../build/lib/libgraphitlib.a  -o test.cpp' . format ( algo_file = self . args . algo_file , schedule_file = self . new_schedule_file_name ) if not self . use_NUMA : if not self . enable_parallel_tuning : # if parallel icpc compiler is not needed (only tuning serial schedules) 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 -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' if self . use_eager_update : compile_cpp_cmd = 'g++ -std=gnu++1y -DOPENMP -fopenmp -I ../src/runtime_lib/ -O3  test.cpp -o test' print ( compile_graphit_cmd ) print ( compile_cpp_cmd ) try : self . call_program ( compile_graphit_cmd ) except : print ( "fail to compile .gt file" ) return self . call_program ( compile_cpp_cmd )