Skip to content

Commit

Permalink
Merge branch 'master' into 181-handle-report-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierCladellas committed Dec 13, 2024
2 parents 6b4247a + 6df3d44 commit 236d194
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions config/toolbox_heat/thermal_bridges_case_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"--case.discretization {{parameters.discretization.value}}",
"--heat.json.patch='{\"op\": \"replace\",\"path\": \"/Meshes/heat/Import/filename\",\"value\": \"{{platforms.{{machine.platform}}.input_dir}}/partitioning/case3/{{parameters.meshes.value}}/case3_p{{parameters.nb_tasks.tasks.value}}.json\" }'"
],
"env_variables":{
"OMP_NUM_THREADS":1
},
"outputs": [
{
"filepath": "{{output_directory}}/{{instance}}/{{use_case_name}}/heat.measures/values.csv",
Expand Down
1 change: 1 addition & 0 deletions src/feelpp/benchmarking/reframe/config/configSchemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class ConfigFile(BaseModel):
output_directory:Optional[str] = ""
use_case_name: str
options: List[str]
env_variables:Optional[Dict] = {}
outputs: List[AppOutput]
scalability: Scalability
sanity: Sanity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
'max_jobs': 8,
'access': ['--partition=cn --account=ehpc-dev-2024d05-047 --qos=ehpc-dev-2024d05-047'],
'environs': ['default'],
'prepare_cmds': [
'source /etc/profile.d/modules.sh',
'export MODULEPATH=/opt/software/modulefiles',
'export OMP_NUM_THREADS=1' # Just in case
],
'processor': {
'num_cpus': 128
},
Expand Down
6 changes: 5 additions & 1 deletion src/feelpp/benchmarking/reframe/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ def setupBeforeRun(self,rfm_test,machine_config):
self.setExecutable(rfm_test,machine_config)

def setupAfterInit(self, rfm_test):
pass
self.setEnvVariables()

def setEnvVariables(self):
for env_var_name,env_var_value in self.reader.config.env_variables.items():
os.environ[env_var_name] = env_var_value

def cleanupDirectories(self):
if os.path.exists(self.reader.config.scalability.directory):
Expand Down

0 comments on commit 236d194

Please sign in to comment.