__CUDA__ and __HIP__ are both defined when compiling with 'clang -x hip', so make sure __HIP__ is not defined in the case of __HIP_PLATFORM_NVCC__.

このコミットが含まれているのは:
Laurent Morichetti committed 2018-03-02 06:51:51 -08:00
1 親 3251d129ef
コミット 49f819ab9e
1ファイル変更
+1 -1
+1 -1
ファイルの表示
@@ -31,7 +31,7 @@ THE SOFTWARE.
#endif //__HCC__
// Auto enable __HIP_PLATFORM_NVCC__ if compiling with NVCC
#if defined(__NVCC__) || (defined(__clang__) && defined(__CUDA__))
#if defined(__NVCC__) || (defined(__clang__) && defined(__CUDA__) && !defined(__HIP__))
#define __HIP_PLATFORM_NVCC__
#ifdef __CUDACC__
#define __HIPCC__