diff --git a/var/ramble/repos/builtin/base_applications/hpcg/base_application.py b/var/ramble/repos/builtin/base_applications/hpcg/base_application.py index db8f446e2..07feb943c 100644 --- a/var/ramble/repos/builtin/base_applications/hpcg/base_application.py +++ b/var/ramble/repos/builtin/base_applications/hpcg/base_application.py @@ -7,7 +7,6 @@ # except according to those terms. -import os from ramble.appkit import * @@ -112,17 +111,9 @@ class Hpcg(ExecutableApplication): units="", ) - def _make_experiments(self, workspace, app_inst=None): - super()._make_experiments(workspace) - - input_path = os.path.join( - self.expander.expand_var_name("experiment_run_dir"), "hpcg.dat" - ) - - with open(input_path, "w+") as f: - f.write("HPCG benchmark input file\n") - f.write( - "Sandia National Laboratories; University of Tennessee, Knoxville\n" - ) - f.write(self.expander.expand_var_name("matrix_size") + "\n") - f.write(self.expander.expand_var_name("iterations") + "\n") + register_template( + name="hpcg_dat", + src_name="hpcg.dat.tpl", + dest_name="hpcg.dat", + define_var=False, + ) diff --git a/var/ramble/repos/builtin/base_applications/hpcg/hpcg.dat.tpl b/var/ramble/repos/builtin/base_applications/hpcg/hpcg.dat.tpl new file mode 100644 index 000000000..c8f7689fb --- /dev/null +++ b/var/ramble/repos/builtin/base_applications/hpcg/hpcg.dat.tpl @@ -0,0 +1,4 @@ +HPCG benchmark input file +Sandia National Laboratories; University of Tennessee, Knoxville +{matrix_size} +{iterations}