Skip to content

Commit e7b352d

Browse files
authored
Ubuntu update, readme spelling updates
Fixing several spelling errors, a couple updates between ubuntu 20 and 22.
1 parent 92ed862 commit e7b352d

File tree

10 files changed

+59
-31
lines changed

10 files changed

+59
-31
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ For ROCm installation procedures and validation checks, see:
2424
- [PETSc in Docker](/petsc-docker/)
2525
- [PyFR in Docker](/pyfr-docker/)
2626
- [rocHPL](/rochpl/)
27+
- [Specfem3D - Cartesian](/specfem3d/)

gromacs-docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ RUN rm /etc/apt/sources.list.d/* \
3535
libfftw3-dev \
3636
kmod \
3737
python3 \
38-
libomp-7-dev \
38+
libomp-dev \
3939
rocfft \
40+
tar \
4041
&& apt-get clean
4142

4243
# Requires cmake > 3.22

lammps-docker/Dockerfile

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG IMAGE="rocm/dev-ubuntu-20.04:5.3-complete"
22

33
FROM ${IMAGE}
44

5-
ARG LAMMPS_BRANCH="stable_23Jun2022_update3"
5+
ARG LAMMPS_BRANCH="stable_23Jun2022_update4"
66
ARG UCX_BRANCH="v1.13.1"
77
ARG OMPI_BRANCH="v4.1.4"
88

@@ -38,7 +38,18 @@ RUN mkdir -p /opt/cmake \
3838
&& wget --no-check-certificate --quiet -O - https://cmake.org/files/v3.22/cmake-3.22.2-linux-x86_64.tar.gz | tar --strip-components=1 -xz -C /opt/cmake
3939

4040
# Adding rocm/cmake to the PATH
41-
ENV PATH=/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:/opt/cmake/bin:$PATH
41+
ENV ROCM_PATH=/opt/rocm \
42+
UCX_HOME=/opt/ucx \
43+
OMPI_HOME=/opt/ompi
44+
45+
# Adding rocm/cmake to the Environment
46+
ENV PATH=$ROCM_PATH/bin:$ROCM_PATH/profiler/bin:$ROCM_PATH/opencl/bin:/opt/cmake/bin:$PATH \
47+
LD_LIBRARY_PATH=$ROCM_PATH/lib:$ROCM_PATH/lib64:$ROCM_PATH/llvm/lib:$LD_LIBRARY_PATH \
48+
LIBRARY_PATH=$ROCM_PATH/lib:$ROCM_PATH/lib64:$LIBRARY_PATH \
49+
C_INCLUDE_PATH=$ROCM_PATH/include:$C_INCLUDE_PATH \
50+
CPLUS_INCLUDE_PATH=$ROCM_PATH/include:$CPLUS_INCLUDE_PATH \
51+
CPATH=$ROCM_PATH/include:$CPATH \
52+
INCLUDE=$ROCM_PATH/include:$INCLUDE
4253

4354
WORKDIR /tmp
4455

@@ -51,7 +62,7 @@ RUN cd /tmp/ \
5162
&& ./autogen.sh \
5263
&& mkdir build \
5364
&& cd build \
54-
&& ../contrib/configure-release --prefix=/opt/ucx \
65+
&& ../contrib/configure-release --prefix=$UCX_HOME \
5566
--with-rocm=/opt/rocm --without-knem \
5667
--without-xpmem --without-cuda \
5768
--enable-optimizations \
@@ -61,7 +72,9 @@ RUN cd /tmp/ \
6172
--enable-params-check \
6273
--disable-examples \
6374
&& make -j 8 \
64-
&& make install
75+
&& make install \
76+
&& cd /tmp \
77+
&& rm -rf *
6578

6679
# Install OpenMPI
6780
RUN cd /tmp \
@@ -71,7 +84,7 @@ RUN cd /tmp \
7184
&& mkdir build \
7285
&& cd build \
7386
&& ../configure --help \
74-
&& ../configure --prefix=/opt/ompi --with-ucx=/opt/ucx \
87+
&& ../configure --prefix=$OMPI_HOME --with-ucx=$UCX_HOME \
7588
--enable-mca-no-build=btl-uct \
7689
--enable-mpi-f90 \
7790
--enable-mpi-c \
@@ -80,10 +93,20 @@ RUN cd /tmp \
8093
--enable-mpi-fortran=yes \
8194
--disable-debug \
8295
&& make -j 8 \
83-
&& make install
96+
&& make install \
97+
&& cd /tmp \
98+
&& rm -rf *
99+
84100

85-
# Adding OpenMPI and UCX to PATH
86-
ENV PATH=/opt/ompi/bin:/opt/ucx/bin:$PATH
101+
# Adding OpenMPI and UCX to Environment
102+
ENV PATH=$OMPI_HOME/bin:$UCX_HOME/bin:$PATH \
103+
LD_LIBRARY_PATH=$OMPI_HOME/lib:$UCX_HOME/lib:$LD_LIBRARY_PATH \
104+
LIBRARY_PATH=$OMPI_HOME/lib:$UCX_HOME/lib:$LIBRARY_PATH \
105+
C_INCLUDE_PATH=$OMPI_HOME/include:$UCX_HOME/include:$C_INCLUDE_PATH \
106+
CPLUS_INCLUDE_PATH=$OMPI_HOME/include:$UCX_HOME/include:$CPLUS_INCLUDE_PATH \
107+
CPATH=$OMPI_HOME/include:$UCX_HOME/include:$CPATH \
108+
INCLUDE=$OMPI_HOME/include:$UCX_HOME/include:$INCLUDE \
109+
PKG_CONFIG_PATH=$OMPI_HOME/lib/pkgconfig:$UCX_HOME/lib/pkgconfig:$PKG_CONFIG_PATH
87110

88111
# Installing LAMMPS
89112
RUN cd /tmp \
@@ -101,7 +124,7 @@ RUN cd /tmp \
101124
-DPKG_KSPACE=on \
102125
-DPKG_RIGID=on \
103126
-DBUILD_MPI=on \
104-
-DCMAKE_INSTALL_PREFIX=../install \
127+
-DCMAKE_INSTALL_PREFIX=/opt/lammps \
105128
-DMPI_CXX_COMPILER=$(which mpicxx) \
106129
-DCMAKE_BUILD_TYPE=Release \
107130
-DKokkos_ENABLE_HIP=on \
@@ -112,11 +135,19 @@ RUN cd /tmp \
112135
-DKokkos_ENABLE_HIP_MULTIPLE_KERNEL_INSTANTIATIONS=ON \
113136
-DCMAKE_CXX_FLAGS=-munsafe-fp-atomics \
114137
../lammps/cmake \
115-
&& make -j$(nproc) install \
116-
&& cd ..
138+
&& make -j$(nproc) install \
139+
&& cd /tmp/lammps \
140+
&& mv bench /opt/lammps/bench \
141+
&& mv examples /opt/lammps/examples \
142+
&& mv potentials /opt/lammps/potentials \
143+
&& chmod -R a+rwx /opt/lammps \
144+
&& cd /tmp \
145+
&& rm -rf *
117146

147+
WORKDIR /opt/lammps/bench
118148
# Adding environment variable for running OMPI as ROOT
119149
ENV OMPI_ALLOW_RUN_AS_ROOT=1 \
120150
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
121-
151+
PATH=$PATH:/opt/lammps/bin
152+
122153
CMD ["/bin/bash"]

lammps-docker/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ In this section, we provide a couple of examples from the set of [LAMMPS standar
153153

154154
In these examples, the input to the run command is provided via an input file. Other inputs may have additional parameters that can be modified and may change performance.
155155

156-
Additionaly, we have supplied several arguments such as `cuda/aware on` which modify the behavior of LAMMPS, in this case, forcing enablement of GPU-aware communications. For additional run options, see [Running LAMMPS with the KOKKOS package](https://docs.lammps.org/Speed_kokkos.html#running-lammps-with-the-kokkos-package).
156+
Additionally, we have supplied several arguments such as `cuda/aware on` which modify the behavior of LAMMPS, in this case, forcing enablement of GPU-aware communications. For additional run options, see [Running LAMMPS with the KOKKOS package](https://docs.lammps.org/Speed_kokkos.html#running-lammps-with-the-kokkos-package).
157157
Note that the use of `neigh full' in the run command triggers the use of full neighbor-lists, as described [here](https://docs.lammps.org/Developer_par_neigh.html).
158158

159159
For convenience, we also added the installed binary path (`install/bin`) to the PATH environment variable (see bare metal build instructions above) so that the lmp binary can be found when running the benchmark examples.
@@ -166,7 +166,7 @@ mpirun --mca pml ucx --mca btl ^vader,tcp,openib,uct -np 8 lmp -k on g 8 -sf kk
166166
```
167167
- Run LJ benchmark on one GPU
168168

169-
The following command runs the LJ benchmark using a x/y/z of size 8/8/8. Note that we have chosen to run a larger problem size than specified in the sample [input file](https://github.com/lammps/lammps/blob/develop/bench/in.lj). The user may wish to experiment with problem sizes and other run otions to achieve optimal performance.
169+
The following command runs the LJ benchmark using a x/y/z of size 8/8/8. Note that we have chosen to run a larger problem size than specified in the sample [input file](https://github.com/lammps/lammps/blob/develop/bench/in.lj). The user may wish to experiment with problem sizes and other run options to achieve optimal performance.
170170

171171
```
172172
mpirun --mca pml ucx --mca btl ^vader,tcp,openib,uct -np 1 lmp -k on g 1 -sf kk -pk kokkos cuda/aware on neigh full -v x 8 -v y 8 -v z 8 -in in.lj -nocite -log log.lammps
@@ -176,7 +176,7 @@ mpirun --mca pml ucx --mca btl ^vader,tcp,openib,uct -np 1 lmp -k on g 1 -sf kk
176176

177177
Your access and use of this application is subject to the terms of the applicable component-level license identified below. To the extent any subcomponent in this container requires an offer for corresponding source code, AMD hereby makes such an offer for corresponding source code form, which will be made available upon request. By accessing and using this application, you are agreeing to fully comply with the terms of this license. If you do not agree to the terms of this license, do not access or use this application.
178178

179-
The application is provided in a container image format that includes the following separate and independent components: Ubuntu (License: Creative Commons CC-BY-SA version 3.0 UK licence), LAMMPS (License: GPL v2.0 or at your option, any later version), CMAKE (License: BSD 3), numpy (License: BSD 3-clause), PANDAS (License: BSD 3 + Restrictions), OpenMPI (License: BSD 3-Clause), OpenUCX (License: BSD 3-Clause), ROCm (License: Custom/MIT/Apache V2.0/UIUC OSL). Additional third-party content in this container may be subject to additional licenses and restrictions. The components are licensed to you directly by the party that owns the content pursuant to the license terms included with such content and is not licensed to you by AMD. ALL THIRD-PARTY CONTENT IS MADE AVAILABLE BY AMD “AS IS” WITHOUT A WARRANTY OF ANY KIND. USE OF SUCH THIRD-PARTY CONTENT IS DONE AT YOUR SOLE DISCRETION AND UNDER NO CIRCUMSTANCES WILL AMD BE LIABLE TO YOU FOR ANY THIRD-PARTY CONTENT. YOU ASSUME ALL RISK AND ARE SOLELY RESPONSIBLE FOR ANY DAMAGES THAT MAY ARISE FROM YOUR USE OF THIRD-PARTY CONTENT.
179+
The application is provided in a container image format that includes the following separate and independent components: Ubuntu (License: Creative Commons CC-BY-SA version 3.0 UK license), LAMMPS (License: GPL v2.0 or at your option, any later version), CMAKE (License: BSD 3), numpy (License: BSD 3-clause), PANDAS (License: BSD 3 + Restrictions), OpenMPI (License: BSD 3-Clause), OpenUCX (License: BSD 3-Clause), ROCm (License: Custom/MIT/Apache V2.0/UIUC OSL). Additional third-party content in this container may be subject to additional licenses and restrictions. The components are licensed to you directly by the party that owns the content pursuant to the license terms included with such content and is not licensed to you by AMD. ALL THIRD-PARTY CONTENT IS MADE AVAILABLE BY AMD “AS IS” WITHOUT A WARRANTY OF ANY KIND. USE OF SUCH THIRD-PARTY CONTENT IS DONE AT YOUR SOLE DISCRETION AND UNDER NO CIRCUMSTANCES WILL AMD BE LIABLE TO YOU FOR ANY THIRD-PARTY CONTENT. YOU ASSUME ALL RISK AND ARE SOLELY RESPONSIBLE FOR ANY DAMAGES THAT MAY ARISE FROM YOUR USE OF THIRD-PARTY CONTENT.
180180

181181
## Notices and Attribution
182182

openfoam-docker/scripts/bench-hpc-motorbike.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function setup()
1313
{
1414
# setting the env
1515
MAXGPUS=10
16-
if [[ ${NGPUS} -le 0 ]] || [[ ${NGPUS} > ${MAXGPUS} ]]; then
16+
if [[ ${NGPUS} -le 0 ]] || [[ ${NGPUS} -gt ${MAXGPUS} ]]; then
1717
# ERR condition
1818
echo " ERROR: This script is designed to run with a maximum of ${MAXGPUS} GPUs."
1919
echo " Either change your current selection of NGPUs: ${NGPUS} or modify the 'MAXGPUS' count in the script! "

openfoam-docker/scripts/bench-lid-driven-cavity.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function setup()
1212
{
1313
# setting the env
1414
MAXGPUS=10
15-
if [[ ${NGPUS} -le 0 ]] || [[ ${NGPUS} > ${MAXGPUS} ]]; then
15+
if [[ ${NGPUS} -le 0 ]] || [[ ${NGPUS} -gt ${MAXGPUS} ]]; then
1616
# ERR condition
1717
echo " ERROR: This script is designed to run with a maximum of ${MAXGPUS} GPUs."
1818
echo " Either change your current selection of NGPUs: ${NGPUS} or modify the 'MAXGPUS' count in the script! "

petsc-docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN apt-get update \
3434
kmod \
3535
python3 \
3636
python3-distutils \
37-
libomp-7-dev \
37+
libomp-dev \
3838
dos2unix \
3939
libopenblas-dev \
4040
libnuma-dev \

pyfr-docker/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,19 @@ The script extracts, then converts the mesh to a PyFR mesh first, for multiple G
125125
As a convenience, this is performed in the benchmark script which can be run using one to eight GPUs.
126126
**1 GPU**
127127
```
128-
/examples/tgv/run_tgv 1
128+
/examples/naca0021/run_naca0021 1
129129
```
130130
**2 GPU**
131131
```
132-
/examples/tgv/run_tgv 2
132+
/examples/naca0021/run_naca0021 2
133133
```
134134
**4 GPU**
135135
```
136-
/examples/tgv/run_tgv 4
136+
/examples/naca0021/run_naca0021 4
137137
```
138138
**8 GPU**
139139
```
140-
/examples/tgv/run_tgv 8
140+
/examples/naca0021/run_naca0021 8
141141
```
142142

143143
#### PyFR Test Cases

pyfr-docker/examples/bsf/run_bsf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

33
echo "Running BSF benchmark"
4-
cd /examples/dfs
4+
cd /examples/bsf
55
mpirun -np 1 pyfr -v run -b hip -p mesh.pyfrm inistep.ini

pyfr-docker/examples/naca0021/run_naca0021

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
#!/bin/bash
22

3-
cd /examples/naca0021
4-
unzip -u naca0021_p3_1c.msh.zip
5-
mkdir ../$1gpu-naca0021
6-
cd ../$1gpu-naca0021
7-
cp ../naca0021-input-set/naca0021_p3_1c.msh .
8-
cp ../naca0021-input-set/p3_warmup.ini .
9-
cp ../naca0021-input-set/3d_naca.ini .
3+
cd /examples/naca0021/
4+
unzip -u /examples/naca0021/naca0021_p3_1c.msh.zip -d .
105

116
pyfr import naca0021_p3_1c.msh naca0021_p3_1c.pyfrm
127
if [[ -z "$1" ]]; then

0 commit comments

Comments
 (0)