Added nvcc path for hipComplex APIs

- Changed from inline to static inline for hipComplex AMD APIs
- Added NVCC path for hipComplex APIs mapped to cuComplex APIs

Change-Id: I809cf3a11b5b1c8bbc7a57c5fbcc3dc6745ccb95
This commit is contained in:
Aditya Atluri
2016-08-22 10:29:46 -05:00
parent a498753041
commit 0806958a72
3 changed files with 135 additions and 29 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ THE SOFTWARE.
#if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
#include <hip/hcc_detail/hipComplex.h>
#elif defined(__HIP_PLATFORM_NVCC__) && !defined (__HIP_PLATFORM_HCC__)
#include "cuComplex.h"
#include <hip/nvcc_detail/hipComplex.h>
#else
#error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");
#endif