@@ -2055,9 +2055,15 @@ def jarPath(self, benchmark):
2055
2055
def dataLocation (self ):
2056
2056
if self .version () == "23.11-MR2-chopin" :
2057
2057
basePath = self .daCapoPath ()
2058
- return os .path .join (basePath , "dacapo-23.11-MR2-chopin" )
2058
+ subdir = "dacapo-23.11-MR2-chopin"
2059
+ if self .minimalArchive ():
2060
+ subdir += "-minimal"
2061
+ return os .path .join (basePath , subdir )
2059
2062
else :
2060
- raise "data location is only supported for version 23.11-MR2-chopin"
2063
+ raise f"data location is not supported for suite version '{ self .version ()} '"
2064
+
2065
+ def minimalArchive (self ):
2066
+ return False
2061
2067
2062
2068
def createCommandLineArgs (self , benchmarks , bmSuiteArgs ):
2063
2069
if benchmarks is None :
@@ -2227,17 +2233,24 @@ def workloadSize(self):
2227
2233
def daCapoClasspathEnvVarName (self ):
2228
2234
return "DACAPO_CP"
2229
2235
2236
+ def minimalArchive (self ):
2237
+ # DaCapo Chopin archive is huge. A stripped version without large and huge sizes exists
2238
+ # See dacapobench/dacapobench issue #345 on GitHub
2239
+ return self .version () in ["23.11-MR2-chopin" ] and self .workloadSize () in ["default" , "tiny" , "small" ]
2240
+
2230
2241
def daCapoLibraryName (self ):
2242
+ library = None
2231
2243
if self .version () == "9.12-bach" : # 2009 release
2232
- return "DACAPO"
2244
+ library = "DACAPO"
2233
2245
elif self .version () == "9.12-MR1-bach" : # 2018 maintenance release (January 2018)
2234
- return "DACAPO_MR1_BACH"
2246
+ library = "DACAPO_MR1_BACH"
2235
2247
elif self .version () == "9.12-MR1-git+2baec49" : # commit from July 2018
2236
- return "DACAPO_MR1_2baec49"
2248
+ library = "DACAPO_MR1_2baec49"
2237
2249
elif self .version () == "23.11-MR2-chopin" :
2238
- return "DACAPO_23.11_MR2_chopin"
2239
- else :
2240
- return None
2250
+ library = "DACAPO_23.11_MR2_chopin"
2251
+ if library and self .minimalArchive ():
2252
+ library += "_minimal"
2253
+ return library
2241
2254
2242
2255
def daCapoIterations (self ):
2243
2256
iterations = _daCapoIterations .copy ()
0 commit comments