Skip to content

Commit 8099aa8

Browse files
rm old memory field
1 parent c922452 commit 8099aa8

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

config/toolbox_heat/thermal_bridges_case_3.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"output_directory": "{{machine.output_app_dir}}/javier_test/toolboxes/heat/ThermalBridgesENISO10211/Case3",
44
"use_case_name": "ThermalBridgesENISO10211",
55
"timeout":"0-00:10:00",
6-
"memory":"250G",
76
"resources":{
87
"tasks":"{{parameters.resources.tasks.value}}",
98
"tasks_per_node":"{{parameters.resources.tasks_per_node.value}}",
@@ -76,15 +75,15 @@
7675
"zip":[
7776
{
7877
"name":"tasks",
79-
"range":{ "min":128, "max":384, "step":128}
78+
"range":{ "min":128, "max":256, "step":128}
8079
},
8180
{
8281
"name":"tasks_per_node",
83-
"repeat":{"value":128,"count":3}
82+
"repeat":{"value":128,"count":2}
8483
},
8584
{
8685
"name":"exclusive_access",
87-
"repeat":{"value":true,"count":3}
86+
"repeat":{"value":true,"count":2}
8887
}
8988
]
9089
},

src/feelpp/benchmarking/reframe/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def main_cli():
4343
app_reader.updateConfig(machine_reader.processor.flattenDict(machine_reader.config,"machine"))
4444
app_reader.updateConfig() #Update with own field
4545

46-
reframe_cmd = cmd_builder.buildCommand( app_reader.config.timeout, app_reader.config.memory)
46+
reframe_cmd = cmd_builder.buildCommand( app_reader.config.timeout)
4747

4848
exit_code = subprocess.run(reframe_cmd, shell=True)
4949

src/feelpp/benchmarking/reframe/commandBuilder.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,15 @@ def buildExecutionMode(self):
3737
else:
3838
return "-r"
3939

40-
def buildJobOptions(self,timeout,memory):
40+
def buildJobOptions(self,timeout):
4141
#TODO: Generalize (only workf for slurm ?)
4242
options = []
4343
if timeout:
4444
options.append(f"-J time={timeout}")
45-
if memory:
46-
options.append(f"-J mem={memory}")
4745
return " ".join(options)
4846

4947

50-
def buildCommand(self,timeout,memory):
48+
def buildCommand(self,timeout):
5149
assert self.report_folder_path is not None, "Report folder path not set"
5250
cmd = [
5351
'reframe',
@@ -58,7 +56,7 @@ def buildCommand(self,timeout,memory):
5856
f'--exec-policy={self.machine_config.execution_policy}',
5957
f'--prefix={self.machine_config.reframe_base_dir}',
6058
f'--report-file={str(os.path.join(self.report_folder_path,"reframe_report.json"))}',
61-
f"{self.buildJobOptions(timeout,memory)}",
59+
f"{self.buildJobOptions(timeout)}",
6260
f'--perflogdir={os.path.join(self.machine_config.reframe_base_dir,"logs")}',
6361
f'{"-"+"v"*self.parser.args.verbose if self.parser.args.verbose else ""}',
6462
f'{self.buildExecutionMode()}'

src/feelpp/benchmarking/reframe/config/configSchemas.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ def validateResources(self):
101101
class ConfigFile(BaseModel):
102102
executable: str
103103
timeout: str
104-
memory: Optional[str] = None
105104
resources: Resources
106105
platforms:Optional[Dict[str,Platform]] = {"builtin":Platform()}
107106
output_directory:Optional[str] = ""

tests/configtest/test_commandBuilder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ def test_buildExecutionMode(self,cmd_builder,parser):
112112
def test_buildCommand(self,cmd_builder,machine_config,parser):
113113
"""Tests the buildCommand method of the CommandBuilder"""
114114
timeout = "0-00:01:00"
115-
memory = "250G"
116115
executable ="test_executable"
117116
use_case ="test_use_case"
118117

@@ -129,10 +128,9 @@ def test_buildCommand(self,cmd_builder,machine_config,parser):
129128
f"--prefix={machine_config.reframe_base_dir} "
130129
f"--report-file={str(os.path.join(report_folder_path,'reframe_report.json'))} "
131130
f"-J time={timeout} "
132-
f"-J mem={memory} "
133131
f"--perflogdir={os.path.join(machine_config.reframe_base_dir,'logs')} "
134132
)
135133
expected_command += "-" + "v"*parser.args.verbose if parser.args.verbose else ""
136134
expected_command += " --dry-run" if parser.args.dry_run else " -r"
137135

138-
assert expected_command == cmd_builder.buildCommand(timeout,memory)
136+
assert expected_command == cmd_builder.buildCommand(timeout)

0 commit comments

Comments
 (0)