File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
libcudacxx/include/cuda/__type_traits Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,20 @@ inline constexpr bool __is_trivially_copyable_v<::cuda::std::complex<::__half>>
7272template <>
7373inline constexpr bool __is_trivially_copyable_v<::cuda::std::complex <::__nv_bfloat16>> = true ;
7474
75+ #if _CCCL_HAS_NVFP16()
76+
7577template <>
7678inline constexpr bool __is_trivially_copyable_v<::cuda::complex <::__half>> = true ;
7779
80+ #endif // _CCCL_HAS_NVFP16
81+
82+ #if _CCCL_HAS_NVBF16()
83+
7884template <>
7985inline constexpr bool __is_trivially_copyable_v<::cuda::complex <::__nv_bfloat16>> = true ;
8086
87+ #endif // _CCCL_HAS_NVBF16
88+
8189// if all the previous conditions fail, check if the type is an aggregate and all its members are trivially copyable
8290template <typename _Tp>
8391using __is_trivially_copyable_callable = ::cuda::std::bool_constant<__is_trivially_copyable_v<_Tp>>;
You can’t perform that action at this time.
0 commit comments