Skip to content

Commit 4c78908

Browse files
committed
Add __host__ directives where needed
1 parent a98645b commit 4c78908

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/auxiliary/UniquePtr.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ namespace auxiliary
6565
} // namespace auxiliary
6666

6767
template <typename T>
68+
#ifdef __HIPCC__
69+
__host__
70+
#endif
6871
UniquePtrWithLambda<T>::UniquePtrWithLambda() = default;
6972

7073
template <typename T>

src/backend/BaseRecord.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ namespace internal
5656
typename T_BaseRecord_,
5757
typename T_BaseRecordData_,
5858
typename T_BaseIterator>
59+
#ifdef __HIPCC__
60+
__host__
61+
#endif
5962
ScalarIterator<T_BaseRecord_, T_BaseRecordData_, T_BaseIterator>::
6063
ScalarIterator() = default;
6164

src/snapshots/RandomAccessIterator.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ template <typename iterator_t>
1010
RandomAccessIterator<iterator_t>::~RandomAccessIterator() = default;
1111

1212
template <typename iterator_t>
13+
#ifdef __HIPCC__
14+
__host__
15+
#endif
1316
RandomAccessIterator<iterator_t>::RandomAccessIterator(
1417
RandomAccessIterator const &other) = default;
1518
template <typename iterator_t>
19+
#ifdef __HIPCC__
20+
__host__
21+
#endif
1622
RandomAccessIterator<iterator_t>::RandomAccessIterator(
1723
RandomAccessIterator
1824
&&other) noexcept(noexcept(iterator_t(std::declval<iterator_t &&>()))) =

0 commit comments

Comments
 (0)