Remove hip-hcc codes: Part three
1.Rename include/hip/hcc_detail/ as include/hip/amd_detail/ 2.Rename include/hip/nvcc_detail/ as include/hip/nvidia_detail/ 3.Create __HIP_PLATFORM_AMD__ to replace __HIP_PLATFORM_HCC__ 4.Create __HIP_PLATFORM_NVIDIA__ to replace __HIP_PLATFORM_NVCC__ After hcc_detail, nvcc_detail, __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__ have been removed from upstream, they will be removed from hip runtime. Change-Id: I1ae457effd739d6c25bca203c1724b026be21fce
This commit is contained in:
@@ -24,15 +24,25 @@ THE SOFTWARE.
|
||||
#define HIP_INCLUDE_HIP_HIP_COMMON_H
|
||||
|
||||
// Common code included at start of every hip file.
|
||||
// Auto enable __HIP_PLATFORM_HCC__ if compiling with HCC
|
||||
// Auto enable __HIP_PLATFORM_AMD__ if compiling on AMD platform
|
||||
// Other compiler (GCC,ICC,etc) need to set one of these macros explicitly
|
||||
#if defined(__HCC__) || (defined(__clang__) && defined(__HIP__))
|
||||
#define __HIP_PLATFORM_HCC__
|
||||
#ifndef __HIP_PLATFORM_HCC__
|
||||
#define __HIP_PLATFORM_HCC__ // To be removed
|
||||
#endif
|
||||
#ifndef __HIP_PLATFORM_AMD__
|
||||
#define __HIP_PLATFORM_AMD__
|
||||
#endif
|
||||
#endif //__HCC__
|
||||
|
||||
// Auto enable __HIP_PLATFORM_NVCC__ if compiling with NVCC
|
||||
// Auto enable __HIP_PLATFORM_NVIDIA__ if compiling with NVIDIA platform
|
||||
#if defined(__NVCC__) || (defined(__clang__) && defined(__CUDA__) && !defined(__HIP__))
|
||||
#define __HIP_PLATFORM_NVCC__
|
||||
#ifndef __HIP_PLATFORM_NVCC__
|
||||
#define __HIP_PLATFORM_NVCC__ // To be removed
|
||||
#endif
|
||||
#ifndef __HIP_PLATFORM_NVIDIA__
|
||||
#define __HIP_PLATFORM_NVIDIA__
|
||||
#endif
|
||||
#ifdef __CUDACC__
|
||||
#define __HIPCC__
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user