-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
248 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
black==24.4.2 | ||
flake8==7.1.0 | ||
black==24.8.0 | ||
flake8==7.1.1 | ||
isort==5.13.2 | ||
codespell==2.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,8 @@ packages: | |
prefix: /usr | ||
cmake: | ||
externals: | ||
- spec: "[email protected] arch=linux-rhel8-a64fx" | ||
prefix: /vol0004/apps/oss/spack/opt/spack/linux-rhel8-a64fx/fj-4.10.0/cmake-3.27.7-ussgjuqkqbxi5dcv7kbp6bugdcjc5ph6 | ||
- spec: "[email protected] arch=linux-rhel8-a64fx" | ||
prefix: /usr | ||
curl: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,19 @@ | |
software: | ||
packages: | ||
default-compiler: | ||
pkg_spec: "{default_comp} {sys_arch}" | ||
pkg_spec: clang@{default_llvm_version} | ||
default-mpi: | ||
pkg_spec: fujitsu-mpi@{fj_comp_version}%{default_comp} {sys_arch} | ||
pkg_spec: fujitsu-mpi@{default_fj_version} | ||
compiler: default-compiler | ||
compiler-clang: | ||
pkg_spec: clang@{default_llvm_version} | ||
compiler-fj: | ||
pkg_spec: fj@{default_fj_version} | ||
compiler-gcc: | ||
pkg_spec: gcc@{default_gnu_version} | ||
blas: | ||
pkg_spec: fujitsu-ssl2@{fj_comp_version}%{default_comp} {sys_arch} | ||
pkg_spec: fujitsu-ssl2@{default_fj_version} | ||
compiler: default-compiler | ||
lapack: | ||
pkg_spec: fujitsu-ssl2@{fj_comp_version}%{default_comp} {sys_arch} | ||
gmake: | ||
pkg_spec: [email protected] {sys_arch} | ||
cmake: | ||
pkg_spec: [email protected] {sys_arch} | ||
|
||
pkg_spec: fujitsu-ssl2@{default_fj_version} | ||
compiler: default-compiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,9 +47,7 @@ ramble: | |
software: | ||
packages: | ||
hypre-omp: | ||
# spack_spec: [email protected] +mpi+openmp+mixedint~fortran{modifier_spack_variant} | ||
spack_spec: hypre@comm_cali +mpi+openmp+mixedint~fortran{modifier_spack_variant} | ||
# pkg_spec: [email protected] +mpi+openmp+mixedint~fortran{modifier_spack_variant} | ||
pkg_spec: [email protected] +mpi+openmp+mixedint~fortran{modifier_spack_variant} | ||
compiler: default-compiler | ||
amg2023-omp: | ||
pkg_spec: amg2023@develop +mpi+openmp{modifier_spack_variant} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 2023 Lawrence Livermore National Security, LLC and other | ||
# Benchpark Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
ramble: | ||
include: | ||
- ./configs/software.yaml | ||
- ./configs/variables.yaml | ||
- ./configs/modifier.yaml | ||
|
||
config: | ||
deprecated: true | ||
spack_flags: | ||
install: '--add --keep-stage' | ||
concretize: '-U -f' | ||
|
||
modifiers: | ||
- name: allocation | ||
|
||
applications: | ||
genesis: | ||
workloads: | ||
DHFR: | ||
env_vars: | ||
set: | ||
OMP_NUM_THREADS: '{omp_num_threads}' | ||
variants: | ||
package_manager: spack | ||
variables: | ||
n_ranks: '{processes_per_node} * {n_nodes}' | ||
experiment_setup: '' | ||
processes_per_node: ['int({sys_cores_per_node} / 6)'] | ||
n_nodes: ['1'] | ||
omp_num_threads: ['{processes_per_node} / 2'] | ||
arch: 'OpenMP' | ||
experiments: | ||
genesis_omp_{n_nodes}_{processes_per_node}_{omp_num_threads}: | ||
variables: {} | ||
software: | ||
packages: | ||
genesis: | ||
pkg_spec: [email protected] +mpi+openmp{modifier_spack_variant} | ||
compiler: default-compiler | ||
environments: | ||
genesis: | ||
packages: | ||
- lapack | ||
- default-mpi | ||
- genesis | ||
- '{modifier_package_name}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,6 @@ ramble: | |
pkg_spec: cuda@{default_cuda_version}+allow-unsupported-compilers | ||
compiler: default-compiler | ||
kripke: | ||
# spack_spec: kripke@develop +mpi+cuda{modifier_spack_variant} ^[email protected] | ||
spack_spec: kripke@comm_cali +mpi+cuda{modifier_spack_variant} ^[email protected] | ||
compiler: default-compiler | ||
environments: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ ramble: | |
software: | ||
packages: | ||
kripke: | ||
# spack_spec: kripke@develop +mpi+openmp{modifier_spack_variant} ^[email protected] | ||
# spack_spec: kripke@develop +mpi+openmp{modifier_spack_variant} ^[email protected] | ||
pkg_spec: kripke@comm_cali +mpi+openmp{modifier_spack_variant} ^[email protected] | ||
# spack_spec: [email protected] +mpi+openmp{modifier_spack_variant} ^[email protected] | ||
# # 3918228 (edit spack spec version) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,6 @@ ramble: | |
packages: | ||
kripke: | ||
spack_spec: kripke@comm_cali +mpi+rocm{modifier_spack_variant} ^[email protected] | ||
# spack_spec: kripke@develop +mpi+rocm{modifier_spack_variant} ^[email protected] | ||
compiler: default-compiler | ||
environments: | ||
kripke: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ class Amg2023(CMakePackage, CudaPackage, ROCmPackage): | |
depends_on("adiak", when="+caliper") | ||
depends_on("hypre+caliper", when="+caliper") | ||
# depends_on("[email protected]:") | ||
depends_on("hypre@comm_cali") | ||
depends_on("hypre@3.1_comm_cali") | ||
depends_on("hypre+cuda", when="+cuda") | ||
requires("+cuda", when="^hypre+cuda") | ||
depends_on("hypre+rocm", when="+rocm") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 2023 Lawrence Livermore National Security, LLC and other | ||
# Benchpark Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from ramble.appkit import * | ||
|
||
import sys | ||
|
||
class Genesis(SpackApplication): | ||
"""GENESIS package contains two MD programs (atdyn and spdyn), trajectory | ||
analysis programs, and other useful tools. GENESIS (GENeralized-Ensemble | ||
SImulation System) has been developed mainly by Sugita group in RIKEN-CCS. | ||
""" | ||
name = "GENESIS" | ||
|
||
tags = ['molecular-dynamics','mpi', 'openmp', 'cuda'] | ||
|
||
executable('chdir', 'cd $(dirname {input})', use_mpi=False) | ||
executable('genesis', 'spdyn {input}', use_mpi=True) | ||
|
||
input_file('benchmark-2020', | ||
url='https://www.r-ccs.riken.jp/labs/cbrt/wp-content/uploads/2020/12/benchmark_mkl_ver4_nocrowding.tar.gz', | ||
sha256='2ca8b2d4974dc0be0a42064392f1d5c603c64ffa9adc1f3bcf7c146a3bbf5bdb', | ||
description='Benchmark set for GENESIS 2.0 beta / 1.6 on FUGAKU') | ||
input_file('tests-2.1.1', | ||
url='https://www.r-ccs.riken.jp/labs/cbrt/wp-content/uploads/2023/09/tests-2.1.1.tar.bz2', | ||
sha256='f24d872beae5e38baa6a591906f78e3438186973c88e4879e4b04a0cca74f83e', | ||
description='Regression tests are prepared for ATDYN, SPDYN, prst_setup (parallel I/O), and analysis tools to check if these programs work correctly.') | ||
|
||
workload('DHFR', executables=['chdir', 'genesis'], input='benchmark-2020') | ||
workload('ApoA1', executables=['chdir', 'genesis'], input='benchmark-2020') | ||
workload('UUN', executables=['chdir', 'genesis'], input='benchmark-2020') | ||
workload('cryoEM', executables=['chdir', 'genesis'], input='tests-2.1.1') | ||
|
||
workload_variable('input', default='{benchmark-2020}/npt/genesis2.0beta/jac_amber/p{n_ranks}.inp', | ||
description='jac_amber/ : DHFR (27,346 atoms), AMBER format, soluble system', | ||
workloads=['DHFR']) | ||
workload_variable('input', default='{benchmark-2020}/npt/genesis2.0beta/apoa1/p{n_ranks}.inp', | ||
description='apoa1/ : apoa1 (92,224 atoms), CHARMM format, soluble system', | ||
workloads=['ApoA1']) | ||
workload_variable('input', default='{benchmark-2020}/npt/genesis2.0beta/uun/p{n_ranks}.inp', | ||
description='uun/ : uun (216,726 atoms), CHARMM format, membrane+solvent system', | ||
workloads=['UUN']) | ||
workload_variable('input', default='{tests-2.1.1}/regression_test/test_spdyn/cryoEM/All_atom/inp', | ||
description='cryoEM/All_atom/ : cryoEM (? atoms), CHARMM format', | ||
workloads=['cryoEM']) | ||
|
||
figure_of_merit('Figure of Merit (FOM)', log_file='{experiment_run_dir}/{experiment_name}.out', fom_regex=r'^\s+dynamics\s+=\s+(?P<fom>[-+]?([0-9]*[.])?[0-9]+([eED][-+]?[0-9]+)?)', group_name='fom', units='') | ||
|
||
success_criteria('pass', mode='string', match=r'Figure of Merit \(FOM\)', file='{experiment_run_dir}/{experiment_name}.out') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# Copyright 2023 Lawrence Livermore National Security, LLC and other | ||
# Benchpark Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from spack.package import * | ||
|
||
|
||
class Genesis(AutotoolsPackage): | ||
"""GENESIS package contains two MD programs (atdyn and spdyn), trajectory | ||
analysis programs, and other useful tools. GENESIS (GENeralized-Ensemble | ||
SImulation System) has been developed mainly by Sugita group in RIKEN-CCS. | ||
""" | ||
|
||
tags = ['genesis','benchmark'] | ||
|
||
homepage = "https://www.r-ccs.riken.jp/labs/cbrt/" | ||
git = "https://github.com/genesis-release-r-ccs/genesis" | ||
|
||
version("master", branch="master", submodules=False) | ||
version( | ||
"2.1.3", submodules=False, tag="v2.1.3", commit="835ef1538f9350cfa7e9489f340837d0908afbd2" | ||
) | ||
version( | ||
"2.1.1", submodules=False, tag="v2.1.1", commit="38a54fe1c749f4d87bff591e65c61b23a7396f9d" | ||
) | ||
version( | ||
"2.0.3", submodules=False, tag="v2.0.3", commit="6989e0b24470e374ea343b2b7b685aca87909571" | ||
) | ||
|
||
variant("mpi", default=True, description="Build with MPI.") | ||
variant("openmp", default=True, description="Build with OpenMP enabled.") | ||
variant("lapack", default=True, description="Build with LAPACK enabled.") | ||
variant("gpu", default=False, description="Build with GPGPU enabled.") | ||
variant("precision", description="Build with selected precision.", default="double", values=("double", "mixed", "single", "large_int"), multi=False) | ||
variant("simd", description="Build with SIMD width.", default="auto", values=("auto", "MIC-AVX512", "CORE-AVX512", "CORE-AVX2"), multi=False) | ||
variant("debug", description="Set Debug level", default="0", values=("0", "1", "2", "3", "4"), multi=False) | ||
|
||
depends_on("mpi", when="+mpi") | ||
depends_on("lapack", when="+lapack") | ||
depends_on("cuda", when="+gpu") | ||
|
||
def autoreconf(self, spec, prefix): | ||
bash = which("bash") | ||
bash("./bootstrap") | ||
|
||
@run_before("configure") | ||
def fix_programming_error(self): | ||
spec = self.spec | ||
if self.version < Version("2.1.3"): | ||
filter_file(r"atomcls1\(1:3\)", "atomcls1(1:6)", join_path(self.stage.source_path, "src/analysis/sp_analysis/hbond_analysis/hbond_analyze.fpp")) | ||
filter_file(r"atomcls2\(1:3\)", "atomcls2(1:6)", join_path(self.stage.source_path, "src/analysis/sp_analysis/hbond_analysis/hbond_analyze.fpp")) | ||
|
||
def configure_args(self): | ||
spec = self.spec | ||
config_args = [f"--enable-{spec.variants['precision'].value}", | ||
f"--with-simd={spec.variants['simd'].value}"] | ||
|
||
if int(spec.variants['debug'].value) > 0: | ||
config_args.extend(f"--enable-debug={spec.variants['debug'].value}") | ||
|
||
config_args.extend(self.enable_or_disable("mpi")) | ||
config_args.extend(self.enable_or_disable("openmp")) | ||
config_args.extend(self.with_or_without("lapack")) | ||
config_args.extend(self.enable_or_disable("gpu")) | ||
|
||
if "+mpi" in spec: | ||
env["CC"] = spec["mpi"].mpicc | ||
env["CXX"] = spec["mpi"].mpicxx | ||
env["FC"] = spec["mpi"].mpifc | ||
env["F77"] = spec["mpi"].mpif77 | ||
|
||
if "+openmp" in spec and spec.satisfies("%clang"): | ||
env["OPT_OPENMP"] = "-fopenmp" | ||
|
||
if spec.satisfies("%clang"): | ||
opt_flags = "-Ofast -ffast-math" | ||
env["CFLAGS"] = f"{opt_flags}" | ||
env["CXXFLAGS"] = f"{opt_flags}" | ||
env["FCFLAGS"] = f"{opt_flags} -Mbackslash" | ||
env["F77FLAGS"] = f"{opt_flags} -Mbackslash" | ||
# cpp workaround; other systems and OS likely need different pre-processor fix | ||
if spec.target == "a64fx": | ||
env["FPP"] = "/opt/FJSVxtclanga/tcsds-1.2.38/bin/../lib/fpp" | ||
env["PPFLAGS"] = "-traditional-cpp -traditional" | ||
elif spec.satisfies("%fj"): | ||
opt_flags = "-Kfast" | ||
env["CFLAGS"] = f"{opt_flags}" | ||
env["CXXFLAGS"] = f"{opt_flags}" | ||
env["FCFLAGS"] = f"{opt_flags}" | ||
env["F77FLAGS"] = f"{opt_flags}" | ||
elif spec.satisfies("%gcc"): | ||
opt_flags = "-O3 -ffast-math" | ||
env["CFLAGS"] = f"{opt_flags}" | ||
env["CXXFLAGS"] = f"{opt_flags}" | ||
env["FCFLAGS"] = f"{opt_flags} -ffree-line-length-none" | ||
env["F77FLAGS"] = f"{opt_flags} -ffree-line-length-none" | ||
|
||
if "+gpu" in spec: | ||
config_args.extend(self.with_or_without("cuda", activation_value=spec["cuda"].prefix)) | ||
|
||
return config_args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters