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

Adding GROMACS #61

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
acce1d6
Create gromacs/application.py
pearce8 Nov 29, 2023
720b176
Add gromacs openmp config (#62)
rfhaque Nov 30, 2023
6b70948
Merge remote-tracking branch 'origin/develop' into feature-gromacs
rfhaque Dec 1, 2023
06c2b29
Update repo/gromacs/application.py
pearce8 Dec 5, 2023
0f98c77
Update repo/gromacs/application.py
pearce8 Dec 5, 2023
68e7d28
Merge branch 'develop' into feature-gromacs
pearce8 Dec 5, 2023
1679d15
Merge branch 'develop' into feature-gromacs
pearce8 Dec 14, 2023
f5f723a
copyright
pearce8 Dec 18, 2023
e73ec42
copyright
pearce8 Dec 18, 2023
fa765a6
copyright
pearce8 Dec 18, 2023
aea9180
Merging develop
pearce8 Jan 8, 2024
aeb966c
Merge branch 'develop' into feature-gromacs
pearce8 Jan 16, 2024
05dc3b2
Merge branch 'develop' into feature-gromacs
pearce8 Jan 17, 2024
c1e2112
Merge branch 'develop' into feature-gromacs
pearce8 Jan 20, 2024
992421a
Draft ADAC experiment setup
Jan 30, 2024
7eba856
Merge branch 'develop' into feature-gromacs
pearce8 Feb 5, 2024
1762eea
Merge branch 'develop' into feature-gromacs
pearce8 Feb 6, 2024
4347564
Merge remote-tracking branch 'origin/develop' into feature-gromacs
Feb 8, 2024
0738ba5
CUDA experiment for LLNL-Sierra-IBM-power9-V100-Infiniband
Feb 10, 2024
9f13277
CUDA config for LLNL-Pascal-Penguin-broadwell-P100-OmniPat
Feb 11, 2024
32f84ee
Fix target name
Feb 11, 2024
ee940e6
CUDA config for lassen
Feb 16, 2024
c065093
Fix cuda config
Feb 17, 2024
b8ca5a2
Set Openmp thread affinity to cores
Feb 17, 2024
5f334fe
Fix cuda compiler for gromacs
Feb 17, 2024
5b695ca
Merge branch 'develop' into feature-gromacs
pearce8 Feb 20, 2024
72ff192
gromacs rocm config
Feb 21, 2024
078c4a5
Merge branch 'feature-gromacs' of github.com:LLNL/benchpark into feat…
Feb 21, 2024
5de5699
gromacs rocm config
Feb 22, 2024
3fbc244
Remove spack_setup
Feb 22, 2024
379bac6
Merge with develop
Feb 23, 2024
89ff45a
Merge remote-tracking branch 'origin/develop' into feature-gromacs
Feb 26, 2024
2d4f924
ROCm packages: externals consistency (#150)
scheibelp Mar 4, 2024
5bd8821
Merge remote-tracking branch 'origin/develop' into feature-gromacs
Apr 3, 2024
90ccdd9
Merge with develop
Jun 20, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,55 @@ compilers:
LD_LIBRARY_PATH: /opt/cray/pe/cce/16.0.0/cce/x86_64/lib
extra_rpaths: [/opt/cray/pe/cce/16.0.0/cce/x86_64/lib/, /opt/cray/pe/gcc-libs/]
- compiler:
spec: [email protected].5.1
spec: rocmcc@5.5.1
paths:
cc: /opt/rocm-5.5.1/bin/amdclang
cxx: /opt/rocm-5.5.1/bin/amdclang++
f77: /opt/rocm-5.5.1/bin/amdflang
fc: /opt/rocm-5.5.1/bin/amdflang
flags:
cflags: -g -O2 --gcc-toolchain=/opt/rh/gcc-toolset-12/root/usr
cxxflags: -g -O2 -std=c++17 --gcc-toolchain=/opt/rh/gcc-toolset-12/root/usr
fflags: -g -O2 -hnopattern
cflags: -g -O2
cxxflags: -g -O2
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []
environment:
set:
RFE_811452_DISABLE: '1'
append_path:
LD_LIBRARY_PATH: /opt/cray/pe/gcc-libs
prepend_path:
LD_LIBRARY_PATH: "/opt/cray/pe/cce/16.0.0/cce/x86_64/lib:/opt/cray/pe/pmi/6.1.12/lib"
LIBRARY_PATH: /opt/rocm-5.5.1/lib
extra_rpaths:
- /opt/rocm-5.5.1/lib
- /opt/cray/pe/gcc-libs
- /opt/cray/pe/cce/16.0.0/cce/x86_64/lib
- compiler:
spec: [email protected]
paths:
cc: /opt/rocm-5.4.3/bin/amdclang
cxx: /opt/rocm-5.4.3/bin/amdclang++
f77: /opt/rocm-5.4.3/bin/amdflang
fc: /opt/rocm-5.4.3/bin/amdflang
flags:
cflags: -g -O2
cxxflags: -g -O2
operating_system: rhel8
target: x86_64
modules: []
environment:
set:
RFE_811452_DISABLE: '1'
append_path:
LD_LIBRARY_PATH: /opt/cray/pe/gcc-libs
prepend_path:
LD_LIBRARY_PATH: "/opt/cray/pe/cce/16.0.0/cce/x86_64/lib:/opt/cray/pe/pmi/6.1.12/lib"
LIBRARY_PATH: /opt/rocm-5.4.3/lib
extra_rpaths:
- /opt/rocm-5.4.3/lib
- /opt/cray/pe/gcc-libs
- /opt/cray/pe/cce/16.0.0/cce/x86_64/lib
- compiler:
spec: [email protected]
paths:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,48 @@ packages:
- spec: [email protected]
prefix: /opt/rocm-5.5.1
buildable: false
comgr:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/rocm-5.4.3/
- spec: [email protected]
prefix: /opt/rocm-5.5.1/
hipsparse:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/rocm-5.4.3
- spec: [email protected]
prefix: /opt/rocm-5.5.1
hipblas:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/rocm-5.4.3/
- spec: [email protected]
prefix: /opt/rocm-5.5.1/
hsakmt-roct:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/rocm-5.4.3/
- spec: [email protected]
prefix: /opt/rocm-5.5.1/
roctracer-dev-api:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/rocm-5.4.3/
- spec: [email protected]
prefix: /opt/rocm-5.5.1/
rocminfo:
buildable: false
externals:
- spec: [email protected]
prefix: /opt/rocm-5.4.3/
- spec: [email protected]
prefix: /opt/rocm-5.5.1/
llvm-amdgpu:
externals:
- spec: [email protected]
Expand Down Expand Up @@ -215,6 +257,13 @@ packages:
prefix: /opt/cray/pe/libsci/23.05.1.4/gnu/10.3/x86_64/
lapack:
buildable: false
blas:
buildable: false
unzip:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
hypre:
Copy link
Collaborator Author

@pearce8 pearce8 Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove hypre from this list. All variants are already set to amdgpu_target=gfx90a

variants: amdgpu_target=gfx90a
hwloc:
Expand Down
10 changes: 10 additions & 0 deletions configs/LLNL-Tioga-HPECray-zen3-MI250X-Slingshot/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,26 @@ spack:
spack_spec: [email protected]%[email protected] ~gtl
compiler-rocm:
spack_spec: cce@16
compiler-rocmcc:
spack_spec: [email protected]
hip543:
spack_spec: [email protected]
hsa-rocr-dev543:
spack_spec: [email protected]
compiler-amdclang:
spack_spec: [email protected]
compiler-gcc:
spack_spec: [email protected]
blas-rocm:
spack_spec: [email protected]
blas-rocm543:
spack_spec: [email protected]
blas:
spack_spec: [email protected]
lapack-rocm:
spack_spec: [email protected]
lapack-rocm543:
spack_spec: [email protected]
lapack:
spack_spec: cray-libsci@23
mpi-rocm-gtl:
Expand Down
16 changes: 7 additions & 9 deletions experiments/gromacs/rocm/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,26 @@ ramble:
pin: 'off'
nb: '{target}'
pme: 'auto'
bonded: '{target}'
bonded: 'cpu'
update: '{target}'
maxh: '0.05'
nsteps: '1000'
nstlist: '200'
npme: '0'
npme: '1'
size: '1536'

spack:
packages:
hipsycl:
spack_spec: hipsycl@23.10.0
compiler: default-compiler
spack_spec: hipsycl@0.9.4+rocm
compiler: compiler-rocmcc
gromacs:
spack_spec: [email protected] +mpi+openmp+rocm~hwloc~double amdgpu_target={rocm_arch}
compiler: default-compiler
spack_spec: [email protected] +mpi+openmp+sycl+rocm~hwloc~double amdgpu_target={rocm_arch}
compiler: compiler-rocmcc
environments:
gromacs:
packages:
- mpi-rocm-no-gtl
- hipsycl
- blas-rocm
- lapack-rocm
- mpi-rocm-gtl
- fftw
- gromacs
3 changes: 2 additions & 1 deletion repo/gromacs/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import llnl.util.filesystem as fs

from spack.package import *
from spack.pkg.benchpark.rocm_consistency import RocmConsistency as RocmConsistency


class Gromacs(CMakePackage, CudaPackage, ROCmPackage):
class Gromacs(CMakePackage, CudaPackage, ROCmPackage, RocmConsistency):
"""GROMACS is a molecular dynamics package primarily designed for simulations
of proteins, lipids and nucleic acids. It was originally developed in
the Biophysical Chemistry department of University of Groningen, and is now
Expand Down
37 changes: 37 additions & 0 deletions repo/rocm-consistency/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *
from spack.package_base import PackageBase


class RocmConsistency(PackageBase):
with when("+rocm"):
for ver in [
"5.1.0",
"5.1.3",
"5.2.0",
"5.2.1",
"5.2.3",
"5.3.0",
"5.3.3",
"5.4.0",
"5.4.3",
"5.5.0",
"5.5.1",
"5.6.0",
"5.6.1",
"5.7.0",
"5.7.1",
"6.0.0",
"6.0.2",
]:
depends_on(f"hip@{ver}", when=f"%rocmcc@{ver} ^hip")
depends_on(f"hsakmt-roct@{ver}", when=f"^hip@{ver}")
depends_on(f"hsa-rocr-dev@{ver}", when=f"^hip@{ver}")
depends_on(f"comgr@{ver}", when=f"^hip@{ver}")
depends_on(f"llvm-amdgpu@{ver} +rocm-device-libs", when=f"^hip@{ver}")
depends_on(f"rocminfo@{ver}", when=f"^hip@{ver}")
depends_on(f"roctracer-dev-api@{ver}", when=f"^hip@{ver}")
Loading