Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
75 changes: 72 additions & 3 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,84 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize, reopened, closed]

# One run at a time for main, and per PR (a newer push to a PR cancels its
# running build). Runs of different groups can overlap: the deploy step then
# rebases onto gh-pages instead of force-pushing over the other run.
concurrency:
group: deploy-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
docs:
# main, and open PRs from branches of this repo (PRs from forks cannot
# write to gh-pages)
if: >-
github.event_name == 'push' ||
(github.event.action != 'closed' &&
github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: write
pull-requests: write
env:
# empty for main (site at the root), previews/PR<N> for a PR
PREVIEW: ${{ github.event_name == 'pull_request' && format('previews/PR{0}', github.event.number) || '' }}
steps:
- uses: actions/checkout@v4

- name: 🚀 Build and Deploy
- name: 🛠️ Build
uses: tlienart/xranklin-build-action@main
with:
BASE_URL_PREFIX: "GPU4GEO"
BASE_URL_PREFIX: ""
PREVIEW: ${{ env.PREVIEW }}
DEPLOY: false

# Deploy here rather than in the build action, which force-pushes and
# would delete the previews/ folder on each deploy of main.
- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: __site
target-folder: ${{ env.PREVIEW }}
clean-exclude: previews/
force: false

- name: 💬 Comment preview link
if: github.event_name == 'pull_request' && github.event.action != 'synchronize'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr comment ${{ github.event.number }} --repo "$GITHUB_REPOSITORY" --body \
"🔍 Preview: https://gpu4geo.org/${PREVIEW}/ (live a minute or two after each build; removed when this PR is closed)"

cleanup:
if: >-
github.event_name == 'pull_request' && github.event.action == 'closed' &&
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages

- name: 🧹 Remove PR preview
run: |
dir="previews/PR${{ github.event.number }}"
if [ ! -d "$dir" ]; then echo "No preview at $dir"; exit 0; fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git rm -rq "$dir"
git commit -qm "Remove preview of PR #${{ github.event.number }}"
for attempt in 1 2 3; do
git push origin gh-pages && exit 0
git pull --rebase origin gh-pages
done
exit 1
3 changes: 2 additions & 1 deletion config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++

prepath = ""
# No `prepath` here: it would override the prefix set by the build action
# (empty for the live site, previews/PR<N> for PR previews).

ignore = ["website-memo.md", "_pubbot/"]

Expand Down
17 changes: 6 additions & 11 deletions posts/julia-hackathon-v10-2026-news_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Strictly speaking this wasn't during the Hackathon, but somewhat before. [MagmaT

## SeismicWavePC.jl: a new julia code to simulate seismic waves and do full-waveform inversion on (parallel) GPUs

*Boris Kaus and Ludovic Raess*
*Boris Kaus and Ludovic Räss*

We released [SeismicWavePC.jl](https://github.com/JuliaGeodynamics/SeismicWavePC.jl), a pure Julia package for seismic waves in 2D and 3D visco-elastic media and for full-waveform inversion (FWI). It runs on CPU threads, on NVIDIA, AMD and Apple GPUs, and with MPI. It started as a port of the Fortran code OpenSWPC, whose seismograms it reproduces to round-off. It handles topography, oceans, attenuation, VTI anisotropy, PML boundaries and teleseismic plane waves, and takes any model built with [GeophysicalModelGenerator.jl](https://github.com/JuliaGeodynamics/GeophysicalModelGenerator.jl), such as thermal models of magmatic systems with MAGEMin velocities. It also computes exact adjoint gradients and Born modelling, and plugs into Optim.jl and Turing.jl for deterministic and Bayesian inversion.

Expand All @@ -57,25 +57,20 @@ On the elastic Marmousi2 benchmark (5 m grid, 2.4 million cells, 5317 time steps

**And yes it is fast.** Every cell is treated as a point mass plus its quadrupole term, and cells close to a station are subdivided adaptively. We compared it with [Harmonica](https://github.com/fatiando/harmonica), [SimPEG](https://simpeg.xyz), GMT `gravprisms`, [gravmagsubs](https://cran.r-project.org/package=gravmagsubs) (Fortran) and [Tesseroids](https://github.com/leouieda/tesseroids) (C) on the same model with 10,201 stations above 300,000 prisms. GMG agrees with their exact prism formulas to 2×10⁻⁶ of the maximum anomaly, far below the precision of gravity data. On a single CPU core it takes 3 s, compared with 33 s for SimPEG and 109–240 s for the other codes: 11–80 times faster. On 16 threads, GMG is 3–18 times faster than the other parallel codes, and on the GPU of an Apple M4 Max the model takes 0.27 s. For tesseroids on a sphere, GMG is about 35 times faster than Harmonica and Tesseroids on a single core. The full benchmark, including its setup, is in the [documentation](https://juliageodynamics.github.io/GeophysicalModelGenerator.jl/dev/man/gravity_code#Benchmark).

## GeophysicalModelGenerator.jl: giving the gravity solver a bit of love

*Boris Kaus*

## GeoValaisWallis3D.jl

*Thibault Duretz, Boris Kaus, Ludovic Raess*
*Thibault Duretz, Boris Kaus, Ludovic Räss*

The hackathon week was extremely fruitful: the latest developments of [GeophysicalModelGenerator.jl v0.10.1](https://github.com/JuliaGeodynamics/GeophysicalModelGenerator.jl) could be put to use straight away. Starting from openly available geological and geophysical datasets, mostly from [swisstopo](https://map.geo.admin.ch), we built a 3D model of the Valais/Wallis region: [GeoValaisWallis3D.jl](https://github.com/tduretz/GeoValaisWallis3D.jl). It combines the [swissALTIRegio](https://www.swisstopo.admin.ch/en/height-model-swissaltiregio) topography, the [swissBEDROCK](https://www.swisstopo.admin.ch/en/3d-swissbedrock-en) thickness of the Quaternary valley fill, the [Tectonic Map of Switzerland](https://map.geo.admin.ch/?layers=ch.swisstopo.geologie-tektonische_karte), the crustal layers and densities of [3D-ALPS](https://doi.org/10.5880/GFZ.4.5.2019.004), the Moho of [Spada et al. (2013)](https://doi.org/10.1093/gji/ggt148), the [3D model of the Nappe de Morcles](https://doi.org/10.6084/m9.figshare.c.4130759), the [Gravimetric Atlas of Switzerland](https://map.geo.admin.ch/?layers=ch.swisstopo.geologie-gravimetrischer_atlas.messpunkte), and the [seismic subsoil classes](https://www.vs.ch/web/sdm/cartes-de-sol-de-fondation) of the Rhône valley (CREALP). All of these can easily be plotted together in the same 3D coordinates and explored interactively with tools such as [ParaView](https://www.paraview.org) or [Makie](https://docs.makie.org/stable/). In addition, the new adjoint of GMG's gravity code, coupled to the LSQR solver of [Krylov.jl](https://github.com/JuliaSmoothOptimizers/Krylov.jl), allowed us to perform a least-squares inversion of the Bouguer anomaly. The result is a density model that explains the gravity data over the canton of Valais/Wallis: the rms misfit drops from 18 to 2 mGal at about 8,000 gravity stations. The inversion solves for about one million unknowns and runs in about a minute on a laptop GPU.

~~~
<p align="center">
<img src="[../../assets/images/Unzen_2D_waves_10m_curvilinear.gif](https://raw.githubusercontent.com/tduretz/GeoValaisWallis3D.jl/main/docs/figures/showcase.jpg)" title="2D model of seismic wave propagation below a volcano with magma reservoir" alt="2D model of seismic wave propagation below a volcano with magma reservoir" width="70%">
<img src="https://raw.githubusercontent.com/tduretz/GeoValaisWallis3D.jl/main/figures/curvilinear/overview.jpg" title="3D geological and geophysical model of the Valais/Wallis region" alt="3D geological and geophysical model of the Valais/Wallis region" width="70%">
</p>
~~~

## A high-performance computation of 1946-like earthquake in canton Valais/Wallis

*Thibault Duretz, Boris Kaus, Ludovic Raess*
## A 1946-like earthquake in canton Valais/Wallis

Together with the release of [SeismicWavePC.jl](https://github.com/JuliaGeodynamics/SeismicWavePC.jl), which runs on GPU clusters, [GeoValaisWallis3D.jl](https://github.com/tduretz/GeoValaisWallis3D.jl) allowed us to run a 3D wave-propagation simulation of a scenario resembling the damaging 1946 Valais (Sion) earthquake, of moment magnitude 5.8 ([ValaisRawilWaves](https://github.com/tduretz/ValaisRawilWaves)). The source is placed in the Rawil fault zone north of Sion–Sierre, at 6 km depth. The model covers the whole canton (130 × 95 km, down to 60 km depth) with 8.4 billion cells, 25 m apart horizontally and, near the surface, vertically. This resolves frequencies up to 2 Hz, even in the soft Quaternary sediments of the Rhône valley (Vs ≈ 350 m/s). The model includes the effect of the topography, but also of the complex geological structure of the Valais/Wallis, which leads to local site amplification in the valleys. The simulation covers 40 seconds of wave propagation. It was run on [Daint](https://www.cscs.ch/computers/alps) on the Alps infrastructure of CSCS, with access granted through the dGPU4GEO project. At this resolution the simulation needs 16 NVIDIA GH200 GPUs (4 nodes) for about 45 minutes.
*Thibault Duretz, Boris Kaus, Ludovic Räss*

Combining [SeismicWavePC.jl](https://github.com/JuliaGeodynamics/SeismicWavePC.jl) and [GeoValaisWallis3D.jl](https://github.com/tduretz/GeoValaisWallis3D.jl), we ran a 3D wave-propagation scenario across the whole canton on the GPUs of Daint at CSCS. This one got its own post, movie included: [read more](/posts/julia-hackathon-v10-2026-news_2/).
25 changes: 25 additions & 0 deletions posts/julia-hackathon-v10-2026-news_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
+++
using Dates

title = "A 1946-like earthquake in Valais/Wallis on GPUs"
date = Date(2026, 12, 3)
reading_time = "2-minutes read"

tags = ["activities", "Julia", "coding", "HPC"]
+++

*Thibault Duretz, Boris Kaus, Ludovic Räss*

A follow-up on the [outcome of our 10th Julia hackathon](/posts/julia-hackathon-v10-2026-news_1/): a high-performance computation of a 1946-like earthquake in canton Valais/Wallis.

Together with the release of [SeismicWavePC.jl](https://github.com/JuliaGeodynamics/SeismicWavePC.jl), which runs on GPU clusters, [GeoValaisWallis3D.jl](https://github.com/tduretz/GeoValaisWallis3D.jl) allowed us to run a 3D wave-propagation simulation of a scenario resembling the damaging 1946 Valais (Sion) earthquake, of moment magnitude 5.8 ([ValaisRawilWaves](https://github.com/tduretz/ValaisRawilWaves)). The source is placed in the Rawil fault zone north of Sion–Sierre, at 6 km depth. The model covers the whole canton (130 × 95 km, down to 60 km depth) with 8.4 billion cells, 25 m apart horizontally and, near the surface, vertically. This resolves frequencies up to 2 Hz, even in the soft Quaternary sediments of the Rhône valley (Vs ≈ 350 m/s). The model includes the effect of the topography, but also of the complex geological structure of the Valais/Wallis, which leads to local site amplification in the valleys. The simulation covers 40 seconds of wave propagation. It was run on [Daint](https://www.cscs.ch/computers/alps) on the Alps infrastructure of CSCS, with access granted through the ∂GPU4GEO project. At this resolution the simulation needs 16 NVIDIA GH200 GPUs (4 nodes) for about 45 minutes.

{{youtube cGpXdz-sTz0}}

## Following the mountains

In a second run, the grid follows the Alpine topography, including the sediments of the Rhône valley. This simulation resolves frequencies up to 2 Hz on 9 billion grid points. It ran on 48 GH200 GPUs of Daint at 100 billion grid-point updates per second: 40 seconds of shaking in 5.5 hours.

{{youtube XqogthchFas}}

This is a research scenario, not a hazard assessment. More movies on our [YouTube channel](https://www.youtube.com/@gpu4geo) and on the [Videos](/videos/) page.
4 changes: 4 additions & 0 deletions website-memo.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ julia> serve(clear=true)

_If nothing shows up, open a browser and heat to `http://localhost:8000/`._

## Previews

Open a pull request against `main` from a branch of this repo: the site is built and published at `https://gpu4geo.org/previews/PR<N>/` (a comment on the PR gives the link), updated on each push, and removed when the PR is closed.

## Publishing workflow

Most of the publishing workflow will result in adding markdown `.md` files in the [/posts](posts)
Expand Down
Loading