Skip to content

Commit 82cb0da

Browse files
authored
Merge branch 'development' into diffusion_doc
2 parents 80ccab1 + 2039f47 commit 82cb0da

File tree

19 files changed

+62
-24
lines changed

19 files changed

+62
-24
lines changed

.github/workflows/clang-tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
2626
- name: Install dependencies
2727
run: |
28-
.github/workflows/dependencies_clang-tidy-apt-llvm.sh 19
28+
.github/workflows/dependencies/dependencies_clang-tidy-apt-llvm.sh 19
2929
3030
- name: Compile flame_wave
3131
run: |

.github/workflows/dependencies_hip.sh renamed to .github/workflows/dependencies/dependencies_hip.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ echo 'export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/r
4040

4141
# we should not need to export HIP_PATH=/opt/rocm/hip with those installs
4242

43+
sudo apt-get clean
4344
sudo apt-get update
4445

4546
# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#installing-development-packages-for-cross-compilation
@@ -56,7 +57,9 @@ sudo apt-get install -y --no-install-recommends \
5657
roctracer-dev \
5758
rocprofiler-dev \
5859
rocrand-dev \
59-
rocprim-dev
60+
rocfft-dev \
61+
rocprim-dev \
62+
rocsparse-dev
6063

6164
# hiprand-dev is a new package that does not exist in old versions
6265
sudo apt-get install -y --no-install-recommends hiprand-dev || true
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright 2020-2022 Axel Huebl
4+
#
5+
# License: BSD-3-Clause-LBNL
6+
7+
set -eu -o pipefail
8+
9+
# `man apt.conf`:
10+
# Number of retries to perform. If this is non-zero APT will retry
11+
# failed files the given number of times.
12+
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries
13+
14+
sudo apt-get -qqq update
15+
sudo apt-get install -y \
16+
build-essential \
17+
ca-certificates \
18+
cmake \
19+
g++ \
20+
gfortran \
21+
gnupg \
22+
libopenmpi-dev \
23+
openmpi-bin \
24+
pkg-config \
25+
wget
26+
27+
VERSION_DOTTED=${1-12.0} && VERSION_DASHED=$(sed 's/\./-/' <<< $VERSION_DOTTED)
28+
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
29+
sudo dpkg -i cuda-keyring_1.0-1_all.deb
30+
sudo apt-get update
31+
sudo apt-get install -y \
32+
cuda-command-line-tools-$VERSION_DASHED \
33+
cuda-compiler-$VERSION_DASHED \
34+
cuda-cupti-dev-$VERSION_DASHED \
35+
cuda-minimal-build-$VERSION_DASHED \
36+
cuda-nvml-dev-$VERSION_DASHED \
37+
cuda-nvtx-$VERSION_DASHED \
38+
libcublas-dev-$VERSION_DASHED \
39+
libcufft-dev-$VERSION_DASHED \
40+
libcurand-dev-$VERSION_DASHED \
41+
libcusparse-dev-$VERSION_DASHED
42+
sudo ln -s cuda-$VERSION_DOTTED /usr/local/cuda

.github/workflows/gpu_action.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@ jobs:
2929
sudo apt-get -qq -y install curl cmake jq clang g++>=9.3.0
3030
3131
- name: Install CUDA
32-
# from https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_network
33-
run: |
34-
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
35-
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
36-
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
37-
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
38-
sudo apt-get update
39-
sudo apt-get -y install cuda-toolkit-11-8
32+
run: .github/workflows/dependencies/dependencies_nvcc.sh 11.8
4033

4134
- name: Install hypre
4235
run: |

.github/workflows/hip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
cd ../..
2525
2626
- name: Dependencies
27-
run: .github/workflows/dependencies_hip.sh
27+
run: .github/workflows/dependencies/dependencies_hip.sh
2828

2929
- name: compile flame_wave
3030
run: |

Docs/source/radiation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ frequency, and :math:`m`, :math:`n` and :math:`p` are constants. For the gray so
126126

127127
::
128128

129-
Opacity_dir := rad_power_law
129+
OPACITY_DIR := rad_power_law
130130

131131
in your GNUmakefile. See § \ `3.3.1 <#sec:opacpars>`__ for instructions on how
132132
to configure the parameters used for this opacity setup. If you would prefer a different

Exec/radiation_tests/Rad2Tshock/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ EOS_DIR := gamma_law
1717
NETWORK_DIR := general_null
1818
NETWORK_INPUTS := gammalaw.net
1919

20-
Opacity_dir := rad_power_law
20+
OPACITY_DIR := rad_power_law
2121

2222
PROBLEM_DIR ?= ./
2323

Exec/radiation_tests/RadBlastWave/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ EOS_DIR := gamma_law
1515
NETWORK_DIR := general_null
1616
NETWORK_INPUTS := gammalaw.net
1717

18-
Opacity_dir := rad_power_law
18+
OPACITY_DIR := rad_power_law
1919

2020
PROBLEM_DIR ?= ./
2121

Exec/radiation_tests/RadBreakout/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CASTRO_HOME ?= ../../..
1818
EOS_DIR = breakout
1919
NETWORK_DIR := general_null
2020
NETWORK_INPUTS = breakout.net
21-
Opacity_dir = breakout
21+
OPACITY_DIR = breakout
2222

2323
PROBLEM_DIR ?= ./
2424

Exec/radiation_tests/RadFront/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ EOS_DIR := gamma_law
1717
NETWORK_DIR := general_null
1818
NETWORK_INPUTS := gammalaw.net
1919

20-
Opacity_dir := rad_power_law
20+
OPACITY_DIR := rad_power_law
2121

2222
PROBLEM_DIR ?= ./
2323

Exec/radiation_tests/RadShestakovBolstad/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ EOS_DIR := rad_power_law
1717
NETWORK_DIR := general_null
1818
NETWORK_INPUTS := gammalaw.net
1919

20-
Opacity_dir := rad_power_law
20+
OPACITY_DIR := rad_power_law
2121

2222
# number of radiation groups - this needs to correspond to radiation.nGroups in
2323
# the inputs file

Exec/radiation_tests/RadSourceTest/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ EOS_DIR := rad_power_law
2020
NETWORK_DIR := general_null
2121
NETWORK_INPUTS := gammalaw.net
2222

23-
Opacity_dir := rad_power_law
23+
OPACITY_DIR := rad_power_law
2424

2525
# use radiation interpbndry
2626
RAD_INTERP = TRUE

Exec/radiation_tests/RadSphere/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ EOS_DIR := rad_power_law
1717
NETWORK_DIR := general_null
1818
NETWORK_INPUTS := gammalaw.net
1919

20-
Opacity_dir := rad_power_law
20+
OPACITY_DIR := rad_power_law
2121

2222
# number of radiation groups - this needs to correspond to radiation.nGroups in
2323
# the inputs file

Exec/radiation_tests/RadSuOlson/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ EOS_DIR := rad_power_law
1616
NETWORK_DIR := general_null
1717
NETWORK_INPUTS := gammalaw.net
1818

19-
Opacity_dir := rad_power_law
19+
OPACITY_DIR := rad_power_law
2020

2121
PROBLEM_DIR ?= ./
2222

Exec/radiation_tests/RadSuOlsonMG/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ EOS_DIR := rad_power_law
1717
NETWORK_DIR := general_null
1818
NETWORK_INPUTS := gammalaw.net
1919

20-
Opacity_dir := rad_power_law
20+
OPACITY_DIR := rad_power_law
2121

2222
NGROUPS := 2
2323

Exec/radiation_tests/RadThermalWave/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ EOS_DIR := gamma_law
1717
NETWORK_DIR := general_null
1818
NETWORK_INPUTS := gammalaw.net
1919

20-
Opacity_dir := rad_power_law
20+
OPACITY_DIR := rad_power_law
2121

2222
PROBLEM_DIR ?= ./
2323

Exec/science/bwp-rad/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ NETWORK_DIR := general_null
2929
NETWORK_INPUTS := H_He.net
3030

3131
# power-law opacity
32-
Opacity_dir := rad_power_law
32+
OPACITY_DIR := rad_power_law
3333

3434
PROBLEM_DIR ?= ./
3535

Exec/science/planet/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ NETWORK_DIR := general_null
3333
NETWORK_INPUTS := ./taeho.net
3434

3535
# power-law opacity
36-
Opacity_dir := rad_power_law
36+
OPACITY_DIR := rad_power_law
3737

3838
PROBLEM_DIR ?= ./
3939

0 commit comments

Comments
 (0)