mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
Closes: https://bugs.gentoo.org/945875 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
26 lines
659 B
Diff
26 lines
659 B
Diff
Fix for: class template specialization of '__numeric_type' not in a namespace enclosing '__hip'
|
|
|
|
Backports https://github.com/ROCm/clr/pull/109
|
|
--- a/hipamd/include/hip/amd_detail/amd_math_functions.h
|
|
+++ b/hipamd/include/hip/amd_detail/amd_math_functions.h
|
|
@@ -41,19 +41,6 @@ THE SOFTWARE.
|
|
#include <stdint.h>
|
|
#endif // !defined(__HIPCC_RTC__)
|
|
|
|
-#if _LIBCPP_VERSION && __HIP__
|
|
-namespace std {
|
|
-template <>
|
|
-struct __numeric_type<_Float16>
|
|
-{
|
|
- static _Float16 __test(_Float16);
|
|
-
|
|
- typedef _Float16 type;
|
|
- static const bool value = true;
|
|
-};
|
|
-}
|
|
-#endif // _LIBCPP_VERSION
|
|
-
|
|
#pragma push_macro("__DEVICE__")
|
|
#pragma push_macro("__RETURN_TYPE")
|
|
|