Fix HCC linkage error
MODIFY
thrust/detail/pointer.h
thrust/detail/pointer.h
@@ -151,6 +151,10 @@ template<typename Element, typename Tag, typename Reference, typename Derived>
__host__ __device__
explicit pointer(OtherElement *ptr);
+ // STREAMHPC Fixes HCC linkage error
+ __host__ __device__
+ explicit pointer(Element *ptr);
+
// OtherPointer's element_type shall be convertible to Element
// OtherPointer's system shall be convertible to Tag
template<typename OtherPointer>

MODIFY
thrust/detail/pointer.inl
thrust/detail/pointer.inl
@@ -38,6 +38,13 @@ template<typename Element, typename Tag, typename Reference, typename Derived>
: super_t(other)
{} // end pointer::pointer
+// STREAMHPC Fixes HCC linkage error
+template<typename Element, typename Tag, typename Reference, typename Derived>
+ __host__ __device__
+ pointer<Element,Tag,Reference,Derived>
+ ::pointer(Element* ptr)
+ : super_t(ptr)
+{} // end pointer::pointer
template<typename Element, typename Tag, typename Reference, typename Derived>
template<typename OtherPointer>

MODIFY
thrust/system/hip/memory.h
thrust/system/hip/memory.h
@@ -101,6 +101,10 @@ public:
{
}
+ // STREAMHPC Fixes HCC linkage error
+ __host__ __device__
+ explicit pointer(T *ptr) : super_t(ptr) {}
+
template <typename OtherPointer>
__host__ __device__
pointer(const OtherPointer &other,

Fix HCC linkage error