Skip to content

Commit

Permalink
make runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetyusufoglu committed Oct 8, 2024
1 parent bce203a commit 1c07b32
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions benchmarks/cloverleaf/src/cloverLeafMainTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,18 @@ void testKernels()
// Define work divisions
const alpaka::Vec<Dim3, Idx> size{nx, ny, nz};

auto const bundeledInitKernel = alpaka::KernelBundle(
alpaka::KernelCfg<Acc> const kernelCfg = {size, alpaka::Vec<Dim3, Idx>::ones()};

auto workDiv = alpaka::getValidWorkDiv(
kernelCfg,
devAcc,
InitializerKernel{},
mdDensity,
mdEnergy,
mdPressure,
mdVelocityX,
mdVelocityY,
mdVelocityZ);

auto workDiv = alpaka::getValidWorkDivForKernel<Acc>(
devAcc,
bundeledInitKernel,
size,
alpaka::Vec<Dim3, Idx>::ones(),
false,
alpaka::GridBlockExtentSubDivRestrictions::Unrestricted);
// Simulation parameters
float totalTime = 0.0f; // Total simulation time

Expand Down

0 comments on commit 1c07b32

Please sign in to comment.