Skip to content

Commit 1b7dad7

Browse files
committed
Fix scrach level choice and fix name
1 parent 7a86a5c commit 1b7dad7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hydro/hydro.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ TaskStatus CalculateFluxes(MeshData<Real> *u0_data, MeshData<Real> *u1_data,
12951295
pencil_widths[p]; // number of elements in single cached var
12961296

12971297
using Cache1D = parthenon::ScratchPad1D<Real>;
1298-
const int scrach_level = 0; // 0 is actual scratch (tiny); 1 is HBM
1298+
const int scratch_level = 0; // 0 is actual scratch (tiny); 1 is HBM
12991299
size_t scratch_size_in_bytes = Cache1D::shmem_size(pencil_width) * 5;
13001300

13011301
const int Nb = u0_cons_pack.GetDim(5);
@@ -1311,7 +1311,7 @@ TaskStatus CalculateFluxes(MeshData<Real> *u0_data, MeshData<Real> *u1_data,
13111311
parthenon::team_policy policy(DevExecSpace(), NbNnNjNio, Kokkos::AUTO);
13121312

13131313
Kokkos::parallel_for(
1314-
"x3 recon PPM scratch",
1314+
"x3 recon PPM scratch " + std::to_string(pencil_width),
13151315
policy.set_scratch_size(scratch_level,
13161316
Kokkos::PerTeam(scratch_size_in_bytes)),
13171317
KOKKOS_LAMBDA(parthenon::team_mbr_t member) {

0 commit comments

Comments
 (0)