High Frequency CyberShake

From SCECpedia
Jump to navigationJump to search

Cost

The cost to calculate an initial 1 Hz hazard curve for WNGC, with SGTs on Titan and post-processing on Blue Waters, was 230K SUs, broken down as follows:

  • SGT workflow: 40k SUs (17%)
    • GPU SGTs: 39K SUs (17%)
  • PP workflow: 190K SUs (83%)
    • Extraction: 88K SUs (39%)
    • Synthesis: 101K SUs (44%)

genslip v3.3.1

To move to higher frequencies, the rupture geometries must have a denser grid spacing, from 1000m for 0.5 Hz to 200 m for 1.0 Hz. We adopted genslip v3.3.1 to resolve an issue in which, since the dimensions of the rupture surfaces can vary a bit going from 1000m to 200m, some ruptures went from 8 rupture variations to 2, resulting in undersampling the rupture and causing artificially large ground motions (magenta curve below, compared to green and cyan):

Green = Run_ID 2465: 1000m SGTs, 1000m synth;
Magenta = Run_ID 2503: 200m SGTs, 200m synth;
Orange = Run_ID 2504: 1000m SGTs, 200m synth (interpolation);
Cyan = Run_ID 2507: 200m SGTs, 1000m synth (most points ignored)


To address this issue, we moved to genslip v3.3.1, which has the following modifications:

  1. Wavenumber filter modified so that tall skinny faults (short along strike, long down-dip like Puente Hills) don’t have strong horizontal striping pattern.
  2. Added stochastic perturbations for rupture initiation time and rise time about median value (V3.2 just used median value).
  3. Added built-in adjustment of rise time for dipping reverse faults (alphaT parameter of GP2010).
  4. Added option to self generate the random number seed based on fault dimensions, magnitude and fault location.
  5. Added option for hypocenter location to be randomly generated within code. Hypocenter can lie anywhere within fault plane, however, the probability is highest in the center and tapers linearly towards the edges. Parameters controlling the probability tapering can be provided by input or just left unspecified for default values.
  6. For random hypo centers and ERF input (like CyberShake), the number of realizations is determined using a relation that is proportional to fault area. Note that each realization has a unique combination of hypocenter and slip distribution (as opposed to previous version which had multiple slip models for each hypocenter. The formula for specifying the number of realizations is:

Nreal = C * Area / 10.0

where by default C=0.5. With a standard Mag/Area relation of M=log10(A)+4, this formula gives about 5,50,500 realizations for Mw=6,7,8, respectively. However, I’ve also limited the minimum number of realizations to be 10, so even a Mw=6 will get 10.

This seems to have resolved the issue, as can be seen in a comparison plot of the 1000m and 200m results for the TEST site below. Notice they visually match the cyan and green curves in the first plot, as well.

Genslip v3.3.1a TEST 1000m vs 200m.png

Optimizations

Reference problem: 2 rupture variations of source 128, rupture 1296 takes 5m48.195s when compiled with icc -O3 -xhost on Stampede using 1000m spacing.

  • Replaced bubble sort of sort_rake with qsort call: 0m25.547s (92.3% improvement)
  • Replaced fourg FFT with FFTW FFT, copied data over to FFTW structures: 0m23.045s (9.8% incremental improvement, 93.4% cumulative)
  • Removed sort entirely, since median is no longer used: 0m23.140s (0.4% worse)

SeisPSA code

Optimizations

Reference problem: WNGC, source 86, rupture 6, rupture variation 92 takes 15m11.722s when compiled using icc -O3 on Stampede.

  • TODO: Replace get_master_list with get_master_list_opt from 1 Hz extract SGT code
  • TODO: Replace find_sgt linear search with binary search
  • TODO: Replace time-domain convolution with FFT/frequency convolution/IFFT.