__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__.
이 커밋은 다음에 포함됨:
1 부모
6536164914
커밋
0d45c1d2d3
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__
|
||||
|
||||
새 이슈에서 참조
사용자 차단