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

Merged
merged 25 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f8af9bc
init vega rfm cfg #206
JavierCladellas Dec 20, 2024
d68b8ed
init vega env script #206
JavierCladellas Dec 20, 2024
c2fabb5
add vega #206
JavierCladellas Dec 20, 2024
f66b6e8
tmod4 -> lmod & add openMPI gcc module
JavierCladellas Dec 20, 2024
257f3d8
Use specific python version #206
JavierCladellas Dec 20, 2024
6fd3002
rm env vars from rfm cfg #206
JavierCladellas Dec 20, 2024
2ddd5fc
add openmpi module for discoverer #206
JavierCladellas Dec 20, 2024
d78e405
try using python module #206
JavierCladellas Dec 20, 2024
14262e9
rm comments #206
JavierCladellas Jan 13, 2025
b11dfaf
add python3.12 in classifiers #206
JavierCladellas Jan 13, 2025
6c0c93c
add Javier to authors
JavierCladellas Jan 13, 2025
7df9ca8
echo modules avail #206
JavierCladellas Jan 13, 2025
423af3b
module avail python #206
JavierCladellas Jan 13, 2025
6286d7c
use python 3.10 #206 [ci skip]
JavierCladellas Jan 13, 2025
d093f20
debug #206
JavierCladellas Jan 13, 2025
4efc5e3
explicit python version #206
JavierCladellas Jan 13, 2025
0b6957a
debug python #206
JavierCladellas Jan 13, 2025
c84c10f
try fix #206
JavierCladellas Jan 13, 2025
f496426
fix subparameter in missing vals
JavierCladellas Jan 13, 2025
715018f
Merge branch 'master' into 206-vega
JavierCladellas Jan 13, 2025
6ae0458
add quotas for vega #206
JavierCladellas Jan 14, 2025
9be5852
try fix validation error #206
JavierCladellas Jan 14, 2025
852d1de
better syntax
JavierCladellas Jan 14, 2025
90ff196
bug fix
JavierCladellas Jan 14, 2025
a4bcd15
Merge branch 'master' into 206-vega
vincentchabannes Feb 6, 2025
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