Removed definition of abs(), real() & imag() from hip_complex.h (#1448)
Addresses SWDEV-201461.
This commit is contained in:
committato da
Maneesh Gupta
parent
96890792b0
commit
a7f52f8ea1
@@ -301,20 +301,4 @@ __device__ __host__ static inline hipDoubleComplex hipCfma(hipDoubleComplex p, h
|
||||
return make_hipDoubleComplex(real, imag);
|
||||
}
|
||||
|
||||
// Complex functions returning real numbers.
|
||||
#define __DEFINE_HIP_COMPLEX_REAL_FUN(func, hipFun) \
|
||||
__device__ __host__ inline float func(const hipFloatComplex& z) { return hipFun##f(z); } \
|
||||
__device__ __host__ inline double func(const hipDoubleComplex& z) { return hipFun(z); }
|
||||
|
||||
__DEFINE_HIP_COMPLEX_REAL_FUN(abs, hipCabs)
|
||||
__DEFINE_HIP_COMPLEX_REAL_FUN(real, hipCreal)
|
||||
__DEFINE_HIP_COMPLEX_REAL_FUN(imag, hipCimag)
|
||||
|
||||
// Complex functions returning complex numbers.
|
||||
#define __DEFINE_HIP_COMPLEX_FUN(func, hipFun) \
|
||||
__device__ __host__ inline hipFloatComplex func(const hipFloatComplex& z) { return hipFun##f(z); } \
|
||||
__device__ __host__ inline hipDoubleComplex func(const hipDoubleComplex& z) { return hipFun(z); }
|
||||
|
||||
__DEFINE_HIP_COMPLEX_FUN(conj, hipConj)
|
||||
|
||||
#endif
|
||||
#endif //HIP_INCLUDE_HIP_HCC_DETAIL_HIP_COMPLEX_H
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user