Beispiel #1
0
 def run(conv, problemType, solution=Solutions.defaultSolution(), problemFunc=None, problemLevel=-1, dataType='s'):
     if problemFunc == None:
         problemFunc = YamlBuilder.ProblemSizes
     if problemLevel==-1:
         problemLevel = request.config.getoption("--problem-level")
     config = YamlBuilder.ConvolutionContraction(conv, problemType, solution, dataType, problemFunc, True, problemLevel)
     configFile = file_with_test_name(".contraction.yaml")
     print("Generate_YAML output:", configFile)
     config.write(configFile)
     return configFile
Beispiel #2
0
 def run(conv, problemType, dataType='s'):
     config = YamlBuilder.ConvolutionContraction(conv, problemType, dataType)
     configFile = file_with_test_name(".contraction.yaml")
     config.write(configFile)
     return configFile