You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Missing Helper from Refactor and Cleanup Logic (#1265)
* Add get_spack_variants back
* Simplify class and checks. Only add spack variant if defined. Only define variant if used by experiment
* Simplify checks since error will be caught by spec logic
# Experiment specifying model in add_package_spec that it doesn't implement
272
-
ifmodelnotinself.programming_models:
273
-
invalid_models.append(model)
274
-
# MPI is always valid if with another programming model, even if no mpionly
275
-
if"mpi"ininvalid_modelsandlen(valid_models) >1:
276
-
invalid_models.remove("mpi")
277
263
# Case where there are no experiments specified in experiment.py
278
264
iflen(self.programming_models) ==0:
279
265
raiseBenchparkError(
280
266
f"Please specify a programming model in your {self.name}/experiment.py (e.g. ProgrammingModelType.Mpionly, ProgrammingModelType.Openmp, ProgrammingModelType.Cuda, ProgrammingModelType.Rocm). See other experiments for examples."
281
267
)
282
-
eliflen(invalid_models) >0:
283
-
print(self.spec)
268
+
# Check if experiment is trying to run in MpiOnly mode without being an ProgrammingModelType.Mpionly experiment
0 commit comments