Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI only] reproducer for ascent y-axis slice GPU issue #41

Closed
Closed
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
49 changes: 49 additions & 0 deletions inputs/ascent_broken_on_gpu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
-
action: "add_pipelines"
pipelines:
pl1:
f2:
type: "slice"
params:
point:
x: 0.0
y: 0.0
z: 0.0
normal:
x: 0.0
y: 1.0
z: 0.0
-
action: "add_scenes"
scenes:
s1:
plots:
p1:
type: "pseudocolor"
field: "Density"
pipeline: "pl1"
color_table:
name: "Viridis"
renders:
r1:
image_prefix: "dens%05d"
annotations: "true"
camera:
look_at: [0.0, 0.0, 0.0]
position: [0.0, -0.25, 0.0]
up: [0.0, 0.0, 1.0]
-
action: "add_extracts"
extracts:
yslice_extract:
type: "relay"
pipeline: "pl1"
params:
path: "yslice"
protocol: "blueprint/mesh/hdf5"
num_files: 2
e1:
type: "relay"
params:
path: "blueprint"
protocol: "blueprint/mesh/hdf5"
18 changes: 18 additions & 0 deletions inputs/ascent_working_on_gpu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-
action: "add_scenes"
scenes:
s1:
plots:
p1:
type: "pseudocolor"
field: "Density"
color_table:
name: "Viridis"
renders:
r1:
image_prefix: "dens%05d"
annotations: "true"
camera:
look_at: [0.0, 0.0, 0.0]
position: [0.0, -0.25, 0.0]
up: [0.0, 0.0, 1.0]
73 changes: 73 additions & 0 deletions inputs/rand_blast_ascent.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# AthenaPK - a performance portable block structured AMR MHD code
# Copyright (c) 2021, Athena Parthenon Collaboration. All rights reserved.
# Licensed under the BSD 3-Clause License (the "LICENSE");

<comment>
problem = 3D Random blasts
reference = Balsara and Kim 2004 ApJ 602:1079–1090

<job>
problem_id = rand_blast

<problem/rand_blast>
rho0 = 1.0 # initial mean density
p0 = 0.3 # initial mean pressure
Bx0 = 0.056117 # initial magnetic field (x-direction)

<parthenon/mesh>
refinement = none
nghost = 2

nx1 = 128
x1min = -0.1
x1max = 0.1
ix1_bc = periodic
ox1_bc = periodic

nx2 = 128
x2min = -0.1
x2max = 0.1
ix2_bc = periodic
ox2_bc = periodic

nx3 = 128
x3min = -0.1
x3max = 0.1
ix3_bc = periodic
ox3_bc = periodic

<parthenon/meshblock>
nx1=64
nx2=64
nx3=64

<parthenon/time>
integrator = vl2
cfl = 0.3
tlim = 0.03
nlim = 100000
perf_cycle_offset = 2 # number of inital cycles not to be included in perf calc

<hydro>
fluid = glmmhd
glmmhd_source = dedner_extended
eos = adiabatic
reconstruction = plm
riemann = hlle
gamma = 1.666666666666667 # gamma = C_p/C_v
scratch_level = 0 # 0 is actual scratch (tiny); 1 is HBM

<parthenon/output0>
file_type = hdf5
dt = 0.003
variables = prim

<parthenon/output1>
file_type = hst
dt = 0.0003

<parthenon/output3>
file_type = ascent
dt = 0.003
actions_file = inputs/ascent_broken_on_gpu.yaml