Skip to content

Commit

Permalink
Correct style issues found by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Nov 8, 2022
1 parent 00dcb8c commit 8907376
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/common/cuda_pinned_allocator.h
Expand Up @@ -66,8 +66,7 @@ class pinned_allocator {
XGBOOST_DEVICE inline pointer address(reference r) { return &r; }
XGBOOST_DEVICE inline const_pointer address(const_reference r) { return &r; }

inline pointer allocate(size_type cnt, const_pointer = 0)
{
inline pointer allocate(size_type cnt, const_pointer = 0) {
if (cnt > this->max_size()) { throw std::bad_alloc(); } // end if

pointer result(0);
Expand All @@ -81,11 +80,10 @@ class pinned_allocator {

XGBOOST_DEVICE inline bool operator==(pinned_allocator const& x) const { return true; }

XGBOOST_DEVICE inline bool operator!=(pinned_allocator const& x) const
{
XGBOOST_DEVICE inline bool operator!=(pinned_allocator const& x) const {
return !operator==(x);
}
};
}
}
}
} // namespace cuda
} // namespace common
} // namespace xgboost

0 comments on commit 8907376

Please sign in to comment.