From 158e2ed16db887e023a9d7df2a1440c7daf3dc1c Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Tue, 26 Jun 2018 00:41:35 +0100 Subject: [PATCH] Existence is a complex affair. [ROCm/hip commit: 3c83e047dfd511bd170d981dbcc5ee5eeb0ce7f3] --- projects/hip/include/hip/hcc_detail/hip_complex.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/hip/include/hip/hcc_detail/hip_complex.h b/projects/hip/include/hip/hcc_detail/hip_complex.h index 973d5f564b..5ed3b04b55 100644 --- a/projects/hip/include/hip/hcc_detail/hip_complex.h +++ b/projects/hip/include/hip/hcc_detail/hip_complex.h @@ -27,6 +27,10 @@ THE SOFTWARE. #include #if __cplusplus +#define MAKE_COMPONENT_CONSTRUCTOR_TWO_COMPONENT(type, type1) \ + __device__ __host__ type(type1 val) : x(val), y(val) {} \ + __device__ __host__ type(type1 val1, type1 val2) : x(val1), y(val2) {} + #define COMPLEX_ADD_OP_OVERLOAD(type) \ __device__ __host__ static inline type operator+(const type& lhs, const type& rhs) { \ type ret; \