Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Third Party committed Feb 27, 2023
1 parent 86c7b76 commit 7ea26e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
10 changes: 2 additions & 8 deletions examples/alpaka/asyncblur/asyncblur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,7 @@ try
hostChunkView[chunkNr](y, x) = subViewHost(y, x);
}
for(std::size_t i = 0; i < devMapping.blobCount; i++)
alpaka::memcpy(
queue[chunkNr],
devOldView[chunkNr].blobs()[i],
hostChunkView[chunkNr].blobs()[i]);
alpaka::memcpy(queue[chunkNr], devOldView[chunkNr].blobs()[i], hostChunkView[chunkNr].blobs()[i]);

alpaka::exec<Acc>(
queue[chunkNr],
Expand All @@ -343,10 +340,7 @@ try
llama::shallowCopy(devNewView[chunkNr]));

for(std::size_t i = 0; i < devMapping.blobCount; i++)
alpaka::memcpy(
queue[chunkNr],
hostChunkView[chunkNr].blobs()[i],
devNewView[chunkNr].blobs()[i]);
alpaka::memcpy(queue[chunkNr], hostChunkView[chunkNr].blobs()[i], devNewView[chunkNr].blobs()[i]);
}

// Wait for not finished tasks on accelerator
Expand Down
6 changes: 2 additions & 4 deletions include/llama/View.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,10 +648,8 @@ namespace llama
LLAMA_FN_HOST_ACC_INLINE auto transformBlobs(View& view, const TransformBlobFunc& transformBlob)
{
constexpr auto blobCount = std::decay_t<View>::Mapping::blobCount;
auto blobs = internal::makeTransformedBlobArray(
view.blobs(),
transformBlob,
std::make_index_sequence<blobCount>{});
auto blobs
= internal::makeTransformedBlobArray(view.blobs(), transformBlob, std::make_index_sequence<blobCount>{});
return llama::View<typename View::Mapping, typename decltype(blobs)::value_type, typename View::Accessor>{
view.mapping(),
std::move(blobs),
Expand Down

0 comments on commit 7ea26e9

Please sign in to comment.