Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Jan 11, 2023
1 parent cf4358e commit 487deee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions core/src/HIP/Kokkos_HIP_Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,19 @@ Kokkos::HIP::size_type *HIPInternal::scratch_functor(

Kokkos::HIP::size_type *HIPInternal::scratch_functor_host(
const std::size_t size) const {
if (verify_is_initialized("scratch_functor_host") && m_scratchFunctorSize < size) {
if (verify_is_initialized("scratch_functor_host") &&
m_scratchFunctorSize < size) {
m_scratchFunctorSize = size;

using Record = Kokkos::Impl::SharedAllocationRecord<Kokkos::HIPHostPinnedSpace, void>;
using Record =
Kokkos::Impl::SharedAllocationRecord<Kokkos::HIPHostPinnedSpace, void>;

if (m_scratchFunctorHost)
Record::decrement(Record::get_record(m_scratchFunctorHost));

Record *const r =
Record::allocate(Kokkos::HIPHostPinnedSpace(), "Kokkos::InternalScratchFunctorHost",
m_scratchFunctorSize);
Record *const r = Record::allocate(Kokkos::HIPHostPinnedSpace(),
"Kokkos::InternalScratchFunctorHost",
m_scratchFunctorSize);

Record::increment(r);

Expand Down
6 changes: 3 additions & 3 deletions core/src/HIP/Kokkos_HIP_Instance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class HIPInternal {
std::size_t m_scratchFlagsCount = 0;
mutable std::size_t m_scratchFunctorSize = 0;

size_type *m_scratchSpace = nullptr;
size_type *m_scratchFlags = nullptr;
mutable size_type *m_scratchFunctor = nullptr;
size_type *m_scratchSpace = nullptr;
size_type *m_scratchFlags = nullptr;
mutable size_type *m_scratchFunctor = nullptr;
mutable size_type *m_scratchFunctorHost = nullptr;

hipStream_t m_stream = nullptr;
Expand Down

0 comments on commit 487deee

Please sign in to comment.