Skip to content

Commit

Permalink
Remove redundant memset
Browse files Browse the repository at this point in the history
  • Loading branch information
chillenzer committed Nov 25, 2024
1 parent 36e91a9 commit 42a96e9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/include/mallocMC/creationPolicies/FlatterScatter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,6 @@ namespace mallocMC::CreationPolicies
using Idx = typename alpaka::trait::IdxType<TAcc>::type;
using VecType = alpaka::Vec<Dim, Idx>;

auto poolView = alpaka::createView(dev, reinterpret_cast<char*>(pool), alpaka::Vec<Dim, Idx>(memsize));
alpaka::memset(queue, poolView, 0U);
alpaka::wait(queue);

auto workDivSingleThread
= alpaka::WorkDivMembers<Dim, Idx>{VecType::ones(), VecType::ones(), VecType::ones()};
alpaka::exec<TAcc>(queue, workDivSingleThread, FlatterScatterAlloc::InitKernel{}, heap, pool, memsize);
Expand Down

0 comments on commit 42a96e9

Please sign in to comment.