Skip to content

Commit 0252787

Browse files
committed
Update scripts for collecting baseline performance results
- Use c7i.metal-24xl EC2 instance type - Enable parallel build - Update thread/MPI proc configs
1 parent f9d68dc commit 0252787

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

asv.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// See asv.conf.json documentation.
3737
"install_command": [
3838
"in-dir={env_dir} /usr/bin/cmake -S {build_dir} -B {build_dir}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX={env_dir} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DOPENMC_USE_MPI=on -DOPENMC_USE_DAGMC=ON -DHDF5_PREFER_PARALLEL=on",
39-
"in-dir={env_dir} /usr/bin/cmake --build {build_dir}/build --target install -- -j1",
39+
"in-dir={env_dir} /usr/bin/cmake --build {build_dir}/build --target install -- -j",
4040
"in-dir={env_dir} python -m pip install {build_dir}"
4141
],
4242
"uninstall_command": ["return-code=any python -m pip uninstall -y openmc"],

benchmarks/config.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ def _detect_mpi_enabled() -> bool:
3434
# Explicit list of (threads, MPI procs) configurations to benchmark
3535
_CONFIGS: Tuple[Tuple[int, Optional[int]], ...] = (
3636
(1, None),
37-
(4, None),
37+
(12, None),
38+
(48, None),
3839
)
3940
if _MPI_ENABLED and _MPI_RUNNER:
4041
_CONFIGS += (
41-
(1, 4),
42-
(2, 2),
42+
(1, 48),
43+
(4, 12),
44+
(12, 4),
4345
)
4446

4547

scripts/launch_ec2_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Configuration — edit these to match your account / AMI
2121
# ---------------------------------------------------------------------------
2222
IMAGE_ID = "ami-0dd817d8c8a139613"
23-
INSTANCE_TYPE = "c7i-flex.xlarge"
23+
INSTANCE_TYPE = "c7i.metal-24xl"
2424
KEYPAIR_NAME = None # Optional; set to None to omit
2525
SECURITY_GROUP = "sg-09c219bca773abbc7"
2626
REGION = "us-east-2"

0 commit comments

Comments
 (0)