disabled compiler flag hcc 4.0 for half support
Change-Id: I32175113f4c05d43310b3a05c2a14e12f6d48b09
이 커밋은 다음에 포함됨:
1 부모
b30e4b4781
커밋
ed39a7f43b
2 파일이 변경됨
+10
-15
검색과 일치하는 파일 없음
@@ -27,7 +27,16 @@ THE SOFTWARE.
|
||||
|
||||
#define __CLANG_VERSION__ __clang_major__ * 10 + __clang_minor__
|
||||
|
||||
#if __CLANG_VERSION__ == 35
|
||||
#ifdef HIP_HALF_HW_SUPPORT
|
||||
|
||||
typedef __fp16 __half;
|
||||
extern "C" __half __hip_hadd_clang40_gfx803(__half a, __half b);
|
||||
|
||||
__device__ inline __half __hadd(__half a, __half b){
|
||||
return __hip_hadd_clang40_gfx803(a, b);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
typedef struct{
|
||||
unsigned x: 16;
|
||||
@@ -178,16 +187,5 @@ __device__ __half2 __lowhigh2highlow(const __half2 a);
|
||||
|
||||
__device__ __half2 __low2half2(const __half2 a, const __half2 b);
|
||||
|
||||
#endif
|
||||
|
||||
#if __CLANG_VERSION__ == 40
|
||||
|
||||
typedef __fp16 __half;
|
||||
extern "C" __half __hip_hadd_clang40_gfx803(__half a, __half b);
|
||||
|
||||
__device__ inline __half __hadd(__half a, __half b){
|
||||
return __hip_hadd_clang40_gfx803(a, b);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
새 이슈에서 참조
사용자 차단