File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11
11
import logging
12
12
import os
13
13
import shutil
14
+ import subprocess
14
15
import sys
15
16
import time
16
17
from dataclasses import dataclass
30
31
31
32
from discopop_library .LineMapping .initialize import initialize_line_mapping
32
33
from discopop_library .LineMapping .delete import delete_line_mapping
34
+ from discopop_library .PatchGenerator .PatchGeneratorArguments import PatchGeneratorArguments
33
35
from discopop_library .PathManagement .PathManagement import get_path , load_file_mapping
34
36
from discopop_library .discopop_optimizer .Microbench .ExtrapInterpolatedMicrobench import (
35
37
ExtrapInterpolatedMicrobench ,
@@ -270,6 +272,12 @@ def run(arguments: ExplorerArguments) -> None:
270
272
271
273
print ("Time taken for pattern detection: {0}" .format (end - start ))
272
274
275
+ # create applicable patch files from the found suggestions
276
+ logger .info ("executing discopop_patch_generator" )
277
+ out = subprocess .check_output (["discopop_patch_generator" ], cwd = arguments .project_path ).decode ("utf-8" )
278
+ logger .debug ("\t Out:\n " + out )
279
+ logger .info ("\t Done." )
280
+
273
281
# demonstration of Microbenchmark possibilities
274
282
if arguments .microbench_file is not None :
275
283
microbench_file = get_path (
You can’t perform that action at this time.
0 commit comments