Skip to content

Commit

Permalink
Only run GM layout variations when running update
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 4, 2024
1 parent 8096ae3 commit 59243ff
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions examples/alpaka/nbody/nbody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,20 +412,22 @@ set y2tics auto
problemSize / 1024,
alpaka::getAccName<Acc>());

constexpr auto runSMVariations = hasSharedMem<Acc> && runUpdate;

run<Acc, AoS, AoS>(plotFile);
if constexpr(hasSharedMem<Acc>)
if constexpr(runSMVariations)
run<Acc, AoS, SoA_SB>(plotFile);
if constexpr(hasSharedMem<Acc>)
if constexpr(runSMVariations)
run<Acc, AoS, AoSoA>(plotFile);
run<Acc, SoA_MB, AoS>(plotFile);
if constexpr(hasSharedMem<Acc>)
if constexpr(runSMVariations)
run<Acc, SoA_MB, SoA_SB>(plotFile);
if constexpr(hasSharedMem<Acc>)
if constexpr(runSMVariations)
run<Acc, SoA_MB, AoSoA>(plotFile);
run<Acc, AoSoA, AoS>(plotFile);
if constexpr(hasSharedMem<Acc>)
if constexpr(runSMVariations)
run<Acc, AoSoA, SoA_SB>(plotFile);
if constexpr(hasSharedMem<Acc>)
if constexpr(runSMVariations)
run<Acc, AoSoA, AoSoA>(plotFile);
run<Acc, SplitGpuGems, AoS>(plotFile);

Expand Down

0 comments on commit 59243ff

Please sign in to comment.