C guarding the apis

[ROCm/hip commit: 496da0aabd]
This commit is contained in:
Aditya Atluri
2016-03-30 06:08:50 -05:00
parent 3683e2a3bd
commit afd8f2bcfc
10 changed files with 64 additions and 97 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ THE SOFTWARE.
#define __HIP_PLATFORM_HCC__
#define __HIPCC__
#if defined(__HCC_ACCELERATOR__) and (__HCC_ACCELERATOR__ != 0)
#if defined(__HCC_ACCELERATOR__) && (__HCC_ACCELERATOR__ != 0)
#define __HIP_DEVICE_COMPILE__ 1
#else
#define __HIP_DEVICE_COMPILE__ 0
@@ -46,7 +46,7 @@ THE SOFTWARE.
# define __HIPCC__
# endif
#if defined(__CUDA_ARCH__) and (__CUDA_ARCH__ != 0)
#if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ != 0)
#define __HIP_DEVICE_COMPILE__ 1
#else
#define __HIP_DEVICE_COMPILE__ 0