Commit 9220d1f1 authored by Jan Hönig's avatar Jan Hönig
Browse files

Deleted unneeded kerncrouft_coupling classes

parent fbb19e3a
......@@ -6,8 +6,6 @@ from collections import defaultdict
import subprocess
import kerncraft
import kerncraft.kernel
from kerncraft.machinemodel import MachineModel
from kerncraft.models import ECM, Benchmark
from kerncraft.iaca import iaca_analyse_instrumented_binary, iaca_instrumentation
from pystencils.kerncraft_coupling.generate_benchmark import generateBenchmark
from pystencils.astnodes import LoopOverCoordinate, SympyAssignment, ResolvedFieldAccess
......@@ -156,43 +154,6 @@ class KerncraftParameters(DotDict):
self['pointer_increment'] = 'auto'
class Analysis(object):
def __init__(self, ast, kerncraftMachineModel, AnalysisClass, args):
self.ast = ast
if not isinstance(kerncraftMachineModel, MachineModel):
kerncraftMachineModel = MachineModel(kerncraftMachineModel)
self.analysis = AnalysisClass(PyStencilsKerncraftKernel(self.ast, kerncraftMachineModel),
kerncraftMachineModel,
args=args)
self.analysis.analyze()
@property
def results(self):
return self.analysis.results
class EcmAnalysis(Analysis):
def __init__(self, ast, kerncraftMachineModel, cachePredictor='SIM'):
args = KerncraftParameters()
args['cache_predictor'] = cachePredictor
super(EcmAnalysis, self).__init__(ast, kerncraftMachineModel, ECM, args)
def _repr_html(self):
pass
class BenchmarkAnalysis(Analysis):
def __init__(self, ast, kerncraftMachineModel):
super(BenchmarkAnalysis, self).__init__(ast, kerncraftMachineModel, Benchmark, KerncraftParameters())
def _repr_html(self):
pass
# ------------------------------------------- Helper functions ---------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment