From 0b1e698e7409fead6fcabc38e84eb966bdcd894a Mon Sep 17 00:00:00 2001 From: Nico Trost Date: Thu, 14 Jun 2018 21:49:54 +0200 Subject: [PATCH] added missing hipCmul() to nvcc_detail/hip_complex.h --- include/hip/nvcc_detail/hip_complex.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/hip/nvcc_detail/hip_complex.h b/include/hip/nvcc_detail/hip_complex.h index ea2ddfdf4e..d0e45d26db 100644 --- a/include/hip/nvcc_detail/hip_complex.h +++ b/include/hip/nvcc_detail/hip_complex.h @@ -83,6 +83,10 @@ __device__ __host__ static inline hipDoubleComplex hipCsub(hipDoubleComplex p, h return cuCsub(p, q); } +__device__ __host__ static inline hipDoubleComplex hipCmul(hipDoubleComplex p, hipDoubleComplex q) { + return cuCmul(p, q); +} + __device__ __host__ static inline hipDoubleComplex hipCdiv(hipDoubleComplex p, hipDoubleComplex q) { return cuCdiv(p, q); }