Skip to content

Commit

Permalink
256 64 002
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetyusufoglu committed Oct 23, 2024
1 parent 36f0dac commit 9432c2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/heatEquation2D/src/heatEquation2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ auto example(TAccTag const&) -> int

// simulation defines
// {Y, X}
constexpr alpaka::Vec<Dim, Idx> numNodes{128, 128};
constexpr alpaka::Vec<Dim, Idx> numNodes{256, 256};
constexpr alpaka::Vec<Dim, Idx> haloSize{2, 2};
constexpr alpaka::Vec<Dim, Idx> extent = numNodes + haloSize;

constexpr uint32_t numTimeSteps = 6000;
constexpr double tMax = 0.04;
constexpr double tMax = 0.02;

// x, y in [0, 1], t in [0, tMax]
constexpr double dx = 1.0 / static_cast<double>(extent[1] - 1);
Expand Down Expand Up @@ -100,8 +100,8 @@ auto example(TAccTag const&) -> int
constexpr alpaka::Vec<Dim, Idx> elemPerThread{1, 1};

// Appropriate chunk size to split your problem for your Acc
constexpr Idx xSize = 32u;
constexpr Idx ySize = 32u;
constexpr Idx xSize = 64u;
constexpr Idx ySize = 64u;
constexpr Idx halo = 2u;
constexpr alpaka::Vec<Dim, Idx> chunkSize{ySize, xSize};
constexpr auto sharedMemSize = (ySize + halo) * (xSize + halo);
Expand Down

0 comments on commit 9432c2e

Please sign in to comment.