-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into plot_max_level
- Loading branch information
Showing
22 changed files
with
12,593 additions
and
7,149 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2020-2022 The AMReX Community | ||
# | ||
# License: BSD-3-Clause-LBNL | ||
# Authors: Axel Huebl | ||
|
||
set -eu -o pipefail | ||
|
||
|
||
# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu | ||
curl -O https://repo.radeon.com/rocm/rocm.gpg.key | ||
sudo apt-key add rocm.gpg.key | ||
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ ubuntu main' \ | ||
| sudo tee /etc/apt/sources.list.d/rocm.list | ||
echo 'export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:$PATH' \ | ||
| sudo tee -a /etc/profile.d/rocm.sh | ||
|
||
# we should not need to export HIP_PATH=/opt/rocm/hip with those installs | ||
|
||
sudo apt-get update | ||
|
||
# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#installing-development-packages-for-cross-compilation | ||
# meta-package: rocm-dkms | ||
# OpenCL: rocm-opencl | ||
# other: rocm-dev rocm-utils | ||
sudo apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
gfortran \ | ||
libnuma-dev \ | ||
libopenmpi-dev \ | ||
openmpi-bin \ | ||
rocm-dev \ | ||
roctracer-dev \ | ||
rocprofiler-dev \ | ||
rocrand-dev \ | ||
rocprim-dev | ||
|
||
# activate | ||
# | ||
source /etc/profile.d/rocm.sh | ||
hipcc --version | ||
which clang | ||
which clang++ | ||
which flang |
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,40 @@ | ||
name: exact Riemann | ||
|
||
on: [pull_request] | ||
jobs: | ||
exact_riemann: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get submodules | ||
run: | | ||
git submodule update --init | ||
cd external/Microphysics | ||
git fetch; git checkout development | ||
cd ../amrex | ||
git fetch; git checkout development | ||
cd ../.. | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -y -qq | ||
sudo apt-get -qq -y install curl cmake jq clang g++>=9.3.0 | ||
- name: Compile exact_riemann | ||
run: | | ||
cd Util/exact_riemann | ||
make -j 4 | ||
- name: Run test1 | ||
run: | | ||
cd Util/exact_riemann | ||
./Castro3d.gnu.ex inputs.test1.helm | ||
- name: Compare to stored output | ||
run: | | ||
cd Util/exact_riemann | ||
diff riemann.out ci-benchmarks/test1-riemann.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,32 @@ | ||
name: hip | ||
|
||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.head_ref }}-hip | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
hip-compile: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get submodules | ||
run: | | ||
git submodule update --init | ||
cd external/Microphysics | ||
git fetch; git checkout development | ||
cd ../amrex | ||
git fetch; git checkout development | ||
cd ../.. | ||
- name: Dependencies | ||
run: .github/workflows/dependencies_hip.sh | ||
|
||
- name: compile flame_wave | ||
run: | | ||
cd Exec/science/flame_wave | ||
make COMP=gnu USE_HIP=TRUE USE_MPI=FALSE USE_OMP=FALSE USE_CUDA=FALSE -j 2 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.