Use __HIP__ instead of __HIPCC__, and __CUDA__ instead of __CUDACC__

[ROCm/hip commit: 6536164914]
Tá an tiomantas seo le fáil i:
Laurent Morichetti tiomanta 2018-02-28 14:20:55 -08:00
1 tuismitheoir b32680706c
tiomantas 12e8f48181
3 comhad athraithe
+4 -4

Níor tháinig aon chomhaid le do chuardach

+1 -1
Féach ar an gComhad
@@ -525,7 +525,7 @@ do {\
*/
#elif defined(__clang__) && defined(__HIPCC__)
#elif defined(__clang__) && defined(__HIP__)
#define hipConfigureCall cudaConfigureCall
#define hipSetupArgument cudaSetupArgument
+1 -1
Féach ar an gComhad
@@ -64,7 +64,7 @@ THE SOFTWARE.
#define __shared__ tile_static
#define __constant__ __attribute__((hc))
#elif defined(__clang__) && defined(__HIPCC__)
#elif defined(__clang__) && defined(__HIP__)
#define __host__ __attribute__((host))
#define __device__ __attribute__((device))
+2 -2
Féach ar an gComhad
@@ -26,12 +26,12 @@ THE SOFTWARE.
// Common code included at start of every hip file.
// Auto enable __HIP_PLATFORM_HCC__ if compiling with HCC
// Other compiler (GCC,ICC,etc) need to set one of these macros explicitly
#if defined(__HCC__) || (defined(__clang__) && defined(__HIPCC__))
#if defined(__HCC__) || (defined(__clang__) && defined(__HIP__))
#define __HIP_PLATFORM_HCC__
#endif //__HCC__
// Auto enable __HIP_PLATFORM_NVCC__ if compiling with NVCC
#if defined(__NVCC__) || (defined(__clang__) && defined(__CUDACC__))
#if defined(__NVCC__) || (defined(__clang__) && defined(__CUDA__))
#define __HIP_PLATFORM_NVCC__
#ifdef __CUDACC__
#define __HIPCC__