From 3eb353ec440d426abdc8514de9644dff19a00577 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 [ROCm/clr commit: 6815c7bdd71626ef5a23e78ed30682a962a83951] --- projects/clr/hipamd/include/hip/nvcc_detail/hip_complex.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/clr/hipamd/include/hip/nvcc_detail/hip_complex.h b/projects/clr/hipamd/include/hip/nvcc_detail/hip_complex.h index ea2ddfdf4e..d0e45d26db 100644 --- a/projects/clr/hipamd/include/hip/nvcc_detail/hip_complex.h +++ b/projects/clr/hipamd/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); }