Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

206 vega #209

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ readme = "README.md"
authors = [
{ name = "Christophe Prud'homme", email = "[email protected]" },
{ name = "Vincent Chabannes", email = "[email protected]" },
{ name = "Javier Cladellas", email = "[email protected]" },
]
requires-python = ">=3.7"
classifiers = [
Expand All @@ -27,6 +28,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion src/feelpp/benchmarking/reframe/config/configSchemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def extractProtocol(self):
@field_validator("name", mode="after")
@classmethod
def checkImage(cls,v,info):
if info.data["protocol"] == "local":
if info.data["protocol"] == "local" and not ("{{" in v or "}}" in v) :
if not os.path.exists(v):
if info.context and info.context.get("dry_run", False):
print(f"Dry Run: Skipping image check for {v}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,13 @@
],
'sched_options': { 'use_nodes_option': True },
}
],
'env_vars':[
["OMP_NUM_THREADS",1]
]
}
],
'environments': [
{
'name':'default',
'modules': [],
'modules': ["openmpi/4/gcc/latest"],
'target_systems':['discoverer:cn']
}
]
Expand Down
3 changes: 0 additions & 3 deletions src/feelpp/benchmarking/reframe/config/machineConfigs/gaya.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
}
],
},
],
'env_vars':[
["OMP_NUM_THREADS",1]
]
}
],
Expand Down
47 changes: 47 additions & 0 deletions src/feelpp/benchmarking/reframe/config/machineConfigs/vega.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import socket

hostname = socket.gethostname()
print("Hostname:", hostname)

site_configuration = {
'systems':[
{
'name': 'vega',
'descr': 'Vega',
'hostnames': [f'{hostname}'],
'modules_system': 'lmod',
'partitions': [
{
'name': 'cpu',
'scheduler': 'slurm',
'launcher': 'srun',
# 'max_jobs': 8,
'access': [f"--partition=cpu"],
'environs': ['default'],
'processor': {
'num_cpus': 128
},
'devices': [
{
'type': 'cpu',
'num_devices': 960
}
],
'container_platforms':[
{
'type': 'Singularity'
}
],
'sched_options': { 'use_nodes_option': True },
}
]
}
],
'environments': [
{
'name':'default',
'modules': ["OpenMPI/4.1.5-GCC-12.3.0"],
'target_systems':['vega:cpu']
}
]
}
14 changes: 14 additions & 0 deletions src/feelpp/benchmarking/reframe/config/machineConfigs/vega.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -l


echo "==========================="
/ceph/hpc/bin/accountingreport.sh
echo "==========================="

module load Python/3.10.8-GCCcore-12.2.0
export LD_LIBRARY_PATH=/cvmfs/sling.si/modules/el7/software/Python/3.10.8-GCCcore-12.2.0/lib:$LD_LIBRARY_PATH
python3.10 -m venv .venv
echo 'export LD_LIBRARY_PATH=/cvmfs/sling.si/modules/el7/software/Python/3.10.8-GCCcore-12.2.0/lib:$LD_LIBRARY_PATH' >> .venv/bin/activate
source .venv/bin/activate
.venv/bin/python3.10 -m pip install --upgrade pip
.venv/bin/python3.10 -m pip install -r requirements.txt
2 changes: 1 addition & 1 deletion src/feelpp/benchmarking/reframe/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def copyParametrizedDescriptions(self,dir_path,name):
"""

if self.additional_files_config and self.additional_files_config.parameterized_descriptions_filepath:
file_extension = self.additional_files_config.description_filepath.split(".")[-1] if "." in self.additional_files_config.description_filepath else None
file_extension = self.additional_files_config.parameterized_descriptions_filepath.split(".")[-1] if "." in self.additional_files_config.parameterized_descriptions_filepath else None

outdir = os.path.join(dir_path,"partials")
if not os.path.exists(outdir):
Expand Down
6 changes: 5 additions & 1 deletion src/feelpp/benchmarking/report/atomicReports/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def buildMasterDf(self,runs):
"platform":testcase["check_vars"]["platform"]
}
for dim, v in testcase["check_params"].items():
tmp_dct[dim] = v
if isinstance(v,dict):
for subdim, v2 in v.items():
tmp_dct[f"{dim}.{subdim}"] = v2
else:
tmp_dct[dim] = v
processed_data.append(tmp_dct)
continue

Expand Down
2 changes: 2 additions & 0 deletions src/feelpp/benchmarking/scripts/hpcSystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def dispatch(machine_name):
return HpcSystem( runner = "self-gaya", machine = "gaya", python_version = "3.10", user_name = "prudhomm", submit = "cli" )
elif machine_name == "discoverer":
return HpcSystem( runner = "self-discoverer", machine = "discoverer", partition = "truePartition", python_version = "3.6", user_name = "vchabannes", submit = "cli" )
elif machine_name == "vega":
return HpcSystem( runner= "self-vega", machine="vega", python_version = "3", user_name = "euvincentc", submit ="cli" )
else:
raise ValueError(f"HPC resource {machine_name} not found...")

Expand Down
Loading